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

List:       kde-commits
Subject:    extragear/plasma/applets/frame
From:       Anne-Marie Mahfouf <annma () kde ! org>
Date:       2008-01-13 10:01:00
Message-ID: 1200218460.374764.27327.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 760679 by annma:

Make shadow behaves better at big sizes
CCBUG=155480


 M  +1 -2      frame.cpp  


--- trunk/extragear/plasma/applets/frame/frame.cpp #760678:760679
@@ -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);
         }
[prev in list] [next in list] [prev in thread] [next in thread] 

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