#ifndef QQTEXQUISITEFORM_H #define QQTEXQUISITEFORM_H #include #include namespace Ui { class QQtExquisiteForm; } class QQtExquisiteForm : public QDialog { Q_OBJECT public: explicit QQtExquisiteForm(QWidget *parent = 0); ~QQtExquisiteForm(); private slots: void setValue(); void setValueDown(); private: Ui::QQtExquisiteForm *ui; QTimer* m_timer ; QTimer* m_timer_down ; int value; int curmaxValue; // QWidget interface protected: virtual void keyPressEvent(QKeyEvent *event) override; virtual void keyReleaseEvent(QKeyEvent *event) override; // QObject interface public: virtual bool eventFilter(QObject *watched, QEvent *event) override; }; #endif // QQTEXQUISITEFORM_H