[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Wed Mar 30 19:58:46 CEST 2005


CVS commit by staikos: 

helper function


  M +6 -0      kstdatacollection.cpp   1.18
  M +1 -0      kstdatacollection.h   1.28


--- kdeextragear-2/kst/kst/kstdatacollection.cpp  #1.17:1.18
@@ -46,4 +46,10 @@ void KST::addVectorToList(KstVectorPtr v
 }
 
+void KST::addDataObjectToList(KstDataObjectPtr d) {
+  KST::dataObjectList.lock().writeLock();
+  KST::dataObjectList.append(d);
+  KST::dataObjectList.lock().writeUnlock();
+}
+
 static QMutex bigLock;
 

--- kdeextragear-2/kst/kst/kstdatacollection.h  #1.27:1.28
@@ -56,4 +56,5 @@ namespace KST {
 
   KST_EXPORT extern void addVectorToList(KstVectorPtr v);
+  KST_EXPORT extern void addDataObjectToList(KstDataObjectPtr d);
 
   /** Bad choice for location - maybe move it later */




More information about the Kst mailing list