QTfrontend/model/ThemeModel.cpp
changeset 8377 869f80966a77
parent 8049 133e22b5c410
child 8419 d99f46b676b5
--- 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);