diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2012-06-26 14:56:31 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-28 12:35:14 +0200 |
commit | 3b2731839c3bca5d3c332762945f1ca78fee2300 (patch) | |
tree | 3ac827066232953a1940366d341f93bfdfd756b3 /src/plugins | |
parent | 693df71e0f1faea94f2b39658cfc3fb8bb5ee2a6 (diff) |
fix QWidget::showFullScreen on Windows
When calling SetWindowPos in QWindowsWindow::setWindowState_sys we must
inform the QWidget about the new size we have set.
Task-number: QTBUG-26226
Change-Id: I42b01125f50a94cdb97026c74f5445f9ff47d8ba
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/windows/qwindowswindow.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowswindow.cpp b/src/plugins/platforms/windows/qwindowswindow.cpp index 2b86113387..7fa43e03e6 100644 --- a/src/plugins/platforms/windows/qwindowswindow.cpp +++ b/src/plugins/platforms/windows/qwindowswindow.cpp @@ -1244,6 +1244,7 @@ void QWindowsWindow::setWindowState_sys(Qt::WindowState newState) if (newStates & Qt::WindowActive) swpf |= SWP_NOACTIVATE; SetWindowPos(m_data.hwnd, HWND_TOP, r.left(), r.top(), r.width(), r.height(), swpf); + QWindowSystemInterface::handleSynchronousGeometryChange(window(), r); } else { // Restore saved state. unsigned newStyle = m_savedStyle ? m_savedStyle : style(); |