Commit f786132a authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Theme Explorer] Use theme name instead of ID in theme dropdown

Shows "Breeze" and "Breeze Dark" instead of "default" and "breeze-dark" in the list

Differential Revision:
parent 99734367
......@@ -62,7 +62,7 @@ ApplicationWindow {
id: themeSelector
//FIXME: why crashes?
//model: 3//themeModel.themeList
textRole: "packageNameRole"
textRole: "display"
onCurrentIndexChanged: {
themeModel.theme = themeModel.themeList.get(currentIndex).packageNameRole;
......@@ -43,6 +43,7 @@
ThemeListModel::ThemeListModel( QObject *parent )
: QAbstractListModel( parent )
m_roleNames.insert(Qt::DisplayRole, "display");
m_roleNames.insert(PackageNameRole, "packageNameRole");
m_roleNames.insert(PackageDescriptionRole, "packageDescriptionRole");
m_roleNames.insert(PackageAuthorRole, "packageAuthorRole");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment