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

List:       kde-commits
Subject:    playground/utils/filelight/src/part/radialMap
From:       Martin Tobias Holmedahl Sandsmark <sandsmark () samfundet ! no>
Date:       2009-09-07 22:22:54
Message-ID: 1252362174.192820.13471.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1021041 by sandsmark:

fix drawing (pad the edges), --q3support

 M  +5 -2      map.cpp  


--- trunk/playground/utils/filelight/src/part/radialMap/map.cpp #1021040:1021041
@@ -29,7 +29,6 @@
 #include <QImage>          //make() & paint()
 #include <QFont>           //ctor
 #include <QFontMetrics>    //ctor
-#include <Q3PointArray>
 
 #include "builder.h"
 #include "part/Config.h"
@@ -280,6 +279,10 @@
     QPainter paint;
     QRect rect = m_rect;
 
+    rect.adjust(5, 5, -5, -5);
+    m_rect.moveRight(1);
+
+
     //**** best option you can think of is to make the circles slightly less perfect,
     //  ** i.e. slightly eliptic when resizing inbetween
 
@@ -314,7 +317,7 @@
             if ((*it)->hasHiddenChildren())
             {
                 //draw arrow head to indicate undisplayed files/directories
-                Q3PointArray pts(3);
+                QPolygon pts(3);
                 QPoint pos, cpos = rect.center();
                 int a[3] = { (*it)->start(), (*it)->length(), 0 };
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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