QTfrontend/model/ThemeModel.cpp
branchphysfslayer
changeset 7955 85b3970b402a
parent 7776 e78eff243e25
child 8049 133e22b5c410
--- a/QTfrontend/model/ThemeModel.cpp	Mon Nov 05 00:32:41 2012 +0400
+++ b/QTfrontend/model/ThemeModel.cpp	Mon Nov 05 23:03:01 2012 +0400
@@ -78,15 +78,12 @@
         dataset.insert(Qt::DisplayRole, theme);
 
         // load and set icon
-
-        QPixmap pix(iconpath); // workaround, as QIcon(iconpath) and even QIcon(QPixmap(iconpath)) don't work
-        QIcon icon(pix);
+        QIcon icon(iconpath);
 
         dataset.insert(Qt::DecorationRole, icon);
 
         // load and set preview icon
-        pix.load(datamgr.findFileForRead(QString("Themes/%1/icon@2x.png").arg(theme)));
-        QIcon preview(pix);
+        QIcon preview(datamgr.findFileForRead(QString("Themes/%1/icon@2x.png").arg(theme)));
         dataset.insert(Qt::UserRole, preview);
 
         m_data.append(dataset);