explicit ModuleBase_IntSpinBox(QWidget* theParent = 0);
virtual ~ModuleBase_IntSpinBox() {};
- /// Returns true if the current value is modified by has not been applyed yet
- virtual bool isModified() const;
-
- /// Clears modified state
- void clearModified();
-
-protected slots:
- /// Called on value changed
- void onValueChanged(const QString& theValue);
-
- private:
- /// Boolean value whether the spin box content is modified
- bool myIsModified;
+protected:
+ /// Called on key press event
+ virtual void keyPressEvent(QKeyEvent* theEvent);
};
#endif