diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2011-06-10 08:32:26 (GMT) |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2011-06-10 08:48:48 (GMT) |
commit | 5bb3af94428d85c9d08b3c4cfb31c4071604b06d (patch) | |
tree | 22a02850bb0119def96c2baed4ac466c6878425d | |
parent | c27b8de613fb5a2f1a4496e96ca988e426726991 (diff) | |
download | Qt-5bb3af94428d85c9d08b3c4cfb31c4071604b06d.zip Qt-5bb3af94428d85c9d08b3c4cfb31c4071604b06d.tar.gz Qt-5bb3af94428d85c9d08b3c4cfb31c4071604b06d.tar.bz2 |
Fix dialog position adjustment regression in Symbian
Removal of StyleChange event sending to dialogs in to previous
optimization (QTBUG-17840) caused dialogs to no longer adjust their
position properly at orientation switch. Added sending of a dummy
resize event for dialogs in case of KEikDynamicLayoutVariantSwitch
to trigger the adjustment.
Task-number: QT-5101
Reviewed-by: Sami Merila
-rw-r--r-- | src/gui/kernel/qapplication_s60.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp index d3b0e99..b5db3d0 100644 --- a/src/gui/kernel/qapplication_s60.cpp +++ b/src/gui/kernel/qapplication_s60.cpp @@ -1518,6 +1518,11 @@ void QSymbianControl::HandleResourceChange(int resourceType) QResizeEvent e(qt_desktopWidget->size(), qt_desktopWidget->size()); QApplication::sendEvent(qt_desktopWidget, &e); } + // Send resize event to dialogs so they can adjust their position if necessary. + if (qwidget->windowType() & Qt::Dialog) { + QResizeEvent e(qwidget->size(), qwidget->size()); + QApplication::sendEvent(qwidget, &e); + } break; } #endif |