diff options
author | Tobias Koenig <tokoe@kde.org> | 2009-07-05 10:47:45 +0200 |
---|---|---|
committer | Tobias Koenig <tokoe@kde.org> | 2009-07-05 10:47:45 +0200 |
commit | 5db5a9d5d878157a643a441d426ff739084ca031 (patch) | |
tree | d10017bbc11e62e44a7ced7e35de8516964e794a /tests/manual/qtouchevent/touchwidget.h | |
parent | 65c2d095cddfda32052925654dd1defd314ad4b3 (diff) | |
parent | 84bbac2a4d7b663e57b74094cbebf8fca16e0ed8 (diff) | |
download | qt4-tools-5db5a9d5d878157a643a441d426ff739084ca031.tar.gz |
Merge branch 'master' of git://gitorious.org/qt/qt
Diffstat (limited to 'tests/manual/qtouchevent/touchwidget.h')
-rw-r--r-- | tests/manual/qtouchevent/touchwidget.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/manual/qtouchevent/touchwidget.h b/tests/manual/qtouchevent/touchwidget.h new file mode 100644 index 0000000000..2726deb218 --- /dev/null +++ b/tests/manual/qtouchevent/touchwidget.h @@ -0,0 +1,31 @@ +#ifndef TOUCHWIDGET_H +#define TOUCHWIDGET_H + +#include <QWidget> + +class TouchWidget : public QWidget +{ + Q_OBJECT + +public: + bool acceptTouchBegin, acceptTouchUpdate, acceptTouchEnd; + bool seenTouchBegin, seenTouchUpdate, seenTouchEnd; + bool closeWindowOnTouchEnd; + int touchPointCount; + + bool acceptMousePress, acceptMouseMove, acceptMouseRelease; + bool seenMousePress, seenMouseMove, seenMouseRelease; + bool closeWindowOnMouseRelease; + + inline TouchWidget(QWidget *parent = 0) + : QWidget(parent) + { + reset(); + } + + void reset(); + + bool event(QEvent *event); +}; + +#endif // TOUCHWIDGET_H |