Changeset 846 for trunk/src/gui/kernel/qdesktopwidget_s60.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/kernel/qdesktopwidget_s60.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 104 104 rects->resize(QDesktopWidgetPrivate::screenCount); 105 105 workrects->resize(QDesktopWidgetPrivate::screenCount); 106 107 (*rects)[0].setRect(0, 0, S60->screenWidthInPixels, S60->screenHeightInPixels); 108 QRect wr = qt_TRect2QRect(static_cast<CEikAppUi*>(S60->appUi())->ClientRect()); 109 (*workrects)[0].setRect(wr.x(), wr.y(), wr.width(), wr.height()); 106 110 } 107 111 … … 147 151 } 148 152 149 const QRect QDesktopWidget::availableGeometry(int /* screen */) const 150 { 151 TRect clientRect = static_cast<CEikAppUi*>(S60->appUi())->ClientRect(); 152 return qt_TRect2QRect(clientRect); 153 } 154 155 const QRect QDesktopWidget::screenGeometry(int /* screen */) const 153 const QRect QDesktopWidget::availableGeometry(int screen) const 156 154 { 157 155 Q_D(const QDesktopWidget); 158 return QRect(0, 0, S60->screenWidthInPixels, S60->screenHeightInPixels); 159 } 156 if (screen < 0 || screen >= d->screenCount) 157 screen = d->primaryScreen; 158 159 return d->workrects->at(screen); 160 } 161 162 const QRect QDesktopWidget::screenGeometry(int screen) const 163 { 164 Q_D(const QDesktopWidget); 165 if (screen < 0 || screen >= d->screenCount) 166 screen = d->primaryScreen; 167 168 return d->rects->at(screen); 169 } 160 170 161 171 int QDesktopWidget::screenNumber(const QWidget * /* widget */) const
Note:
See TracChangeset
for help on using the changeset viewer.