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:
parent
98405c41c2
commit
cea3f4d535
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user