summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2011-05-05 11:10:51 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2011-05-05 11:28:04 (GMT)
commite8fc93973a41f193665baa5fdc26cba951bd692f (patch)
tree9579daa5b6047042918389ecb97d0e393f32d7c7 /src/gui
parente1cd594cf2daa6667b411aa639f4ec1195b7e067 (diff)
downloadQt-e8fc93973a41f193665baa5fdc26cba951bd692f.zip
Qt-e8fc93973a41f193665baa5fdc26cba951bd692f.tar.gz
Qt-e8fc93973a41f193665baa5fdc26cba951bd692f.tar.bz2
Fix initial main window dimensions for "fullscreen with softkeys" case
The application main window defaults to fullscreen size when initially constructed, even if softkeys are specified for it, as the screen furniture is constructed later in show_sys. This resulted in the main window being partially under softkeys. Fixed by invoking handleClientAreaChange() explicitly in show_sys in fullscreen with softkeys case. Task-number: QTBUG-19043 Reviewed-by: Sami Merila
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qwidget_s60.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget_s60.cpp b/src/gui/kernel/qwidget_s60.cpp
index d55e1ad..a5d8f9f 100644
--- a/src/gui/kernel/qwidget_s60.cpp
+++ b/src/gui/kernel/qwidget_s60.cpp
@@ -563,6 +563,11 @@ void QWidgetPrivate::show_sys()
if (isFullscreen) {
const bool cbaVisible = S60->buttonGroupContainer() && S60->buttonGroupContainer()->IsVisible();
S60->setStatusPaneAndButtonGroupVisibility(false, cbaVisible);
+ if (cbaVisible) {
+ // Fix window dimensions as without screen furniture they will have
+ // defaulted to full screen dimensions initially.
+ id->handleClientAreaChange();
+ }
}
}
}