qt5base-lts/tests/auto/qwidget
Samuel Rødal 294df24621 Patch toward fixing tst_QWidget::windowState().
In QWidget::setWindowState() there was some code to emulate window
states when they're not supported by the backend, by hiding the window
on minimize or using the screen geometry and the frameless window hint
to manually try to make a window fullscreen.

However, some of this code was being run even when the backend does
support setting window states, specifically calling setParent(0) to
force a re-creation of the platform window and calling show(). These led
to the window getting the wrong position after being minimized or
fullscreen and going back to the normal state.

Apart from storing the normal geometry of a widget when going away from
the normal state we shouldn't do any magic when the call to
QPlatformWindow::setWindowState() succeeds.

tst_QWidget::windowState() still fails due to calling move() to set the
position of the widget including the frame, when QWindow currently only
supports setting the position of the widget excluding the frame.

Change-Id: I1c1a337d3c15f14c1c842bd1e347f94e6b67d7eb
Reviewed-on: http://codereview.qt-project.org/5367
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
2011-09-23 11:31:12 +02:00
..
testdata/paintEvent Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
.gitignore Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
geometry-fullscreen.dat Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
geometry-maximized.dat Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
geometry.dat Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qwidget.pro Merge remote branch 'gerrit/master' into refactor 2011-07-21 14:42:46 +02:00
qwidget.qrc Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
tst_qwidget_mac_helpers.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
tst_qwidget_mac_helpers.mm Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
tst_qwidget.cpp Patch toward fixing tst_QWidget::windowState(). 2011-09-23 11:31:12 +02:00