[Kst] extragear/graphics/kst/kst/extensions/js

Andrew Walker arwalker at sumusltd.com
Thu Aug 18 20:55:58 CEST 2005


SVN commit 450663 by arwalker:

fix compile error

 M  +2 -1      bind_plotlabel.cpp  
 M  +5 -2      bind_plotlabelcollection.cpp  


--- trunk/extragear/graphics/kst/kst/extensions/js/bind_plotlabel.cpp #450662:450663
@@ -83,12 +83,13 @@
     exec->setException(eobj);
     return KJS::Object();
   }
-
+/* FIXME use new graphics architecture
   if (p) {
     KstLabelPtr l = new KstLabel(txt);
     p->_labelList.append(l);
     return KJS::Object(new KstBindPlotLabel(exec, l));
   }
+*/
   return KJS::Object();
 }
 
--- trunk/extragear/graphics/kst/kst/extensions/js/bind_plotlabelcollection.cpp #450662:450663
@@ -152,12 +152,12 @@
   if (!_d) {
     return KJS::Undefined();
   }
-
+/* FIXME use new graphics architecture
   KstReadLocker rl(_d);
   if (propertyName < unsigned(_d->_labelList.size())) {
     return KJS::Object(new KstBindPlotLabel(exec, _d->_labelList[propertyName]));
   }
-
+*/
   return KJS::Undefined();
 }
 
@@ -172,8 +172,11 @@
 
 KJS::Value KstBindPlotLabelCollection::length(KJS::ExecState *exec) const {
   Q_UNUSED(exec)
+/* FIXME use new graphics architecture
   KstReadLocker rl(_d);
   return KJS::Number(_d->_labelList.size());
+*/
+  return KJS::Number(0);
 }
 
 


More information about the Kst mailing list