[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Thu Jun 17 18:49:11 CEST 2004


CVS commit by staikos: 

cache the last clip region for paint hacks like zooming and tie boxes


  M +1 -0      kstviewobject.cpp   1.65
  M +1 -0      kstviewobject.h   1.49


--- kdeextragear-2/kst/kst/kstviewobject.cpp  #1.64:1.65
@@ -201,4 +201,5 @@ void KstViewObject::paint(QPainter& p) {
       clipRegion -= QRegion((*j)->geometry());
     }
+    (*i)->_lastClipRegion = clipRegion;
     p.setClipRegion(clipRegion);
     (*i)->paint(p);

--- kdeextragear-2/kst/kst/kstviewobject.h  #1.48:1.49
@@ -198,4 +198,5 @@ class KstViewObject : public KstObject {
     KstAspectRatio _aspectOldZoomedObject;
     QString _type;
+    QRegion _lastClipRegion; // a sort of cache - might not always work
 };
 





More information about the Kst mailing list