diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-12-16 14:44:11 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-12-16 14:50:06 (GMT) |
commit | cbe70d58bc1667b2e09f78a5d4427e7d071a2354 (patch) | |
tree | 027b7c44af641d7324038ce7334f5fdf14e4f67c /src/gui | |
parent | 6d84ab27595ad9b570ccaf5a3230e83aa878ef06 (diff) | |
download | Qt-cbe70d58bc1667b2e09f78a5d4427e7d071a2354.zip Qt-cbe70d58bc1667b2e09f78a5d4427e7d071a2354.tar.gz Qt-cbe70d58bc1667b2e09f78a5d4427e7d071a2354.tar.bz2 |
Fixed wheel event delivery in graphicsview.
We don't need to flip the y-coordinate of window- and view-local coordinates
because they are flipped already.
Reviewed-by: Prasanth
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qcocoaview_mac.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qcocoaview_mac.mm b/src/gui/kernel/qcocoaview_mac.mm index ddd8ca6..6c06746 100644 --- a/src/gui/kernel/qcocoaview_mac.mm +++ b/src/gui/kernel/qcocoaview_mac.mm @@ -777,7 +777,7 @@ extern "C" { NSPoint windowPoint = [theEvent locationInWindow]; NSPoint globalPoint = [[theEvent window] convertBaseToScreen:windowPoint]; NSPoint localPoint = [self convertPoint:windowPoint fromView:nil]; - QPoint qlocal = QPoint(localPoint.x, flipYCoordinate(localPoint.y)); + QPoint qlocal = QPoint(localPoint.x, localPoint.y); QPoint qglobal = QPoint(globalPoint.x, flipYCoordinate(globalPoint.y)); Qt::MouseButtons buttons = QApplication::mouseButtons(); bool wheelOK = false; |