mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 15:35:49 -04:00
fixed double definitions of roles
This commit is contained in:
parent
16cae622e3
commit
40832734cc
3 changed files with 28 additions and 29 deletions
|
@ -43,14 +43,6 @@ public:
|
|||
explicit RsMessageModel(QObject *parent = NULL);
|
||||
~RsMessageModel(){}
|
||||
|
||||
enum Role {
|
||||
ROLE_SORT = Qt::UserRole,
|
||||
ROLE_MSGID = Qt::UserRole + 1,
|
||||
ROLE_SRCID = Qt::UserRole + 2,
|
||||
ROLE_UNREAD = Qt::UserRole + 3,
|
||||
ROLE_MSGFLAGS = Qt::UserRole + 4
|
||||
};
|
||||
|
||||
enum BoxName {
|
||||
BOX_NONE = 0x00,
|
||||
BOX_INBOX = 0x01,
|
||||
|
@ -76,6 +68,9 @@ public:
|
|||
StatusRole = Qt::UserRole+2,
|
||||
UnreadRole = Qt::UserRole+3,
|
||||
FilterRole = Qt::UserRole+4,
|
||||
MsgIdRole = Qt::UserRole+5,
|
||||
MsgFlagsRole = Qt::UserRole+6,
|
||||
SrcIdRole = Qt::UserRole+7,
|
||||
};
|
||||
|
||||
QModelIndex root() const{ return createIndex(0,0,(void*)NULL) ;}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue