qt5base-lts/tests/auto
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
..
cmake Don't attempt to test DBus on QNX. 2012-08-28 21:17:48 +02:00
compilerwarnings/data Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
concurrent Test: Replace QSKIP by XFAIL 2012-09-07 15:39:31 +02:00
corelib Blackberry: fix tst_QFileInfo::fileTimes() 2012-09-14 19:07:15 +02:00
dbus Fix QDBusServer with more than one connection 2012-09-14 01:02:06 +02:00
gui Autotests: Use qInstallMessageHandler 2012-09-14 15:23:15 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Disable SSL compression by default. 2012-09-18 14:12:17 +02:00
opengl tests: Don't omit the body of a test function with QT_BUILD_INTERNAL 2012-09-14 06:24:38 +02:00
other Fix mapping to/from global coordinates for child/embedded windows. 2012-09-18 14:52:38 +02:00
printsupport Test: Redo remove QSKIP from printsupport tests 2012-09-13 19:33:08 +02:00
shared Expose QPA API under qpa/* 2012-05-07 20:25:24 +02:00
sql Use QStringList::join(QChar) overload where applicable [QtSql] 2012-09-03 19:35:25 +02:00
testlib Make QSignalSpy copy QVariant parameters directly 2012-08-07 11:15:55 +02:00
tools port qmake to qt creator's qmake language evaluator 2012-09-11 00:13:01 +02:00
widgets test: Mark tst_QTabBar::sizeHints() failure as XFAIL 2012-09-17 09:14:05 +02:00
xml Test: Remove QSKIP for tst_QXmlSimpleReader::inputFromSocket 2012-09-07 15:39:31 +02:00
auto.pro Test: Redo remove QSKIP from printsupport tests 2012-09-13 19:33:08 +02:00
network-settings.h Fix auto tests build with gcc 4.7 2012-05-23 00:42:20 +02:00
platformquirks.h Remove #ifdef Q_WS_ / include / #endif conditionals. 2012-07-16 16:30:55 +02:00
test.pl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00