diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2009-09-10 13:55:08 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2009-09-10 13:58:22 (GMT) |
commit | 53e1c8983b0093ce2b63f90eaee856f57961c00f (patch) | |
tree | 3b086675a7a2556fc1791879e24dc3c57f5d42df /src/gui/kernel/qapplication_win.cpp | |
parent | cc59689e4a09349b7475426bf98f4c0839f6ba6a (diff) | |
download | Qt-53e1c8983b0093ce2b63f90eaee856f57961c00f.zip Qt-53e1c8983b0093ce2b63f90eaee856f57961c00f.tar.gz Qt-53e1c8983b0093ce2b63f90eaee856f57961c00f.tar.bz2 |
restoring a minimized window on Windows CE didn't work
After restoring a minimized window we only saw the window decoration.
All content was missing. That's because we don't get a WM_SIZE message
for restoring the window. We must react on WM_ACTIVATE in this case.
This fixes the issue for Windows mobile too.
Task-number: 260702
Reviewed-by: thartman
Diffstat (limited to 'src/gui/kernel/qapplication_win.cpp')
-rw-r--r-- | src/gui/kernel/qapplication_win.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp index d7d079c..1babb69 100644 --- a/src/gui/kernel/qapplication_win.cpp +++ b/src/gui/kernel/qapplication_win.cpp @@ -2084,8 +2084,12 @@ LRESULT CALLBACK QtWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam // where it got it from; it would simply get a 0 value as the old focus widget. #ifdef Q_OS_WINCE { - if (widget->windowState() & Qt::WindowMinimized) - widget->dataPtr()->window_state &= ~Qt::WindowMinimized; + if (widget->windowState() & Qt::WindowMinimized) { + if (widget->windowState() & Qt::WindowMaximized) + widget->showMaximized(); + else + widget->show(); + } #else if (!(widget->windowState() & Qt::WindowMinimized)) { #endif |