ModuleBase_DoubleSpinBox::ModuleBase_DoubleSpinBox(QWidget* theParent, int thePrecision)
: QDoubleSpinBox(theParent),
myCleared(false),
- myIsModified(false),
+ //myIsModified(false),
myIsEmitKeyPressEvent(false)
{
// VSR 01/07/2010: Disable thousands separator for spin box
QDoubleSpinBox::keyPressEvent(theEvent);
}
-bool ModuleBase_DoubleSpinBox::focusNextPrevChild(bool theIsNext)
-{
- myIsModified = false;
-
- emit valueStored();
- emit focusNextPrev();
- return QDoubleSpinBox::focusNextPrevChild(theIsNext);
-}
-
/*!
\brief Perform \a steps increment/decrement steps.
void ModuleBase_DoubleSpinBox::onTextChanged(const QString& )
{
myCleared = false;
- myIsModified = true;
+ //myIsModified = true;
}
-void ModuleBase_DoubleSpinBox::onValueChanged(const QString& theValue)
+/*void ModuleBase_DoubleSpinBox::onValueChanged(const QString& theValue)
{
myIsModified = true;
}
void ModuleBase_DoubleSpinBox::clearModified()
{
myIsModified = false;
-}
+}*/
bool ModuleBase_DoubleSpinBox::enableKeyPressEvent(const bool& theEnable)
{