From 84569773db68408704193268bc42a200bb25a924 Mon Sep 17 00:00:00 2001 From: Marko Kangas Date: Tue, 16 Dec 2014 17:56:40 +0200 Subject: Fix OS X style MDI area subwindow resize Fixed regression bug of the commit #fc11798 Change-Id: I3d64fd67dfe2196a726886a19b9510dd12ff255d Task-number: QTBUG-43392 Reviewed-by: Andy Shaw --- src/widgets/styles/qmacstyle_mac.mm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/widgets/styles') diff --git a/src/widgets/styles/qmacstyle_mac.mm b/src/widgets/styles/qmacstyle_mac.mm index 5c17cdf489..c166b1b26e 100644 --- a/src/widgets/styles/qmacstyle_mac.mm +++ b/src/widgets/styles/qmacstyle_mac.mm @@ -879,6 +879,10 @@ static QSize qt_aqua_get_known_size(QStyle::ContentsType ct, const QWidget *widg gbi.size = sz == QAquaSizeSmall ? kHIThemeGrowBoxSizeSmall : kHIThemeGrowBoxSizeNormal; if (HIThemeGetGrowBoxBounds(&p, &gbi, &r) == noErr) { int width = 0; +#ifndef QT_NO_MDIAREA + if (widg && qobject_cast(widg->parentWidget())) + width = r.size.width; +#endif ret = QSize(width, r.size.height); } } -- cgit v1.2.3