~ubuntu-branches/ubuntu/quantal/kde-baseapps/quantal

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Index: kde-baseapps-4.8.0/plasma/applets/folderview/iconview.cpp
===================================================================
--- kde-baseapps-4.8.0.orig/plasma/applets/folderview/iconview.cpp	2011-09-26 10:43:17.000000000 +0100
+++ kde-baseapps-4.8.0/plasma/applets/folderview/iconview.cpp	2012-02-21 13:38:15.359096668 +0000
@@ -2430,22 +2430,16 @@
     pixmap.fill(Qt::transparent);
 
     QStyleOptionViewItemV4 option = viewOptions();
-    // ### We can't draw the items as selected or hovered since Qt doesn't
-    //     use an ARGB window for the drag pixmap.
-    //option.state |= QStyle::State_Selected;
-    option.state &= ~(QStyle::State_Selected | QStyle::State_MouseOver);
+    option.state |= QStyle::State_Selected;
 
     QPainter p(&pixmap);
     foreach (const QModelIndex &index, indexes)
     {
         option.rect = visualRect(index).translated(-boundingRect.topLeft());
-#if 0
-        // ### Reenable this code when Qt uses an ARGB window for the drag pixmap
         if (index == m_hoveredIndex)
             option.state |= QStyle::State_MouseOver;
         else
             option.state &= ~QStyle::State_MouseOver;
-#endif
         paintItem(&p, option, index);
     }
     p.end();