diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2011-08-11 08:49:38 (GMT) |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2011-08-11 08:49:38 (GMT) |
commit | 15b44c1ea04c3beebe4d7f6d9f45b81127c3c8f9 (patch) | |
tree | 635469f861a5d3719d0672a06a8c45b59e011369 /src/gui | |
parent | e9040d183dce6188ae9d1493167cb7247a6d4a7b (diff) | |
download | Qt-15b44c1ea04c3beebe4d7f6d9f45b81127c3c8f9.zip Qt-15b44c1ea04c3beebe4d7f6d9f45b81127c3c8f9.tar.gz Qt-15b44c1ea04c3beebe4d7f6d9f45b81127c3c8f9.tar.bz2 |
Fix clientRect usage in QWidgetPrivate::setGeometry_sys()
S60->clientRect() should be used these days for getting S60 client rect,
so fix the old fashined usage that was in cherry-picked commit.
Task-number: QTTH-1306
Reviewed-by: TrustMe
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qwidget_s60.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_s60.cpp b/src/gui/kernel/qwidget_s60.cpp index e437579..c490572 100644 --- a/src/gui/kernel/qwidget_s60.cpp +++ b/src/gui/kernel/qwidget_s60.cpp @@ -238,7 +238,7 @@ void QWidgetPrivate::setGeometry_sys(int x, int y, int w, int h, bool isMove) bool checkExtra = true; if (q->isWindow() && (data.window_state & (Qt::WindowFullScreen | Qt::WindowMaximized))) { // Do not allow fullscreen/maximized windows to expand beyond client rect - TRect r = static_cast<CEikAppUi*>(S60->appUi())->ClientRect(); + TRect r = S60->clientRect(); w = qMin(w, r.Width()); h = qMin(h, r.Height()); |