[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Fri May 14 02:51:06 CEST 2004


CVS commit by arwalker: 

Make findChildrenType recursive


  M +5 -1      kstviewobject.h   1.33


--- kdeextragear-2/kst/kst/kstviewobject.h  #1.32:1.33
@@ -199,4 +199,5 @@ template<class T>
 KstObjectList<KstSharedPtr<T> > KstViewObject::findChildrenType(bool recursive) {
   KstObjectList<KstSharedPtr<T> > rc;
+  KstViewObject* vo;
   for (KstViewObjectList::Iterator i = _children.begin(); i != _children.end(); ++i) {
     T *o = dynamic_cast<T*>((*i).data());
@@ -206,5 +207,8 @@ KstObjectList<KstSharedPtr<T> > KstViewO
 
     if (recursive) {
-      abort(); // FIXME implement me
+      KstViewObject *p = dynamic_cast<T*>((*i).data());
+      if (p) {
+        rc += p->findChildrenType<T>(recursive);
+      }
     }
   }





More information about the Kst mailing list