qt5base-lts/tests/auto/widgets/kernel
Tor Arne Vestbø 8c3cc07bf5 widgets: Translate QWindow move events into widget relative position
If a widget backed by a QWindow is moved we need to translate the window
geometry into a position relative to the parent widget. In most cases this
was incidentally working due to widgets backed by QWindows always having
QWindow parents too, so the QWindow position was applicable to the widget
as well. But when Qt::WA_DontCreateNativeAncestors is used this is no
longer the case, and we would end up with a widget geometry that included
the parent positions all the way up to the next native widget.

The updatePos() function has been squashed into handleMoveEvent(), since
we need to ensure the position in the move event sent to the widget is
correct as well.

Change-Id: I55894ad7ab42a6d4d65e446a332ecdd7dcdcc263
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2020-02-19 20:04:19 +00:00
..
qaction Widget tests: Skip tests that fail on Wayland 2019-10-18 10:53:34 +02:00
qactiongroup tst_QAction(Group): Brush up the tests 2019-06-28 00:24:40 +02:00
qapplication Widget tests: Skip tests that fail on Wayland 2019-10-18 10:53:34 +02:00
qboxlayout Avoid initializing QFlags with 0 or nullptr in tests 2019-11-26 09:08:51 +01:00
qdesktopwidget Remove usages of deprecated APIs of QDesktopWidget 2019-10-13 13:08:42 +02:00
qformlayout tst_QFormLayout: use QAutoPointer to simplify test and avoid leak 2019-08-13 17:26:11 +02:00
qgesturerecognizer tests: un-blacklist tst_QGestureRecognizer::panGesture on xcb 2018-06-25 13:41:40 +00:00
qgridlayout Remove usages of deprecated APIs of qtbase/widgets 2019-08-01 17:04:13 +00:00
qlayout Avoid initializing QFlags with 0 or nullptr in tests 2019-11-26 09:08:51 +01:00
qshortcut QShortcut: add pmf ctor overloads 2019-11-14 19:59:23 +01:00
qsizepolicy Fix tst_QSizePolicy::constExpr() to compile with MSVC 15.8.1 2018-08-30 06:23:51 +00:00
qstackedlayout Widget tests: Skip tests that fail on Wayland 2019-10-18 10:53:34 +02:00
qtooltip Widget tests: Skip tests that fail on Wayland 2019-10-18 10:53:34 +02:00
qwidget widgets: Translate QWindow move events into widget relative position 2020-02-19 20:04:19 +00:00
qwidget_window Try to stabilize tst_qwidget_qwindow::tst_resize_count on X11 2020-02-17 17:47:56 +01:00
qwidgetaction testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qwidgetmetatype Finish qmetatype migration to type switcher 2018-10-03 14:48:55 +00:00
qwidgetsvariant Updated license headers 2016-01-21 18:55:18 +00:00
qwindowcontainer Widget tests: Skip tests that fail on Wayland 2019-10-18 10:53:34 +02:00
kernel.pro Cleanup widgets/kernel.pro after modularization 2019-03-26 09:48:48 +01:00