ModuleBase_DoubleSpinBox::ModuleBase_DoubleSpinBox(QWidget* theParent, int thePrecision)
: QDoubleSpinBox(theParent),
myCleared(false),
- //myIsModified(false),
myIsEmitKeyPressEvent(false)
{
// VSR 01/07/2010: Disable thousands separator for spin box
connect(lineEdit(), SIGNAL(textChanged( const QString& )), this,
SLOT(onTextChanged( const QString& )));
-
- //connect(this, SIGNAL(valueChanged(const QString&)), this, SLOT(onValueChanged(const QString&)));
}
/*!
void ModuleBase_DoubleSpinBox::onTextChanged(const QString& )
{
myCleared = false;
- //myIsModified = true;
}
-/*void ModuleBase_DoubleSpinBox::onValueChanged(const QString& theValue)
-{
- myIsModified = true;
-}
-
-bool ModuleBase_DoubleSpinBox::isModified() const
-{
- return myIsModified;
-}
-
-void ModuleBase_DoubleSpinBox::clearModified()
-{
- myIsModified = false;
-}*/
-
bool ModuleBase_DoubleSpinBox::enableKeyPressEvent(const bool& theEnable)
{
bool aPreviousValue = myIsEmitKeyPressEvent;