QIcon SearchBarWidget::generateIcon(QIcon oryginal, qreal rotation) {
QPixmap p = oryginal.pixmap(64);
+
if(rotation != 0) {
QMatrix m;
m.rotate(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;
}