diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-04-23 13:54:06 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-04-23 13:54:06 (GMT) |
commit | 704261859297dae22f90be32ed0e4b675fd02ed3 (patch) | |
tree | 8caf377548e8fe9a3d8033ec074c06d825030a04 /tests/manual/qtouchevent/touchwidget.h | |
parent | 726694c873104ac484a3d09c1a9f64f06a88f864 (diff) | |
download | Qt-704261859297dae22f90be32ed0e4b675fd02ed3.zip Qt-704261859297dae22f90be32ed0e4b675fd02ed3.tar.gz Qt-704261859297dae22f90be32ed0e4b675fd02ed3.tar.bz2 |
Initial test for TouchBegin propagation and TouchUpdate/TouchEnd handling
Diffstat (limited to 'tests/manual/qtouchevent/touchwidget.h')
-rw-r--r-- | tests/manual/qtouchevent/touchwidget.h | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/tests/manual/qtouchevent/touchwidget.h b/tests/manual/qtouchevent/touchwidget.h index f438a87..3e95610 100644 --- a/tests/manual/qtouchevent/touchwidget.h +++ b/tests/manual/qtouchevent/touchwidget.h @@ -10,8 +10,11 @@ class TouchWidget : public QWidget public: bool acceptTouchBegin, acceptTouchUpdate, acceptTouchEnd; bool seenTouchBegin, seenTouchUpdate, seenTouchEnd; + bool closeWindowOnTouchEnd; + bool acceptMousePress, acceptMouseMove, acceptMouseRelease; bool seenMousePress, seenMouseMove, seenMouseRelease; + bool closeWindowOnMouseRelease; inline TouchWidget(QWidget *parent = 0) : QWidget(parent) @@ -19,22 +22,7 @@ public: reset(); } - void reset() - { - acceptTouchBegin - = acceptTouchUpdate - = acceptTouchEnd - = seenTouchBegin - = seenTouchUpdate - = seenTouchEnd - = acceptMousePress - = acceptMouseMove - = acceptMouseRelease - = seenMousePress - = seenMouseMove - = seenMouseRelease - = false; - } + void reset(); bool event(QEvent *event); }; |