diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2009-11-06 11:12:09 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2009-11-06 12:50:40 (GMT) |
commit | 85a7c3477742516e1b89d527eccf702ffaca767f (patch) | |
tree | 90967ddbce0a9d12489003d27bb29673b6645419 | |
parent | e3d3973d761248da23343be47e1be6777e9e84f0 (diff) | |
download | Qt-85a7c3477742516e1b89d527eccf702ffaca767f.zip Qt-85a7c3477742516e1b89d527eccf702ffaca767f.tar.gz Qt-85a7c3477742516e1b89d527eccf702ffaca767f.tar.bz2 |
fix QWizard issues on Windows CE
Was reproducable with the example in
<QTDIR>\examples\dialogs\trivialwizard
You could not push the navigation buttons using the stylus.
Task-number: QTBUG-3613
Reviewed-by: thartman
-rw-r--r-- | src/gui/kernel/qwidget_win.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget_win.cpp b/src/gui/kernel/qwidget_win.cpp index 2bdaddb..b7ba273 100644 --- a/src/gui/kernel/qwidget_win.cpp +++ b/src/gui/kernel/qwidget_win.cpp @@ -1339,8 +1339,15 @@ void QWidgetPrivate::setGeometry_sys(int x, int y, int w, int h, bool isMove) if (isResize && !q->testAttribute(Qt::WA_StaticContents) && q->internalWinId()) ValidateRgn(q->internalWinId(), 0); +#ifdef Q_WS_WINCE + // On Windows CE we can't just fiddle around with the window state. + // Too much magic in setWindowState. + if (isResize && q->isMaximized()) + q->setWindowState(q->windowState() & ~Qt::WindowMaximized); +#else if (isResize) data.window_state &= ~Qt::WindowMaximized; +#endif if (data.window_state & Qt::WindowFullScreen) { QTLWExtra *top = topData(); |