--- a/QTfrontend/model/ThemeModel.cpp Mon Jan 14 12:07:06 2013 +0400
+++ b/QTfrontend/model/ThemeModel.cpp Mon Jan 14 11:19:59 2013 +0100
@@ -73,11 +73,16 @@
QMap<int, QVariant> dataset;
+ // set icon path
+ dataset.insert(Qt::UserRole + 1, iconpath);
+
// set name
dataset.insert(Qt::DisplayRole, theme);
// load and set icon
- QIcon icon(iconpath);
+ QIcon icon;
+ icon.addPixmap(QPixmap(iconpath), QIcon::Normal);
+ icon.addPixmap(QPixmap(iconpath), QIcon::Disabled);
dataset.insert(Qt::DecorationRole, icon);