1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#ifndef SIGSPINBOX_H #define SIGSPINBOX_H #include <QSpinBox> class SigSpinBox : public QSpinBox { Q_OBJECT bool _denominator; protected: virtual void keyPressEvent(QKeyEvent*); public: explicit SigSpinBox(QWidget *parent = 0); void setDenominator(); signals: void returnPressed(); void moveFocus(); public slots: }; #endif // SIGSPINBOX_H