summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/qdialog.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-01-12 17:56:45 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-01-12 17:56:45 (GMT)
commit22796b38c3a7dbcdb540e4c58e645b0267fe360c (patch)
treedab9604e944d0184249ac2dceca7b6b16adba39e /src/gui/dialogs/qdialog.cpp
parentb958102dfa36a3554911adb8fdb21375f0ecb48c (diff)
parentbf71ab63e805e49e59fbe25265104a414ab7d039 (diff)
downloadQt-22796b38c3a7dbcdb540e4c58e645b0267fe360c.zip
Qt-22796b38c3a7dbcdb540e4c58e645b0267fe360c.tar.gz
Qt-22796b38c3a7dbcdb540e4c58e645b0267fe360c.tar.bz2
Merge branch '4.6'
Diffstat (limited to 'src/gui/dialogs/qdialog.cpp')
-rw-r--r--src/gui/dialogs/qdialog.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/dialogs/qdialog.cpp b/src/gui/dialogs/qdialog.cpp
index ed2d676..d7653e5 100644
--- a/src/gui/dialogs/qdialog.cpp
+++ b/src/gui/dialogs/qdialog.cpp
@@ -888,7 +888,14 @@ bool QDialog::s60AdjustedPosition()
if (doS60Positioning) {
// naive way to deduce screen orientation
if (S60->screenHeightInPixels > S60->screenWidthInPixels) {
- p.setY(S60->screenHeightInPixels-height()-qt_TSize2QSize(S60->buttonGroupContainer()->Size()).height());
+ int cbaHeight;
+ const CEikButtonGroupContainer* bgContainer = S60->buttonGroupContainer();
+ if (!bgContainer) {
+ cbaHeight = 0;
+ } else {
+ cbaHeight = qt_TSize2QSize(bgContainer->Size()).height();
+ }
+ p.setY(S60->screenHeightInPixels-height()-cbaHeight);
p.setX(0);
} else {
const int scrollbarWidth = style()->pixelMetric(QStyle::PM_ScrollBarExtent);