Cocoa: Fix window resizing

Set the geomeotry on the platform window on resize. (There
used to be a callback form the QWindow earlier.)

Change-Id: I2298a03d1e015279b28a02da9f05f90f25148efb
Reviewed-on: http://codereview.qt-project.org/5834
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
This commit is contained in:
Morten Sorvig 2011-09-30 08:52:00 +02:00 committed by Qt by Nokia
parent a06cb56dde
commit a7b92e8401

View File

@ -185,6 +185,7 @@ void QCocoaWindow::windowDidResize()
NSRect windowRect = [m_nsWindow frame];
QRect geo(windowRect.origin.x, qt_mac_flipYCoordinate(windowRect.origin.y + rect.size.height), rect.size.width, rect.size.height);
setGeometry(geo);
QWindowSystemInterface::handleSynchronousGeometryChange(window(), geo);
}