[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Mon Oct 24 07:06:28 CEST 2005


SVN commit 473575 by staikos:

Add a tool for testing a new idea for painting.


 M  +13 -0     kstviewobject.cpp  
 M  +2 -0      kstviewobject.h  


--- trunk/extragear/graphics/kst/kst/kstviewobject.cpp #473574:473575
@@ -1603,5 +1603,18 @@
 }
 
 
+bool KstViewObject::objectDirty() const {
+  if (dirty()) {
+    return true;
+  }
+
+  for (KstViewObjectList::ConstIterator i = _children.begin(); i != _children.end(); ++i) {
+    if ((*i)->dirty()) {
+      return true;
+    }
+  }
+  return false;
+}
+
 #include "kstviewobject.moc"
 // vim: ts=2 sw=2 et
--- trunk/extragear/graphics/kst/kst/kstviewobject.h #473574:473575
@@ -113,6 +113,8 @@
     const KstViewObjectList& children() const;
     KstViewObjectList& children();
 
+    bool objectDirty() const; // true if this object or a child is dirty
+
     // can't be const due to KstViewObjectPtr?
     // I don't like this method at all, but for now it makes things work.  Maybe
     // split it into two methods eventually.  The bool is for toplevelview so


More information about the Kst mailing list