Cocoa: Set geometry for foreign views.

Make sure QPlatformWindow::setGeometry is called for
the QWindow::fromWinId() case where there is no
QNSView.

Change-Id: I72dd11a0eb0f3cfbd09b87ffeac86f2a826e0192
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
This commit is contained in:
Morten Johan Sørvig 2014-01-23 13:38:39 +01:00 committed by The Qt Project
parent 98405c41c2
commit cea3f4d535

View File

@ -398,6 +398,9 @@ void QCocoaWindow::setCocoaGeometry(const QRect &rect)
[m_contentView setFrame : NSMakeRect(rect.x(), rect.y(), rect.width(), rect.height())];
}
if (!m_qtView)
QPlatformWindow::setGeometry(rect);
// will call QPlatformWindow::setGeometry(rect) during resize confirmation (see qnsview.mm)
}