1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModuleBase_IntSpinBox.h
4 // Author: Natalia ERMOLAEVA
6 #ifndef MODULEBASE_INT_SPINBOX_H_
7 #define MODULEBASE_INT_SPINBOX_H_
9 #include "ModuleBase.h"
18 * Enhanced version of the Qt's int spin box.
19 * It allows to store modified state
21 class MODULEBASE_EXPORT ModuleBase_IntSpinBox : public QSpinBox
26 explicit ModuleBase_IntSpinBox(QWidget* theParent = 0);
27 virtual ~ModuleBase_IntSpinBox() {};
29 /// Returns true if the current value is modified by has not been applyed yet
30 //virtual bool isModified() const;
32 /// Clears modified state
33 //void clearModified();
36 /// Called on value changed
37 //void onValueChanged(const QString& theValue);
40 /// Called on key press event
41 virtual void keyPressEvent(QKeyEvent* theEvent);
44 /// Boolean value whether the spin box content is modified