use user roles instead of hidden columns for model sort/filter keys
This commit is contained in:
@@ -10,11 +10,14 @@ public:
|
||||
explicit AddressTableModel(QObject *parent = 0);
|
||||
|
||||
enum {
|
||||
Label = 0, /* User specified label */
|
||||
Address = 1, /* Bitcoin address */
|
||||
Type = 2 /* Send/Receive, used for filter */
|
||||
Label = 0, /* User specified label */
|
||||
Address = 1 /* Bitcoin address */
|
||||
} ColumnIndex;
|
||||
|
||||
enum {
|
||||
TypeRole = Qt::UserRole
|
||||
} RoleIndex;
|
||||
|
||||
static const QString Send; /* Send addres */
|
||||
static const QString Receive; /* Receive address */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user