Return the correct geometry

When the platform window is created, it is the
authorative source for geometry information.

It would however be better if we could completely
avoid duplicated places for the geometry data.

Change-Id: Id90b24b9c40acb57f3d11b8b927292c06bac335e
Reviewed-on: http://codereview.qt-project.org/5258
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
bb10
Lars Knoll 2011-09-19 21:08:36 +02:00 committed by Qt by Nokia
parent c835b98e8f
commit 21747af805
1 changed files with 2 additions and 0 deletions

View File

@ -425,6 +425,8 @@ void QWindow::setGeometry(const QRect &rect)
QRect QWindow::geometry() const
{
Q_D(const QWindow);
if (d->platformWindow)
return d->platformWindow->geometry();
return d->geometry;
}