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

List:       kde-commits
Subject:    extragear/multimedia/amarok/src/context/toolbar
From:       Nikolaj Hald Nielsen <nhnFreespirit () gmail ! com>
Date:       2009-07-15 13:16:58
Message-ID: 1247663818.727823.16866.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 997168 by nhnielsen:

Better rounding of corners in context view toolbar


 M  +7 -3      AppletToolbar.cpp  


--- trunk/extragear/multimedia/amarok/src/context/toolbar/AppletToolbar.cpp #997167:997168
@@ -82,15 +82,19 @@
     qreal radius = 6;
     
     QPainterPath outline;
-    outline.moveTo( 0, 0);
-    outline.lineTo( boundingRect().width(), 0 );
+    outline.moveTo( radius, 0);
+    outline.lineTo( boundingRect().width() - radius, 0 );
+    outline.quadTo( boundingRect().width(), 0,
+                    boundingRect().width(), radius );
     outline.lineTo( boundingRect().width(), boundingRect().height() - radius );
     outline.quadTo( boundingRect().width(), boundingRect().height(),
                     boundingRect().width() - radius, boundingRect().height() );
     outline.lineTo( radius, boundingRect().height() );
     outline.quadTo( 0, boundingRect().height() ,
                     0, boundingRect().height() - radius );
-    outline.lineTo( 0, 0 );
+    outline.lineTo( 0, radius );
+    outline.quadTo( 0, 0,
+                    radius, 0 );
 
     painter->fillPath( outline, col );
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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