path: root/src/testlib/qtestmouse.h
diff options
authorSamuel Nevala <>2015-11-16 13:21:46 +0200
committerSamuel Nevala <>2015-11-17 14:59:47 +0000
commit4f1234033ba647dd4d32e87eecb832773d089abc (patch)
tree04185ff97d8a8730f39906f171c3b784453dbc5e /src/testlib/qtestmouse.h
parent4e7c0993d555ffa4ed32ffb9c36dab648e4f8bd4 (diff)
wirt: Fix cursor position method.
The native position is given in device-independent pixels, so multiply that by the window scale factor. If no cursor is present (e.g. on Windows Phone), the native API returns SHRT_MIN as the coordinate values. Catch that and pass Infinity instead in order to enable the cursorless fall-back behavior in QQuickMenu::popup(). Change-Id: Ibe8ebcdbe257e8df25eea9873e8f4fa647ae1ab2 Task-Id: QTBUG-48265 Reviewed-by: Andrew Knight <>
Diffstat (limited to 'src/testlib/qtestmouse.h')
0 files changed, 0 insertions, 0 deletions