Salome HOME
Merge remote-tracking branch 'origin/BR_REENTRANCE_OPERATION' into origin_Dev_1.5.0
[modules/shaper.git] / src / ModuleBase / ModuleBase_IntSpinBox.cpp
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:      ModuleBase_IntSpinBox.cxx
4 // Author:    Natalia ERMOLAEVA
5 //
6 #include "ModuleBase_IntSpinBox.h"
7
8 #include <QKeyEvent>
9
10 ModuleBase_IntSpinBox::ModuleBase_IntSpinBox(QWidget* theParent)
11 : QSpinBox(theParent),
12   myIsModified(false)
13 {
14   connect(this, SIGNAL(valueChanged(const QString&)), this, SLOT(onValueChanged(const QString&)));
15 }
16
17 void ModuleBase_IntSpinBox::onValueChanged(const QString& theValue)
18 {
19   myIsModified = true;
20 }
21
22 bool ModuleBase_IntSpinBox::isModified() const
23 {
24   return myIsModified;
25 }
26
27 void ModuleBase_IntSpinBox::clearModified()
28 {
29   myIsModified = false;
30 }