[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Mon Oct 31 22:40:19 CET 2005


SVN commit 476213 by staikos:

update when showing


 M  +1 -0      kstdatadialog.ui  
 M  +6 -0      kstdatadialog.ui.h  
 M  +2 -4      ksteqdialog_i.cpp  


--- trunk/extragear/graphics/kst/kst/kstdatadialog.ui #476212:476213
@@ -194,6 +194,7 @@
     <slot>reject()</slot>
     <slot>init()</slot>
     <slot>show()</slot>
+    <slot>update()</slot>
     <slot>showEdit( const QString &amp; field )</slot>
     <slot returnType="bool">newObject()</slot>
     <slot returnType="bool">editObject()</slot>
--- trunk/extragear/graphics/kst/kst/kstdatadialog.ui.h #476212:476213
@@ -64,6 +64,7 @@
     _newDialog = true;
     _dp = 0L;
 
+    update();
     fillFieldsForNew();
 
     _editMultiple->hide();
@@ -79,6 +80,11 @@
 }
 
 
+void KstDataDialog::update()
+{
+}
+
+
 void KstDataDialog::showEdit(const QString& field)
 {
     _newDialog = false;
--- trunk/extragear/graphics/kst/kst/ksteqdialog_i.cpp #476212:476213
@@ -143,8 +143,6 @@
 
 
 bool KstEqDialogI::newObject() {
-  KstEquationPtr eq;
-
   QString tag_name = _tagName->text();
   QString etext = _w->_equation->text();
   etext.remove(QRegExp("[^a-zA-Z0-9\\(\\)\\+\\-\\*/\\%\\^\\|\\&\\!<>=_]"));
@@ -177,7 +175,7 @@
   KST::vectorList.lock().readUnlock();
 
   /** Create the equation here */
-  eq = new KstEquation(tag_name, _w->_equation->text(), *i, _w->_doInterpolation->isChecked());
+  KstEquationPtr eq = new KstEquation(tag_name, _w->_equation->text(), *i, _w->_doInterpolation->isChecked());
 
   if (!eq->isValid()) {
     eq = 0L;
@@ -300,6 +298,7 @@
   return true;
 }
 
+
 bool KstEqDialogI::editObject() {
   KstEquationList eqList = kstObjectSubList<KstDataObject,KstEquation>(KST::dataObjectList);
   
@@ -319,7 +318,6 @@
         }
           
         KstEquationPtr eqPtr = *eqIter;
-
         if (!editSingleObject(eqPtr)) {
           return false;
         }


More information about the Kst mailing list