[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/plasma/widgets
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2010-05-08 20:43:51
Message-ID: 20100508204351.E6F3DAC8B1 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1124318 by aseigo:

respecdt the contents rect


 M  +2 -2      label.cpp  


--- trunk/KDE/kdelibs/plasma/widgets/label.cpp #1124317:1124318
@@ -294,7 +294,7 @@
         QGraphicsProxyWidget::paint(painter, option, widget);
     } else {
         const int gradientLength = 25;
-        QPixmap buffer(size().toSize());
+        QPixmap buffer(contentsRect().size().toSize());
         buffer.fill(Qt::transparent);
 
         QPainter buffPainter(&buffer);
@@ -325,7 +325,7 @@
         }
 
         buffPainter.end();
-        painter->drawPixmap(buffer.rect(), buffer, buffer.rect());
+        painter->drawPixmap(contentsRect(), buffer, buffer.rect());
     }
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic