summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSami Merila <sami.merila@nokia.com>2011-10-14 09:56:53 (GMT)
committerSami Merila <sami.merila@nokia.com>2011-10-14 09:56:53 (GMT)
commit6f6d94acaefc202e2a922ff2ea672afa64490c4e (patch)
tree14883bfbe39c4ab514bf1c8b8b37d335dd460403
parent01057867c3e5e97fc8b58601e3cee6dfef0df205 (diff)
downloadQt-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.cpp4
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);