[Kst] extragear/graphics/kst/kst
Andrew Walker
arwalker at sumusltd.com
Tue Dec 20 19:08:32 CET 2005
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