summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowsmousehandler.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2014-10-30 16:42:15 +0100
committerFriedemann Kleint <Friedemann.Kleint@digia.com>2014-10-31 13:26:36 +0100
commite76b0c05f2c0f0376157aa1ef5fdc5d718248d98 (patch)
tree79d8aaa19c396bca3d408786fd757d5f1f3b7a86 /src/plugins/platforms/windows/qwindowsmousehandler.h
parent7245599a8c7102de04a41a995b19e37ed7f1b7f0 (diff)
Windows: Create touch device in initialization.
Previously, the device was delay-created, which is a problem if its type is to be used for determinining the pan gesture type. Task-number: QTBUG-40461 Change-Id: I2dee3d7a3786a0fdf0a9b2b9e174dd121697ab44 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsmousehandler.h')
-rw-r--r--src/plugins/platforms/windows/qwindowsmousehandler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowsmousehandler.h b/src/plugins/platforms/windows/qwindowsmousehandler.h
index 967c64e597..6491de93b5 100644
--- a/src/plugins/platforms/windows/qwindowsmousehandler.h
+++ b/src/plugins/platforms/windows/qwindowsmousehandler.h
@@ -51,6 +51,8 @@ class QWindowsMouseHandler
public:
QWindowsMouseHandler();
+ QTouchDevice *touchDevice() const { return m_touchDevice; }
+
bool translateMouseEvent(QWindow *widget, HWND hwnd,
QtWindows::WindowsEventType t, MSG msg,
LRESULT *result);