[Kst] branches/work/kst/portto4/kst/src/libkstapp

Adam Treat treat at kde.org
Thu Jun 14 20:33:18 CEST 2007


SVN commit 675692 by treat:

* No pen for labels, and make sure to use rect()


 M  +3 -3      labelitem.cpp  
 M  +1 -1      svgitem.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/labelitem.cpp #675691:675692
@@ -54,10 +54,10 @@
     painter->restore();
   }
 
-//   QPen p = pen();
-//   setPen(Qt::NoPen);
+  QPen p = pen();
+  setPen(Qt::NoPen);
   ViewItem::paint(painter, option, widget);
-//   setPen(p);
+  setPen(p);
 }
 
 
--- branches/work/kst/portto4/kst/src/libkstapp/svgitem.cpp #675691:675692
@@ -31,7 +31,7 @@
 void SvgItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) {
   // We can do better here.  Cache the svg also.
   if (_svg->isValid()) {
-    _svg->render(painter, boundingRect());
+    _svg->render(painter, rect());
   }
 
   QPen p = pen();


More information about the Kst mailing list