+ // nds: it seems, that the envents processing is not necessary anymore
+ // White while all events will be processed
+ //QApplication::processEvents();
+ double aValue = mySpinBox->value();
+ QString aText;
+ if (mySpinBox->hasVariable())
+ aText = mySpinBox->text();
+
+ editedValue(aValue, aText);
+ if (aText.isEmpty()) {
+ ModuleBase_Tools::setSpinValue(mySpinBox, aValue);
+ } else {
+ ModuleBase_Tools::setSpinText(mySpinBox, aText);
+ }
+ if (theSendSignals) {
+ emit valuesChanged();
+ // the focus leaves the control automatically by the Enter/Esc event
+ // it is processed in operation manager
+ //emit focusOutWidget(this);
+
+ //if (myIsEnterPressedEmitted)
+ if (!myIsEditing)
+ emit enterClicked();
+ }
+ else
+ storeValue();