[Bug 155480] Image applet frame doesn't scale correctly

Anne-Marie Mahfouf annma at kde.org
Sat Jan 12 22:45:47 CET 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=155480         




------- Additional Comments From annma kde org  2008-01-12 22:45 -------
Proposed patch against extragear/plasma/applets/frame, can you test please? 
Index: frame.cpp
===================================================================
--- frame.cpp   (revision 760529)
+++ frame.cpp   (working copy)
 @ -331,8 +331,7  @
         p->setBrush(Qt::NoBrush);
         for (int i = 0; i <= m_swOutline; i+=1) {
             p->setOpacity(0.7*exp(-(i/(double)(m_swOutline/3))));
-            QPainterPath tr; //I use this because p.drawRoundRect is different(and ugly)
-            tr.addRoundRect(shadowRect, swRoundness+i);
+            QPainterPath tr=Plasma::roundedRectangle(shadowRect, swRoundness+i);
             p->drawPath(tr);
             shadowRect.adjust(-1, -1, +1, +1);
         }


More information about the Panel-devel mailing list