[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Fri Jul 30 00:30:47 CEST 2004


CVS commit by arwalker: 

With the fix for 86116 as implemented we see nothing of the blue group border (except when it flickers) and only see the focus rect in the region where it intersects the plot regions.

We now see the blue group border everywhere it doesn't intersect the plot regions and see the focus rect in its enirety.


  M +7 -3      kstplotgroup.cpp   1.16


--- kdeextragear-2/kst/kst/kstplotgroup.cpp  #1.15:1.16
@@ -104,12 +104,16 @@ void KstPlotGroup::saveTag(QTextStream& 
 void KstPlotGroup::paint(KstPaintType type, QPainter& p) {
   QRegion clipRegion(geometry());
+  QBrush brush(_backgroundColor);
+
   p.setClipRegion(clipRegion);
-  KstMetaPlot::paint(type, p);
   for (KstViewObjectList::Iterator i = _children.begin(); i != _children.end(); ++i) {
-    clipRegion = clipRegion.subtract(QRegion((*i)->geometry()));
+    clipRegion -= QRegion((*i)->geometry());
   }
   p.setClipRegion(clipRegion);
-  QBrush brush(_backgroundColor);
   p.fillRect(geometry(), brush);
+
+  p.setClipRegion(QRegion(geometry()));
+  KstMetaPlot::paint(type, p);
+
   p.setClipping(false);
 }





More information about the Kst mailing list