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:
parent
a06cb56dde
commit
a7b92e8401
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user