From d3caea04dc6c3a7072a43294b70bec860c199bf1 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 24 Nov 2020 09:20:08 +0100 Subject: Windows QPA: Pass device for synthesized touch/tablet events Add the overloads for mouse events with device/without timestamp and pass the active tablet or touch device. Task-number: QTBUG-88678 Task-number: QTBUG-46412 Pick-to: 6.0 Change-Id: I8695b493540d0cbf50e9c72afe870a7633de3ab9 Reviewed-by: Oliver Wolff --- src/plugins/platforms/windows/qwindowsmousehandler.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/platforms/windows/qwindowsmousehandler.h') diff --git a/src/plugins/platforms/windows/qwindowsmousehandler.h b/src/plugins/platforms/windows/qwindowsmousehandler.h index c007cf5a5b..6fd8061ddd 100644 --- a/src/plugins/platforms/windows/qwindowsmousehandler.h +++ b/src/plugins/platforms/windows/qwindowsmousehandler.h @@ -85,6 +85,8 @@ public: void clearWindowUnderMouse() { m_windowUnderMouse = nullptr; } void clearEvents(); + static const QPointingDevice *primaryMouse(); + private: inline bool translateMouseWheelEvent(QWindow *window, HWND hwnd, MSG msg, LRESULT *result); -- cgit v1.2.3