Simplify and speed up actions connected to file tree popup menu

This commit is contained in:
Mike Gelfand
2015-08-16 22:07:09 +00:00
parent 7f45029f18
commit 63e4700a10
5 changed files with 113 additions and 81 deletions

View File

@@ -27,20 +27,20 @@ class FileTreeModel: public QAbstractItemModel
enum
{
COL_NAME,
FIRST_VISIBLE_COLUMN = COL_NAME,
COL_SIZE,
COL_PROGRESS,
COL_WANTED,
COL_PRIORITY,
LAST_VISIBLE_COLUMN = COL_PRIORITY,
COL_FILE_INDEX,
NUM_COLUMNS
};
enum Role
{
SortRole = Qt::UserRole
SortRole = Qt::UserRole,
FileIndexRole,
WantedRole,
CompleteRole
};
public: