Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WidgetMultiSelector preparation to use ModelAPI_AttributeRefAttrList.
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_DoubleSpinBox.cpp
diff --git
a/src/ModuleBase/ModuleBase_DoubleSpinBox.cpp
b/src/ModuleBase/ModuleBase_DoubleSpinBox.cpp
index 0f5ebcfc174799a944039109b358b12adfebc4db..851a74834d659b00d26f77acbe345396c217c0d6 100644
(file)
--- a/
src/ModuleBase/ModuleBase_DoubleSpinBox.cpp
+++ b/
src/ModuleBase/ModuleBase_DoubleSpinBox.cpp
@@
-59,7
+59,6
@@
const double PSEUDO_ZERO = 1.e-20;
ModuleBase_DoubleSpinBox::ModuleBase_DoubleSpinBox(QWidget* theParent, int thePrecision)
: QDoubleSpinBox(theParent),
myCleared(false),
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
myIsEmitKeyPressEvent(false)
{
// VSR 01/07/2010: Disable thousands separator for spin box
@@
-78,8
+77,6
@@
ModuleBase_DoubleSpinBox::ModuleBase_DoubleSpinBox(QWidget* theParent, int thePr
connect(lineEdit(), SIGNAL(textChanged( const QString& )), this,
SLOT(onTextChanged( const QString& )));
connect(lineEdit(), SIGNAL(textChanged( const QString& )), this,
SLOT(onTextChanged( const QString& )));
-
- //connect(this, SIGNAL(valueChanged(const QString&)), this, SLOT(onValueChanged(const QString&)));
}
/*!
}
/*!
@@
-353,24
+350,8
@@
QValidator::State ModuleBase_DoubleSpinBox::validate(QString& str, int& pos) con
void ModuleBase_DoubleSpinBox::onTextChanged(const QString& )
{
myCleared = false;
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;
bool ModuleBase_DoubleSpinBox::enableKeyPressEvent(const bool& theEnable)
{
bool aPreviousValue = myIsEmitKeyPressEvent;