Little change in search bar icons
authorMateusz Półrola <mateusz.polrola@comarch.pl>
Fri, 3 Sep 2010 12:40:41 +0000 (14:40 +0200)
committerMateusz Półrola <mateusz.polrola@comarch.pl>
Fri, 3 Sep 2010 12:40:41 +0000 (14:40 +0200)
src/mdictionary/gui/SearchBarWidget.cpp

index 7bd9b26..d9e73e9 100644 (file)
@@ -76,6 +76,7 @@ SearchBarWidget::~SearchBarWidget() {
 QIcon SearchBarWidget::generateIcon(QIcon oryginal, qreal rotation) {
     QPixmap p = oryginal.pixmap(64);
 
+
     if(rotation != 0) {
         QMatrix m;
         m.rotate(rotation);
@@ -87,12 +88,15 @@ QIcon SearchBarWidget::generateIcon(QIcon oryginal, qreal rotation) {
     newIcon.addPixmap(p);
 
 
-    #ifdef Q_WS_MAEMO_5
+    p.setMask(p.createHeuristicMask());
+   /* #ifdef Q_WS_MAEMO_5
         QPainter painter(&p);
-        painter.fillRect(p.rect(), QColor(0,0,0,192));
+        QColor c =  palette().background().color();
+       // c.setAlpha(192);
+        painter.fillRect(p.rect(), c);
 
         newIcon.addPixmap(p, QIcon::Disabled, QIcon::Off);
-    #endif
+    #endif*/
 
     return newIcon;
 }