@@ -113,29 +113,29 @@ Categories::data(const QModelIndex& index, int role) const
115 switch (role) {
115 switch (role) {
116− case RoleId:
116+ case RoleId:
117− return QVariant::fromValue(index.row());
117+ return QVariant::fromValue(index.row());
118− case RoleName:
118+ case RoleName:
119− return QVariant::fromValue(DeeListModel::data(index, 1)); //DISPLAY_NAME
119+ return QVariant::fromValue(DeeListModel::data(index, 1)); //DISPLAY_NAME
120− case RoleIcon:
120+ case RoleIcon:
121− return QVariant::fromValue(DeeListModel::data(index, 2)); //ICON_HINT
121+ return QVariant::fromValue(DeeListModel::data(index, 2)); //ICON_HINT
122− case RoleRenderer:
122+ case RoleRenderer:
123− return QVariant::fromValue(DeeListModel::data(index, 3)); //RENDERER_NAME
123+ return QVariant::fromValue(DeeListModel::data(index, 3)); //RENDERER_NAME
124− case RoleContentType:
124+ case RoleContentType:
126− auto hints = QVariant::fromValue(DeeListModel::data(index, 4)).toHash();
126+ auto hints = QVariant::fromValue(DeeListModel::data(index, 4)).toHash();
127− return hints.contains("content-type") ? hints["content-type"] : QVariant(QString("default"));
127+ return hints.contains("content-type") ? hints["content-type"] : QVariant(QString("default"));
129− case RoleHints:
129+ case RoleHints:
130− return QVariant::fromValue(DeeListModel::data(index, 4)); //HINTS
130+ return QVariant::fromValue(DeeListModel::data(index, 4)); //HINTS
131− case RoleResults:
131+ case RoleResults:
132− return QVariant::fromValue(getFilter(index.row()));
132+ return QVariant::fromValue(getFilter(index.row()));
133− case RoleCount:
133+ case RoleCount:
135− CategoryFilter* filter = getFilter(index.row());
135+ CategoryFilter* filter = getFilter(index.row());
136− return QVariant::fromValue(filter->rowCount());
136+ return QVariant::fromValue(filter->rowCount());
138− default:
138+ default:
139− return QVariant();
139+ return QVariant();