1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/examples/exquisite/qqtexquisiteform.h

40 lines
758 B
C
Raw Normal View History

2017-10-20 20:52:19 +08:00
#ifndef QQTEXQUISITEFORM_H
#define QQTEXQUISITEFORM_H
#include <QDialog>
#include <QTimer>
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 ;
2017-10-20 23:29:42 +08:00
QTimer* m_timer_down ;
2017-10-20 20:52:19 +08:00
int value;
2017-10-20 23:29:42 +08:00
int curmaxValue;
2017-10-20 20:52:19 +08:00
// QWidget interface
protected:
virtual void keyPressEvent(QKeyEvent *event) override;
virtual void keyReleaseEvent(QKeyEvent *event) override;
2017-10-20 23:29:42 +08:00
// QObject interface
public:
virtual bool eventFilter(QObject *watched, QEvent *event) override;
2017-10-20 20:52:19 +08:00
};
#endif // QQTEXQUISITEFORM_H