From 4ea25071a909c1ac6d69930af2575774d4e9127e Mon Sep 17 00:00:00 2001 From: Thierry Bastian Date: Thu, 1 Jul 2010 12:48:00 +0200 Subject: 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 --- src/gui/widgets/qcombobox.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/widgets/qcombobox.cpp b/src/gui/widgets/qcombobox.cpp index 8f2cbff..d108c86 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(); } -- cgit v0.12