diff options
author | axis <qt-info@nokia.com> | 2009-11-13 11:34:57 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-11-13 11:34:57 (GMT) |
commit | d1d737d8497b6a0d80e16c81ef20b9eac6ee72b6 (patch) | |
tree | 94c53dd3891e0c76ec474591f553c5fe9312cb83 /src/gui/kernel/qwidget_s60.cpp | |
parent | becf7dc2b4b7c2609350eb3236f854c1a4a344f5 (diff) | |
parent | ee8e0fc9f32a84bd1e1673c9756044d62ecaebf5 (diff) | |
download | Qt-d1d737d8497b6a0d80e16c81ef20b9eac6ee72b6.zip Qt-d1d737d8497b6a0d80e16c81ef20b9eac6ee72b6.tar.gz Qt-d1d737d8497b6a0d80e16c81ef20b9eac6ee72b6.tar.bz2 |
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-s60-public into 4.6-staging2
Diffstat (limited to 'src/gui/kernel/qwidget_s60.cpp')
-rw-r--r-- | src/gui/kernel/qwidget_s60.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/gui/kernel/qwidget_s60.cpp b/src/gui/kernel/qwidget_s60.cpp index 629af8f..b1c37d3 100644 --- a/src/gui/kernel/qwidget_s60.cpp +++ b/src/gui/kernel/qwidget_s60.cpp @@ -213,6 +213,15 @@ void QWidgetPrivate::setGeometry_sys(int x, int y, int w, int h, bool isMove) if ((q->windowType() == Qt::Desktop)) return; + + QPoint oldPos(q->pos()); + QSize oldSize(q->size()); + QRect oldGeom(data.crect); + + // Lose maximized status if deliberate resize + if (w != oldSize.width() || h != oldSize.height()) + data.window_state &= ~Qt::WindowMaximized; + if (extra) { // any size restrictions? w = qMin(w,extra->maxw); h = qMin(h,extra->maxh); @@ -228,17 +237,10 @@ void QWidgetPrivate::setGeometry_sys(int x, int y, int w, int h, bool isMove) data.window_state = s; } - QPoint oldPos(q->pos()); - QSize oldSize(q->size()); - QRect oldGeom(data.crect); - bool isResize = w != oldSize.width() || h != oldSize.height(); if (!isMove && !isResize) return; - if (isResize) - data.window_state &= ~Qt::WindowMaximized; - if (q->isWindow()) { if (w == 0 || h == 0) { q->setAttribute(Qt::WA_OutsideWSRange, true); |