qt5base-lts/tests/auto/widgets/kernel
Gabriel de Dietrich b65e30c861 QWidget: Call appropriate QWindow method from setGeometry_sys()
When calling resize() from showEvent(), we'd set the full geometry
on the widget's QWindow. This resulted in the top-level window
being moved to the top-left corner, even though no other call to
move() or setGeometry() had happened before.

The solution consists on calling the proper QWindow methods depending
on whether setGeometry_sys() is called for a move, a resize or both.

Furthermore, this needs QWindow::resize() to set its position policy
to frame-exclusive. The documentation states that is already the case
and we're setting the full geometry on the platform window, so we need
to convey that bit of information.

This also solves the age-old conundrum: "### why do we have isMove as
a parameter?"

Change-Id: I2e00fd632929ade14b35ae5e6495ed1ab176d32f
Task-number: QTBUG-56277
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2017-08-23 08:42:44 +00:00
..
qaction Merge remote-tracking branch 'origin/5.7' into 5.8 2016-11-01 06:02:55 +01:00
qactiongroup Updated license headers 2016-01-21 18:55:18 +00:00
qapplication Convert features.wheelevent to QT_CONFIG 2017-06-28 16:15:09 +00:00
qboxlayout Merge remote-tracking branch 'origin/5.6' into 5.7 2016-09-28 11:51:35 +02:00
qdesktopwidget Updated license headers 2016-01-21 18:55:18 +00:00
qformlayout QFormLayout: take the correct row in takeRow() 2017-02-08 11:01:31 +00:00
qgridlayout Merge remote-tracking branch 'origin/5.7' into 5.8 2016-09-29 00:38:01 +02:00
qlayout tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qshortcut Deprecate QString::null 2017-03-12 17:41:16 +00:00
qsizepolicy QSizePolicy: inline toControlTypeFieldValue() 2017-02-27 23:09:27 +00:00
qstackedlayout Plug memleaks in tst_QStackedLayout 2017-01-14 18:17:47 +00:00
qtooltip Updated license headers 2016-01-21 18:55:18 +00:00
qwidget tst_qwidget::activation expect fail on Win 10 2017-08-03 06:58:35 +00:00
qwidget_window QWidget: Call appropriate QWindow method from setGeometry_sys() 2017-08-23 08:42:44 +00:00
qwidgetaction Updated license headers 2016-01-21 18:55:18 +00:00
qwidgetmetatype Updated license headers 2016-01-21 18:55:18 +00:00
qwidgetsvariant Updated license headers 2016-01-21 18:55:18 +00:00
qwindowcontainer Make QPlatformSurface events work with QWindowContainer 2017-02-27 12:38:08 +00:00
kernel.pro Introducing QWidget::createWindowContainer() 2013-01-25 14:11:07 +01:00