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