diff options
author | Andreas Holzammer <andreas.holzammer@kdab.com> | 2012-07-12 11:21:47 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-12 14:23:08 +0200 |
commit | 983ebbc05463b4fc868c7543eb018972ea0d9539 (patch) | |
tree | 93441cf861b4f065eaa80d37599c8979b9734d2a /src/plugins | |
parent | f56f542294b9368b77208a3c8077ffd97eb7fa5b (diff) |
Fix wince build
Wince does not have a style so we cannot save it.
This was introduced by Change-Id: I6fca399376cd1fa9bffea0a686b56c4d5ec26605
Change-Id: I249aa8e9688e5a862b3787c531c19baea7338d5e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/windows/qwindowswindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowswindow.cpp b/src/plugins/platforms/windows/qwindowswindow.cpp index 4be743aaf0..6ef85cd49a 100644 --- a/src/plugins/platforms/windows/qwindowswindow.cpp +++ b/src/plugins/platforms/windows/qwindowswindow.cpp @@ -1237,6 +1237,7 @@ void QWindowsWindow::setWindowState_sys(Qt::WindowState newState) // Save geometry and style to be restored when fullscreen // is turned off again, since on Windows, it is not a real // Window state but emulated by changing geometry and style. +#ifndef Q_OS_WINCE // there is no style under wince if (!m_savedStyle) { m_savedStyle = style(); if (oldStates & Qt::WindowMinimized) { @@ -1248,6 +1249,7 @@ void QWindowsWindow::setWindowState_sys(Qt::WindowState newState) m_savedFrameGeometry = frameGeometry_sys(); } } +#endif if (m_savedStyle & WS_SYSMENU) newStyle |= WS_SYSMENU; if (visible) |