diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2012-07-09 12:33:36 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-19 15:28:18 +0200 |
commit | af8e318b35498543107e7251324ccdc0c4152483 (patch) | |
tree | 5784e7e3fb0a586229203c1d0ecf21a3e533b57a /src/plugins/platforms/windows/qwindowswindow.h | |
parent | 85d664c929250f9e6cc354a3104906a21b5dac15 (diff) |
QWidget/Win: fix restoreGeometry() from fullscreen mode
When turning off fullscreen mode and restoring the widget's geometry
we must inform the QWindow about the geometry change synchronously.
Otherwise QWidget::geometry() will return the old value.
Using the same technique for the state transition to fullscreen mode
without sending a separate resize event.
Autotest: tst_QWidget::saveRestoreGeometry
Task-number: QTBUG-26421
Change-Id: I869e36cd302d9a94e398f48949ab3cb7ee9cdf51
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowswindow.h')
-rw-r--r-- | src/plugins/platforms/windows/qwindowswindow.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/platforms/windows/qwindowswindow.h b/src/plugins/platforms/windows/qwindowswindow.h index 176a02bc36..b2b33302f6 100644 --- a/src/plugins/platforms/windows/qwindowswindow.h +++ b/src/plugins/platforms/windows/qwindowswindow.h @@ -124,7 +124,8 @@ public: OpenGlPixelFormatInitialized = 0x40, BlockedByModal = 0x80, SizeGripOperation = 0x100, - FrameStrutEventsEnabled = 0x200 + FrameStrutEventsEnabled = 0x200, + SynchronousGeometryChangeEvent = 0x400 }; struct WindowData |