summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget_s60.cpp
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 14:37:23 (GMT)
commit859cca02a89ecadbb5578bb113e535374bcfcaca (patch)
tree1d27983f2ea431e99e14fb65cbbb6dbf34fea284 /src/gui/kernel/qwidget_s60.cpp
parent953e91c582cd396082250748e4c4d8424292c1de (diff)
downloadQt-859cca02a89ecadbb5578bb113e535374bcfcaca.zip
Qt-859cca02a89ecadbb5578bb113e535374bcfcaca.tar.gz
Qt-859cca02a89ecadbb5578bb113e535374bcfcaca.tar.bz2
Clear Qt::WA_OutsideWSRange when making window fullscreen
Task-number: QTBUG-10269 Reviewed-by: Jason Barron
Diffstat (limited to 'src/gui/kernel/qwidget_s60.cpp')
-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 2818d88..75a11ee 100644
--- a/src/gui/kernel/qwidget_s60.cpp
+++ b/src/gui/kernel/qwidget_s60.cpp
@@ -1133,8 +1133,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 {