Role names for Desktop Tabbox model

This commit is contained in:
Martin Gräßlin 2013-04-16 10:17:27 +02:00
parent 466bef3a6d
commit 0eff8a81c1

View file

@ -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()