summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2010-07-16 08:17:32 (GMT)
committerJoerg Bornemann <joerg.bornemann@nokia.com>2010-07-16 09:40:01 (GMT)
commit5f76c2b168ded91835d5d161b738a5dc03556cf6 (patch)
treee448c96ee0d3b11d9a69a1ff79cc4854dff4a293
parent7a0b487ec10abd71bda6053021749740dc0ac545 (diff)
downloadQt-5f76c2b168ded91835d5d161b738a5dc03556cf6.zip
Qt-5f76c2b168ded91835d5d161b738a5dc03556cf6.tar.gz
Qt-5f76c2b168ded91835d5d161b738a5dc03556cf6.tar.bz2
Windows mobile: show the [X] button in the taskbar when maximizing
We're now showing the cancel button explicitly in the taskbar on maximize, if the widget does not have the widget flags CancelButtonHint and OKButtonHint. Task-number: QTBUG-8408 Reviewed-by: Martin Petersson
-rw-r--r--src/gui/kernel/qguifunctions_wince.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qguifunctions_wince.cpp b/src/gui/kernel/qguifunctions_wince.cpp
index cafddbf..bdaed65 100644
--- a/src/gui/kernel/qguifunctions_wince.cpp
+++ b/src/gui/kernel/qguifunctions_wince.cpp
@@ -314,6 +314,8 @@ void qt_wince_maximize(QWidget *widget)
shidi.dwFlags |= SHIDIF_CANCELBUTTON;
if (widget->windowFlags() & Qt::WindowOkButtonHint)
shidi.dwFlags |= SHIDIF_DONEBUTTON;
+ if (!(widget->windowFlags() & (Qt::WindowCancelButtonHint | Qt::WindowOkButtonHint)))
+ shidi.dwFlags |= SHIDIF_CANCELBUTTON;
resolveAygLibs();
if (ptrAygInitDialog)
ptrAygInitDialog(&shidi);