use user roles instead of hidden columns for model sort/filter keys

This commit is contained in:
Wladimir J. van der Laan
2011-05-22 19:32:37 +02:00
parent 858ff187f5
commit 8968bf2e36
6 changed files with 21 additions and 21 deletions

View File

@@ -15,10 +15,13 @@ public:
Date = 1,
Description = 2,
Debit = 3,
Credit = 4,
Type = 5
Credit = 4
} ColumnIndex;
enum {
TypeRole = Qt::UserRole
} RoleIndex;
/* Transaction type */
static const QString Sent;
static const QString Received;