KDE/kdebase/workspace/plasma/applets/tasks

Marco Martin notmart at gmail.com
Tue Jul 15 11:59:41 CEST 2008


SVN commit 832735 by mart:

thanks to the weirdness of QGraphicsLinearLayout weirdness it happens
that sometimes the last one-two items are 1-2 pixels larger than the
others, making the panelsvg of the taskbar items a bit short, and here
another cause for the black line
now the image has always the same size of the panelsvg, even if it's a
bit smaller than the item size, this should resolve the black line issue
once for all
will backport to 4.1
CCMAIL: panel-devel at kde.org


 M  +2 -2      windowtaskitem.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/tasks/windowtaskitem.cpp #832734:832735
@@ -309,7 +309,7 @@
                  itemBackground->paintPanel(painter, rect().toRect());
              }
         } else {
-            QPixmap *alphaPixmap = m_applet->taskAlphaPixmap(rect().size().toSize());
+            QPixmap *alphaPixmap = m_applet->taskAlphaPixmap(itemBackground->panelSize().toSize());
             //kDebug() << (QObject*)this << "setting alpha to" << (255 * (1.0 - m_alpha)) << m_alpha;
             if (m_alpha < 0.95) {
                 alphaPixmap->fill(QColor(0, 0, 0, 255 * (1.0 - m_alpha)));
@@ -334,7 +334,7 @@
                 itemBackground->paintPanel(painter, rect().toRect());
             } else {
                 //Draw task background from theme svg "hover" element
-                QPixmap *alphaPixmap = m_applet->taskAlphaPixmap(rect().size().toSize());
+                QPixmap *alphaPixmap = m_applet->taskAlphaPixmap(itemBackground->panelSize().toSize());
 
                 if (option->state & QStyle::State_Sunken) {
                     alphaPixmap->fill(QColor(0, 0, 0, 50));


More information about the Panel-devel mailing list