+ if (isComputedDefault() || mySpinBox->hasVariable()) {
+ return;
+ //if (myFeature->compute(myAttributeID))
+ // restoreValue();
+ } else {
+ bool isOk;
+ double aDefValue = QString::fromStdString(getDefaultValue()).toDouble(&isOk);
+ // reset the value just if there is a default value definition in the XML definition
+ // if the double value can not be found by the default value, do nothing
+ if (isOk) {
+ ModuleBase_Tools::setSpinValue(mySpinBox, isOk ? aDefValue : 0.0);
+ storeValueCustom();
+ }
+ }
+}
+
+bool ModuleBase_WidgetDoubleValue::storeValueCustom() const
+{
+ DataPtr aData = myFeature->data();