[Kst] branches/work/kst/portto4/kst/src/widgets
Nicolas Brisset
nicolas.brisset at eurocopter.com
Wed Dec 16 08:25:35 CET 2009
SVN commit 1062817 by brisset:
Uncomment the setDefaultValue method, which is required by some plugins. They are normally built when gsl is installed :-)
I got the following compilation error:
compiling /home/franz/brisset/linux/SRC_ARCHIVE/SVN/kst2/src/plugins/filters/despike/filterdespike.cpp
/home/franz/brisset/linux/SRC_ARCHIVE/SVN/kst2/src/plugins/filters/despike/filterdespike.cpp: In member function ‘virtual void ConfigWidgetFilterDespikePlugin::setObjectStore(Kst::ObjectStore*)’:
/home/franz/brisset/linux/SRC_ARCHIVE/SVN/kst2/src/plugins/filters/despike/filterdespike.cpp:35: error: ‘class Kst::ScalarSelector’ has no member named ‘setDefaultValue’
/home/franz/brisset/linux/SRC_ARCHIVE/SVN/kst2/src/plugins/filters/despike/filterdespike.cpp:36: error: ‘class Kst::ScalarSelector’ has no member named ‘setDefaultValue’
make[3]: *** [tmp/filterdespike.o] Fehler 1
Barth, from the log message in commit #1062814 I have the feeling this was actually more a "this should not be needed" kind of cleanup, but apparently this method can't be removed just like that.
M +5 -5 scalarselector.cpp
M +1 -1 scalarselector.h
--- branches/work/kst/portto4/kst/src/widgets/scalarselector.cpp #1062816:1062817
@@ -63,11 +63,11 @@
}
-//void ScalarSelector::setDefaultValue(double value) {
-// QString string = QString::number(value);
-// _scalar->addItem(string, qVariantFromValue(NULL));
-// _scalar->setCurrentIndex(_scalar->findText(string));
-//}
+void ScalarSelector::setDefaultValue(double value) {
+ QString string = QString::number(value);
+ _scalar->addItem(string, qVariantFromValue(NULL));
+ _scalar->setCurrentIndex(_scalar->findText(string));
+}
ScalarPtr ScalarSelector::selectedScalar() {
--- branches/work/kst/portto4/kst/src/widgets/scalarselector.h #1062816:1062817
@@ -40,7 +40,7 @@
QString selectedScalarString();
- //void setDefaultValue(double value);
+ void setDefaultValue(double value);
virtual bool event(QEvent * event);
More information about the Kst
mailing list