summaryrefslogtreecommitdiffstats
path: root/tests/manual/qtouchevent/touchwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/qtouchevent/touchwidget.cpp')
-rw-r--r--tests/manual/qtouchevent/touchwidget.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/manual/qtouchevent/touchwidget.cpp b/tests/manual/qtouchevent/touchwidget.cpp
index 54ca685..1e57c36 100644
--- a/tests/manual/qtouchevent/touchwidget.cpp
+++ b/tests/manual/qtouchevent/touchwidget.cpp
@@ -1,9 +1,10 @@
#include "touchwidget.h"
-#include <QMouseEvent>
+#include <QApplication>
+#include <QtEvents>
+#include <QTimer>
#include <QTouchEvent>
-
void TouchWidget::reset()
{
acceptTouchBegin
@@ -69,7 +70,7 @@ bool TouchWidget::event(QEvent *event)
case QEvent::MouseButtonRelease:
seenMouseRelease = true;
if (closeWindowOnMouseRelease)
- window()->close();
+ window()->close();
if (acceptMouseRelease) {
event->accept();
return true;