summaryrefslogtreecommitdiffstats
path: root/src/touchmockingapplication.h
diff options
context:
space:
mode:
authorSzabolcs David <[email protected]>2023-03-08 15:04:07 +0100
committerSzabolcs David <[email protected]>2023-04-05 10:50:54 +0000
commit1fe0003d727bdacd30c552f01000c434971ad3ca (patch)
tree9bb8e594214e02c8230cea07387d47850bee9505 /src/touchmockingapplication.h
parenta09ec269e8b296d39d78b45ae251edb3d7bada41 (diff)
Update project to work with Qt 6HEADdev
Also fix an old issue: tab view now presents preview images. Change-Id: I47eb48b626e62e53e130734c92cc7ec8ed9ecb66 Reviewed-by: Michal Klocek <[email protected]>
Diffstat (limited to 'src/touchmockingapplication.h')
-rw-r--r--src/touchmockingapplication.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/touchmockingapplication.h b/src/touchmockingapplication.h
index d6f13ec..f2c4b5a 100644
--- a/src/touchmockingapplication.h
+++ b/src/touchmockingapplication.h
@@ -33,7 +33,8 @@
#include <QtCore/QHash>
#include <QtCore/QUrl>
#include <QtGui/QGuiApplication>
-#include <QtGui/QTouchEvent>
+#include <QEventPoint>
+#include <QMouseEvent>
QT_BEGIN_NAMESPACE
class QQuickView;
@@ -62,7 +63,7 @@ private:
QPointF m_lastScreenPos;
QPointF m_startScreenPos;
- QHash<int, QTouchEvent::TouchPoint> m_touchPoints;
+ QHash<int, QEventPoint> m_touchPoints;
QSet<int> m_heldTouchPoints;
QHash<int, QQuickItem*> m_activeMockComponents;