src/gui/dialogs/qdialog.cpp
branchRCL_3
changeset 4 3b1da2848fc7
parent 0 1918ee327afb
child 5 d3bac044e0f0
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     8 **
     8 **
   886     const int statusPaneHeight = (S60->screenHeightInPixels - mainAreaSize.height())>>1;
   886     const int statusPaneHeight = (S60->screenHeightInPixels - mainAreaSize.height())>>1;
   887     const bool doS60Positioning = !(isFullScreen()||isMaximized());
   887     const bool doS60Positioning = !(isFullScreen()||isMaximized());
   888     if (doS60Positioning) {
   888     if (doS60Positioning) {
   889         // naive way to deduce screen orientation
   889         // naive way to deduce screen orientation
   890         if (S60->screenHeightInPixels > S60->screenWidthInPixels) {
   890         if (S60->screenHeightInPixels > S60->screenWidthInPixels) {
   891             p.setY(S60->screenHeightInPixels-height()-qt_TSize2QSize(S60->buttonGroupContainer()->Size()).height());
   891             int cbaHeight;
       
   892             const CEikButtonGroupContainer* bgContainer = S60->buttonGroupContainer();
       
   893             if (!bgContainer) {
       
   894                 cbaHeight = 0;
       
   895             } else {
       
   896                 cbaHeight = qt_TSize2QSize(bgContainer->Size()).height();
       
   897             }
       
   898             p.setY(S60->screenHeightInPixels-height()-cbaHeight);
   892             p.setX(0);
   899             p.setX(0);
   893         } else {
   900         } else {
   894             const int scrollbarWidth = style()->pixelMetric(QStyle::PM_ScrollBarExtent);
   901             const int scrollbarWidth = style()->pixelMetric(QStyle::PM_ScrollBarExtent);
   895             TRect cbaRect = TRect();
   902             TRect cbaRect = TRect();
   896             AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EControlPane, cbaRect);
   903             AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EControlPane, cbaRect);