summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-07-26 13:04:52 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-07-28 15:07:53 (GMT)
commit8f0e2e8a995f16fe737e538ce6f35e91b5a100b5 (patch)
tree2eea76e2ae0913e9683a195ee2210938d0010ce6 /src/gui
parent0041606aefae5da0ff6c8187540f3eff33cbb643 (diff)
downloadQt-8f0e2e8a995f16fe737e538ce6f35e91b5a100b5.zip
Qt-8f0e2e8a995f16fe737e538ce6f35e91b5a100b5.tar.gz
Qt-8f0e2e8a995f16fe737e538ce6f35e91b5a100b5.tar.bz2
Clear Qt::WA_OutsideWSRange when making window fullscreen
Task-number: QTBUG-10269 Reviewed-by: Jason Barron
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qwidget_s60.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget_s60.cpp b/src/gui/kernel/qwidget_s60.cpp
index 46f3254..d06328c 100644
--- a/src/gui/kernel/qwidget_s60.cpp
+++ b/src/gui/kernel/qwidget_s60.cpp
@@ -1130,8 +1130,10 @@ void QWidget::setWindowState(Qt::WindowStates newstate)
const bool cbaVisibilityHint = windowFlags() & Qt::WindowSoftkeysVisibleHint;
if (newstate & Qt::WindowFullScreen && !cbaVisibilityHint) {
+ setAttribute(Qt::WA_OutsideWSRange, false);
window->SetExtentToWholeScreen();
} else if (newstate & Qt::WindowMaximized || ((newstate & Qt::WindowFullScreen) && cbaVisibilityHint)) {
+ setAttribute(Qt::WA_OutsideWSRange, false);
TRect maxExtent = qt_QRect2TRect(qApp->desktop()->availableGeometry(this));
window->SetExtent(maxExtent.iTl, maxExtent.Size());
} else {