fixed double definitions of roles

This commit is contained in:
csoler 2019-02-26 11:29:10 +01:00
parent 16cae622e3
commit 40832734cc
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
3 changed files with 28 additions and 29 deletions

View file

@ -265,6 +265,10 @@ QVariant RsMessageModel::data(const QModelIndex &index, int role) const
case FilterRole: return filterRole (fmpe,index.column()) ;
case StatusRole: return statusRole (fmpe,index.column()) ;
case SortRole: return sortRole (fmpe,index.column()) ;
case MsgFlagsRole: return fmpe.msgflags ;
case UnreadRole: return fmpe.msgflags & (RS_MSG_NEW | RS_MSG_UNREAD_BY_USER);
case MsgIdRole: return QString::fromStdString(fmpe.msgId) ;
case SrcIdRole: return QString::fromStdString(fmpe.srcId.toStdString()) ;
default:
return QVariant();
}