diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-05-15 12:53:23 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-05-15 12:56:12 (GMT) |
commit | 3875cd2b0a81c190939ea2803a2efbe890ae38ec (patch) | |
tree | 311037a4348192d7df83cc32185275fc0b899d1b /src/gui/kernel | |
parent | d216c0fd62a879fd1eb84e087f70c7f542d75d58 (diff) | |
download | Qt-3875cd2b0a81c190939ea2803a2efbe890ae38ec.zip Qt-3875cd2b0a81c190939ea2803a2efbe890ae38ec.tar.gz Qt-3875cd2b0a81c190939ea2803a2efbe890ae38ec.tar.bz2 |
Cocoa: Window flickers when resized with a QTabWidget
Seems like we were not using the correct functions for setting
the max/min size on a cocoa window. The version we used before included
the unified toolbar, which is wrong. The new one does not.
Task-number: 252642
Reviewed-by: Trenton Schulz
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qwidget_mac.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm index 0e021dc..f863428 100644 --- a/src/gui/kernel/qwidget_mac.mm +++ b/src/gui/kernel/qwidget_mac.mm @@ -4035,8 +4035,8 @@ void QWidgetPrivate::applyMaxAndMinSizeOnWindow() NSSize max = NSMakeSize(SF(extra->maxw), SF(extra->maxh)); NSSize min = NSMakeSize(SF(extra->minw), SF(extra->minh)); #undef SF - [qt_mac_window_for(q) setMinSize:min]; - [qt_mac_window_for(q) setMaxSize:max]; + [qt_mac_window_for(q) setContentMinSize:min]; + [qt_mac_window_for(q) setContentMaxSize:max]; #endif } |