diff options
author | Morten Sorvig <morten.sorvig@nokia.com> | 2011-10-26 12:35:52 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-27 09:38:26 +0200 |
commit | 3849455ee791d6f5cd4b87253732827d40e5d28a (patch) | |
tree | e4882153eb7b03db3fffbeec9fedd03fbc16c31b /src/plugins/platforms/cocoa/qcocoahelpers.h | |
parent | db44fdf4d65493706dc9a0aaf5e58729dc7867f9 (diff) |
Cocoa: Set correct child window geometry.
Remote globalGeometry which was completely wrong,
replace with flipRect which converts from Qt
screen coordinates to OS X screen coordinates.
Change-Id: Ie560cb7c2266fe779da8a44a35596d2d12af77f5
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoahelpers.h')
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoahelpers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoahelpers.h b/src/plugins/platforms/cocoa/qcocoahelpers.h index 3c1c0655f8..57eaa2f54d 100644 --- a/src/plugins/platforms/cocoa/qcocoahelpers.h +++ b/src/plugins/platforms/cocoa/qcocoahelpers.h @@ -104,6 +104,7 @@ inline NSPoint qt_mac_flipPoint(const QPoint &p) inline NSPoint qt_mac_flipPoint(const QPointF &p) { return NSMakePoint(p.x(), qt_mac_flipYCoordinate(p.y())); } +NSRect qt_mac_flipRect(const QRect &rect, QWindow *window); #endif //QCOCOAHELPERS_H |