]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Merge remote-tracking branch 'origin/KDE/4.10'
authorAurélien Gâteau <agateau@kde.org>
Mon, 11 Feb 2013 09:53:52 +0000 (10:53 +0100)
committerAurélien Gâteau <agateau@kde.org>
Mon, 11 Feb 2013 09:53:52 +0000 (10:53 +0100)
src/kitemviews/kstandarditemlistwidget.cpp

index f3414e3f271b0dd42c4bebd67cfa74f9e0d2e999..fcd0520457dc2cbe3ca1435129e20a0b9dfb28fc 100644 (file)
@@ -249,13 +249,14 @@ void KStandardItemListWidget::paint(QPainter* painter, const QStyleOptionGraphic
 
     const KItemListStyleOption& itemListStyleOption = styleOption();
     if (isHovered()) {
+        const qreal opacity = painter->opacity();
         // Blend the unhovered and hovered pixmap if the hovering
         // animation is ongoing
         if (hoverOpacity() < 1.0) {
+            painter->setOpacity((1.0 - hoverOpacity()) * opacity);
             drawPixmap(painter, m_pixmap);
         }
 
-        const qreal opacity = painter->opacity();
         painter->setOpacity(hoverOpacity() * opacity);
         drawPixmap(painter, m_hoverPixmap);
         painter->setOpacity(opacity);