[Kst] [Bug 118704] "Samples" field in data wizard is not updated for unused vectors

Andrew Walker arwalker at sumusltd.com
Tue Dec 20 19:08:53 CET 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=118704         




------- Additional Comments From arwalker sumusltd com  2005-12-20 19:08 -------
SVN commit 490073 by arwalker:

CCBUG:118704 If vector is not in use then display Samples as -. Should this also be done for curves, histograms, equations, etc?

 M  +12 -2     kstdatamanager_i.cpp  


--- trunk/extragear/graphics/kst/kst/kstdatamanager_i.cpp #490072:490073
 @ -161,7 +161,12  @
           _inUse = inUse;
           setPixmap(2, inUse ? _dm->yesPixmap() : QPixmap());
         }
-        QString field = QString::number(x->length());
+        QString field;
+        if (inUse) {
+          field = QString::number(x->length());
+        } else {
+          field = "-";
+        }
         if (text(3) != field) {
           setText(3, field);
         }
 @ -189,7 +194,12  @
           _inUse = inUse;
           setPixmap(2, inUse ? _dm->yesPixmap() : QPixmap());
         }
-        QString field = QString::number(x->length());
+        QString field;
+        if (inUse) {
+          field = QString::number(x->length());
+        } else {
+          field = "-";
+        }
         if (text(3) != field) {
           setText(3, field);
         }


More information about the Kst mailing list