Added smaller star icons for desktop
authorMateusz Półrola <mateusz.polrola@comarch.pl>
Fri, 20 Aug 2010 10:12:09 +0000 (12:12 +0200)
committerMateusz Półrola <mateusz.polrola@comarch.pl>
Fri, 20 Aug 2010 10:12:09 +0000 (12:12 +0200)
data/icons/gui.qrc
trunk/src/base/gui/WordListProxyStyle.cpp

index c637dce..f181519 100644 (file)
@@ -4,5 +4,7 @@
         <file>logo/mdictionary.png</file>
         <file>96x96/staroff.png</file>
         <file>96x96/staron.png</file>
+        <file>16x16/staroff.png</file>
+        <file>16x16/staron.png</file>
     </qresource>
 </RCC>
index 0d60b72..350e741 100644 (file)
@@ -28,8 +28,13 @@ WordListProxyStyle::WordListProxyStyle() :
     QProxyStyle()
 {
     //load pixmap from resources
-    starPixmapOn = QPixmap(":/icons/96x96/staron.png");
-    starPixmapOff = QPixmap(":/icons/96x96/staroff.png");
+    #ifdef Q_WS_MAEMO_5
+        starPixmapOn = QPixmap(":/icons/96x96/staron.png");
+        starPixmapOff = QPixmap(":/icons/96x96/staroff.png");
+    #else
+        starPixmapOn = QPixmap(":/icons/16x16/staron.png");
+        starPixmapOff = QPixmap(":/icons/16x16/staroff.png");
+    #endif
 }