summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2010-07-16 08:37:58 (GMT)
committerJoerg Bornemann <joerg.bornemann@nokia.com>2010-07-16 09:40:27 (GMT)
commit2c1aafa47b8915ea8aae8da229d65086e42543b3 (patch)
tree16223a4727e1ef9f3602cd671d4335dd8ad21a35 /src
parent5f76c2b168ded91835d5d161b738a5dc03556cf6 (diff)
downloadQt-2c1aafa47b8915ea8aae8da229d65086e42543b3.zip
Qt-2c1aafa47b8915ea8aae8da229d65086e42543b3.tar.gz
Qt-2c1aafa47b8915ea8aae8da229d65086e42543b3.tar.bz2
Windows mobile: the [X] button in the taskbar minimizes the widget
The [X] or cancel button in the task bar shall just "minimize" the widget on Windows mobile. A press on this button results in a WM_COMMAND, IDCANCEL message. Before this patch we just sent a QCloseEvent to the widget, which had basically no effect. Now, we're calling showMinimzed(), which is the desired behaviour. Task-number: QTBUG-8408 Reviewed-by: Martin Petersson
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qapplication_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp
index 9e8a128..ec26e81 100644
--- a/src/gui/kernel/qapplication_win.cpp
+++ b/src/gui/kernel/qapplication_win.cpp
@@ -2485,7 +2485,7 @@ extern "C" LRESULT QT_WIN_CALLBACK QtWndProc(HWND hwnd, UINT message, WPARAM wPa
if (OkCommand)
QApplication::postEvent(widget, new QEvent(QEvent::OkRequest));
if (CancelCommand)
- QApplication::postEvent(widget, new QEvent(QEvent::Close));
+ widget->showMinimized();
else
#ifndef QT_NO_MENUBAR
QMenuBar::wceCommands(LOWORD(wParam));