summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget.cpp
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-10-20 14:55:10 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-10-20 14:55:10 (GMT)
commit101bcfd2ac0cb6d7fed6cd2e7a54012ff34afe70 (patch)
tree3211aac1892ea0d7ec50ed8f5f3b1facdffac9ab /src/gui/kernel/qwidget.cpp
parent393db7ada80e803c73fa65f68f5dd037c16ed836 (diff)
parentaf17ea048179ea0c21a897f803e79f825a9d13b6 (diff)
downloadQt-101bcfd2ac0cb6d7fed6cd2e7a54012ff34afe70.zip
Qt-101bcfd2ac0cb6d7fed6cd2e7a54012ff34afe70.tar.gz
Qt-101bcfd2ac0cb6d7fed6cd2e7a54012ff34afe70.tar.bz2
Merge branch 'qlayout-make_adjustSize_better' into 4.6
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r--src/gui/kernel/qwidget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index b7a96b0..c36c68a 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -7723,6 +7723,10 @@ void QWidget::adjustSize()
Q_D(QWidget);
ensurePolished();
QSize s = d->adjustedSize();
+
+ if (d->layout)
+ d->layout->activate();
+
if (s.isValid())
resize(s);
}