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
27 /// \param theParent a parent widget
28 explicit ModuleBase_IntSpinBox(QWidget* theParent = 0);
29 virtual ~ModuleBase_IntSpinBox() {};
32 /// Called on key press event
33 virtual void keyPressEvent(QKeyEvent* theEvent);