mirror of
https://github.com/transmission/transmission.git
synced 2026-04-28 04:34:02 +01:00
Simplify and speed up actions connected to file tree popup menu
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user