Role names for Desktop Tabbox model
This commit is contained in:
parent
466bef3a6d
commit
0eff8a81c1
1 changed files with 6 additions and 0 deletions
|
@ -34,6 +34,12 @@ namespace TabBox
|
|||
DesktopModel::DesktopModel(QObject* parent)
|
||||
: QAbstractItemModel(parent)
|
||||
{
|
||||
QHash<int, QByteArray> roleNames;
|
||||
roleNames.insert(Qt::DisplayRole, "display");
|
||||
roleNames.insert(DesktopNameRole, "caption");
|
||||
roleNames.insert(DesktopRole, "desktop");
|
||||
roleNames.insert(ClientModelRole, "client");
|
||||
setRoleNames(roleNames);
|
||||
}
|
||||
|
||||
DesktopModel::~DesktopModel()
|
||||
|
|
Loading…
Reference in a new issue