diff --git a/tabbox/desktopmodel.cpp b/tabbox/desktopmodel.cpp index 9aed2b6202..8415536de3 100644 --- a/tabbox/desktopmodel.cpp +++ b/tabbox/desktopmodel.cpp @@ -34,6 +34,12 @@ namespace TabBox DesktopModel::DesktopModel(QObject* parent) : QAbstractItemModel(parent) { + QHash roleNames; + roleNames.insert(Qt::DisplayRole, "display"); + roleNames.insert(DesktopNameRole, "caption"); + roleNames.insert(DesktopRole, "desktop"); + roleNames.insert(ClientModelRole, "client"); + setRoleNames(roleNames); } DesktopModel::~DesktopModel()