diff options
author | Sami Merila <sami.merila@nokia.com> | 2011-10-14 09:56:53 (GMT) |
---|---|---|
committer | Sami Merila <sami.merila@nokia.com> | 2011-10-14 09:56:53 (GMT) |
commit | 6f6d94acaefc202e2a922ff2ea672afa64490c4e (patch) | |
tree | 14883bfbe39c4ab514bf1c8b8b37d335dd460403 | |
parent | 01057867c3e5e97fc8b58601e3cee6dfef0df205 (diff) | |
download | Qt-6f6d94acaefc202e2a922ff2ea672afa64490c4e.zip Qt-6f6d94acaefc202e2a922ff2ea672afa64490c4e.tar.gz Qt-6f6d94acaefc202e2a922ff2ea672afa64490c4e.tar.bz2 |
Maximized dialogs are incorrectly positioned after layout switch
The native side seems to return StaCon pane height as zero in Belle.
If no StaCon pane height is available, try to fetch Status Pane height
and use that one.
Task-number: QTBUG-22022
Reviewed-by: Miikka Heikkinen
-rw-r--r-- | src/gui/dialogs/qdialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/dialogs/qdialog.cpp b/src/gui/dialogs/qdialog.cpp index 2fb6c67..d2211af 100644 --- a/src/gui/dialogs/qdialog.cpp +++ b/src/gui/dialogs/qdialog.cpp @@ -909,6 +909,10 @@ bool QDialog::symbianAdjustedPosition() AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EStatusPane, statusPaneRect); } else { AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EStaconTop, statusPaneRect); + // In some native layouts, StaCon is not used. Try to fetch the status pane + // height from StatusPane component. + if (statusPaneRect.IsEmpty()) + AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EStatusPane, statusPaneRect); } p.setX(0); |