release 0.7
[fapman] / packageview.cpp
index f334694..a4439d5 100644 (file)
@@ -57,6 +57,19 @@ void ListItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opti
     painter->save();
     QRect r = option.rect;
 
+    /*
+     // does nothing at the moment because items aren't actually "selected" on the list in the qt sense...
+    if(option.state & QStyle::State_Selected)
+    {
+        r = option.rect;
+#ifdef Q_WS_MAEMO_5
+        painter->drawImage(r, QImage("/etc/hildon/theme/images/TouchListBackgroundPressed.png"));
+#else
+        painter->fillRect(r, option.palette.highlight().color());
+#endif
+    }
+    */
+
     QPixmap icon = index.data(Qt::DecorationRole).value<QPixmap>();
     if( icon.isNull() ) {
         // use default icon