diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2010-07-01 12:48:00 +0200 |
---|---|---|
committer | Qt Commercial Integration <QtCommercial@digia.com> | 2012-01-31 12:25:03 +0200 |
commit | 4ea25071a909c1ac6d69930af2575774d4e9127e (patch) | |
tree | e6c9e34d2a25367d7f4df22c4f6cc4e8121410bc | |
parent | fd8df6ad5640cbdb4f4d24b8dcd72e14b063cc76 (diff) |
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
-rw-r--r-- | src/gui/widgets/qcombobox.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/widgets/qcombobox.cpp b/src/gui/widgets/qcombobox.cpp index 8f2cbffc76..d108c862f8 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(); } |