summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/winrt/qwinrtcursor.h
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2018-07-12 13:01:14 +0200
committerOliver Wolff <oliver.wolff@qt.io>2018-08-06 05:24:35 +0000
commite05dc08ba02b4a9d893190230c8dfd2554ec4413 (patch)
tree44e4ecde31d11f5a8568304a45861a59e6b2deb0 /src/plugins/platforms/winrt/qwinrtcursor.h
parent01e57909d4bce31483d023cf11dd2298391b38f3 (diff)
winrt: Implement QPlatformCursor::setPos
Additionally to setting the cursor position we have to make sure that enter and leave events are triggered. As WinRT at the moment only supports maximized/fullscreen native top level widgets, an enter or leave event has to be triggered, every time the cursor enters or leaves the core window. Same as is done on Windows desktop an enter event is immediately followed by a move event even for emulated mouse events. Change-Id: I4b9a7b07f8e24b7887619f96979a064d933788aa Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Diffstat (limited to 'src/plugins/platforms/winrt/qwinrtcursor.h')
-rw-r--r--src/plugins/platforms/winrt/qwinrtcursor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/winrt/qwinrtcursor.h b/src/plugins/platforms/winrt/qwinrtcursor.h
index 7f579f1531..253827f38f 100644
--- a/src/plugins/platforms/winrt/qwinrtcursor.h
+++ b/src/plugins/platforms/winrt/qwinrtcursor.h
@@ -54,6 +54,7 @@ public:
void changeCursor(QCursor * windowCursor, QWindow *window) override;
#endif
QPoint pos() const override;
+ void setPos(const QPoint &pos) override;
private:
QScopedPointer<QWinRTCursorPrivate> d_ptr;