Improve widget geometry.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Tue, 17 Apr 2012 15:30:06 +0000 (17:30 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 9 May 2012 11:40:16 +0000 (13:40 +0200)
commitb316c3ac5e4acac75505bfd77677cecc181599af
treef51ac1f01bed8c1bf3987f1dfee1080056ac3503
parent465c9f4a7e89883ebe3d473b4cd4e36310884173
Improve widget geometry.

- Rename posFromMove to posIncludesFrame in Widgets and
  make the handling more fine-grained; try to clean it up
  as soon as the frame margins are known
  in QWidgetPrivate::fixPosIncludesFrame().
- Implement QWidgetPrivate::updateFrameStrut().
- Windows: Handle posIncludesFrame in window creation,
  notify changed geometry after setting window flags.
- XCB: Do not change the window gravity in propagateSizeHint()
  as this causes the window to jump around. Determine
  the gravity in window creation, leave it constant and
  fix the geometry when setting instead.
- Store the normal geometry when maximize/fullscreen
  state change events are received.
- Remove xfails from fixed tests

Task-number: QTBUG-25331
Task-number: QTBUG-24905
Task-number: QTBUG-24294

Change-Id: I89c7229d86aaf88f02247d63915da7905e4a27ea
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 files changed:
src/plugins/platforms/windows/qwindowsintegration.cpp
src/plugins/platforms/windows/qwindowswindow.cpp
src/plugins/platforms/windows/qwindowswindow.h
src/plugins/platforms/xcb/qxcbwindow.cpp
src/plugins/platforms/xcb/qxcbwindow.h
src/widgets/kernel/qwidget.cpp
src/widgets/kernel/qwidget_p.h
src/widgets/kernel/qwidget_qpa.cpp
src/widgets/kernel/qwidgetwindow_qpa.cpp
tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp
tests/auto/widgets/graphicsview/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp
tests/auto/widgets/kernel/qwidget_window/tst_qwidget_window.cpp