diff options
author | Richard Moe Gustavsen <richard.gustavsen@digia.com> | 2012-10-18 13:25:56 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-18 21:50:27 +0200 |
commit | 0221d769c76e50d8b331c2cdf527110b62cb3e66 (patch) | |
tree | f0b59dfaedfaf67078714bd4441f14136aff907b /examples | |
parent | f45afd71551a6cd1553952ea003e9356651809b5 (diff) |
Cocoa: fix frameStrutMouseEvents
It turns out that the calculation of mouse pos over the frame
strut (title bar) was wrong. When outside the content view, the
nsevent coordinates are negative, so to get this correct, we
need to calculate the height of the window above the content view
and use this information to get the mouse pos in positive
coordinates with origin window top left.
This bug was especially apperent with QDockWidget, as it became
almost impossible to dock a window under such circumstances.
Change-Id: I2faf6aab5e2aa0b4e217ea087ceec8c1b1e978bb
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions