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 (cherry picked from commit e8fc93973a41f193665baa5fdc26cba951bd692f)
This commit is contained in:
parent
4b2d966566
commit
a2e836f3c1
@ -576,6 +576,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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user