Prevent frame notifications going out when the content view is set
When the content view is set it will trigger a frame notification which we do not want to see because it would put our internal data on the geometry out of sync. So ignore the notification until after it is set. Change-Id: I704c2f186c8b0c6508a90d5dab51b7f6f02162fc Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
This commit is contained in:
parent
fdd94ef17c
commit
38545380e4
@ -717,7 +717,9 @@ void QCocoaWindow::setNSWindow(NSWindow *window)
|
||||
name:nil // Get all notifications
|
||||
object:m_nsWindow];
|
||||
|
||||
[m_contentView setPostsFrameChangedNotifications: NO];
|
||||
[window setContentView:m_contentView];
|
||||
[m_contentView setPostsFrameChangedNotifications: YES];
|
||||
}
|
||||
|
||||
void QCocoaWindow::clearNSWindow(NSWindow *window)
|
||||
|
Loading…
Reference in New Issue
Block a user