diff options
author | Samuel Nevala <samuel.nevala@intopalo.com> | 2015-11-16 13:21:46 +0200 |
---|---|---|
committer | Samuel Nevala <samuel.nevala@intopalo.com> | 2015-11-17 14:59:47 +0000 |
commit | 4f1234033ba647dd4d32e87eecb832773d089abc (patch) | |
tree | 04185ff97d8a8730f39906f171c3b784453dbc5e /header.COMM | |
parent | 4e7c0993d555ffa4ed32ffb9c36dab648e4f8bd4 (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 <andrew.knight@intopalo.com>
Diffstat (limited to 'header.COMM')
0 files changed, 0 insertions, 0 deletions