qt5base-lts/tests/auto/other
Miikka Heikkinen ede4f5e23b Fix mapping to/from global coordinates for child/embedded windows.
QWidget's mapToGlobal() and mapFromGlobal() functions assumed that
if the widget reports it's a window or if it has no parent widget, it
must be a top level window whose coordinates are in global coordinates.
This is not true for child QWindows or embedded native windows
(QAxWidgets).

Changed the logic for mapping coordinates to use equivalent methods
from QWindow if widget has a window handle, and changed QWindow's
methods to map coordinates using native methods if window is embedded.

Also fixed newly failing accessibility autotest. The geometry related
failures there popped up because now the position of the rect returned
by accessible interface is actually correct while widget geometry still
reports position 0,0 before widget has shown up.

Task-number: QTBUG-26436
Change-Id: I658fafd0ce01eb1604ba255efeeba3073ca0189f
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
2012-09-18 14:52:38 +02:00
..
atwrapper Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
baselineexample Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
collections Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
compiler Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
exceptionsafety Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
exceptionsafety_objects Autotests: Use qInstallMessageHandler 2012-09-14 15:23:15 +02:00
gestures Revert "Move QWindowSystemInterface out of qpa." 2012-08-03 00:38:09 +02:00
headersclean Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
lancelot Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
languagechange Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
macgui Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
macnativeevents Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
macplist Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
modeltest Fix some warnings in tests. 2012-08-28 17:07:15 +02:00
networkselftest Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qaccessibility Fix mapping to/from global coordinates for child/embedded windows. 2012-09-18 14:52:38 +02:00
qaccessibilitylinux Avoid deprecated QTest method in unit test 2012-09-14 11:18:17 +02:00
qcomplextext Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qfocusevent Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qnetworkaccessmanager_and_qprogressdialog Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qobjectperformance Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qobjectrace Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qsharedpointer_and_qwidget Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qtokenautomaton Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qvariant_common Autotests: Use qInstallMessageHandler 2012-09-14 15:23:15 +02:00
windowsmobile Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
other.pro Add Linux Accessibility Bridge 2012-08-14 01:40:06 +02:00