summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowsmousehandler.h
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@digia.com>2012-11-27 10:11:30 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-27 16:18:19 +0100
commite9a8b026f51d77ccb014c9e8011b081d4100aad4 (patch)
treec500dc708ecf4259a33c72a236b80adbcbc9c026 /src/plugins/platforms/windows/qwindowsmousehandler.h
parenta7ac89353455cf05d11636400aee532de62a7427 (diff)
Fix touch event handling for Windows
Filtering touch events depending on Qt::WA_AcceptTouchEvents is not trivial. I thought about doing so in QWidgetWindow::handleTouchEvent but the target widget (not window), which has to be checked, has to be obtained using the primary touch event's position etc. Thus that is not part of this commit and will be done in a followup. Change-Id: I876ee72acd7fdfbe46da61c6eb3c5891ea319cd8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsmousehandler.h')
-rw-r--r--src/plugins/platforms/windows/qwindowsmousehandler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowsmousehandler.h b/src/plugins/platforms/windows/qwindowsmousehandler.h
index 965deb4e0f..c652f869f1 100644
--- a/src/plugins/platforms/windows/qwindowsmousehandler.h
+++ b/src/plugins/platforms/windows/qwindowsmousehandler.h
@@ -80,6 +80,7 @@ private:
QPointer<QWindow> m_windowUnderMouse;
QPointer<QWindow> m_trackedWindow;
QHash<DWORD, int> m_touchInputIDToTouchPointID;
+ QHash<int, QPointF> m_lastTouchPositions;
QTouchDevice *m_touchDevice;
bool m_leftButtonDown;
QWindow *m_previousCaptureWindow;