summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qcombobox.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2010-07-01 10:48:00 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-07-01 10:48:00 (GMT)
commite9ac791e2afce05be68da5f7b0c00eac00811f29 (patch)
treea5ace3f53bbdcdb4bdbee21d916dea2135c6de82 /src/gui/widgets/qcombobox.cpp
parentd33268507b4a5f4a30ee0b24db45d4b79ef8f1c3 (diff)
downloadQt-e9ac791e2afce05be68da5f7b0c00eac00811f29.zip
Qt-e9ac791e2afce05be68da5f7b0c00eac00811f29.tar.gz
Qt-e9ac791e2afce05be68da5f7b0c00eac00811f29.tar.bz2
Fixed the combobox just adjusting their size without relayouting
When adjustSize() is called, we nned to call updateGeometry to notify the layout in which the combobox is to redo the layout. Task-number: QTBUG-2559
Diffstat (limited to 'src/gui/widgets/qcombobox.cpp')
-rw-r--r--src/gui/widgets/qcombobox.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/widgets/qcombobox.cpp b/src/gui/widgets/qcombobox.cpp
index 213ca95..fe00173 100644
--- a/src/gui/widgets/qcombobox.cpp
+++ b/src/gui/widgets/qcombobox.cpp
@@ -369,6 +369,7 @@ void QComboBoxPrivateContainer::timerEvent(QTimerEvent *timerEvent)
if (timerEvent->timerId() == adjustSizeTimer.timerId()) {
adjustSizeTimer.stop();
if (combo->sizeAdjustPolicy() == QComboBox::AdjustToContents) {
+ combo->updateGeometry();
combo->adjustSize();
combo->update();
}