diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2010-07-16 08:17:32 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2010-07-16 09:40:01 (GMT) |
commit | 5f76c2b168ded91835d5d161b738a5dc03556cf6 (patch) | |
tree | e448c96ee0d3b11d9a69a1ff79cc4854dff4a293 /src/gui/kernel/qguifunctions_wince.cpp | |
parent | 7a0b487ec10abd71bda6053021749740dc0ac545 (diff) | |
download | Qt-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
Diffstat (limited to 'src/gui/kernel/qguifunctions_wince.cpp')
-rw-r--r-- | src/gui/kernel/qguifunctions_wince.cpp | 2 |
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); |