summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2010-07-16 08:37:58 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2010-07-18 03:03:32 (GMT)
commit259003d8f074d6a200fae56a38992531e6a55115 (patch)
tree8fc45aba9d794e0d0ed70eb3b17d0c39f39f2755 /src
parent5cb7d124122c7b78a1149c2878f04773424f1d15 (diff)
downloadQt-259003d8f074d6a200fae56a38992531e6a55115.zip
Qt-259003d8f074d6a200fae56a38992531e6a55115.tar.gz
Qt-259003d8f074d6a200fae56a38992531e6a55115.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 (cherry picked from commit 2c1aafa47b8915ea8aae8da229d65086e42543b3)
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));