summaryrefslogtreecommitdiffstats
path: root/tests/auto/other
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@digia.com>2013-10-04 15:32:53 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-15 12:42:17 +0200
commit4684f2179be7182d32d50067e1ca0fa87619792e (patch)
treeef676461fd9586fd890bc85da51e8a8ecb482345 /tests/auto/other
parent23833629fa7d3aa510267d314dd422b3b3ea0de3 (diff)
Change return type of imagePosition to QPoint
QAccessibleImageInterface already has an API to return the size of the image. This function ensures that their API's are not overlapping. Alternatively, we could merge both functions into QAccessibleImageInterface::imageRect(), but the assumption is that images change position more often than their size. Change-Id: I55c25cdff187b9f497828f04cfd5f969cfbc451f Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'tests/auto/other')
-rw-r--r--tests/auto/other/qaccessibility/tst_qaccessibility.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
index c4a0d9c76c..73bf4aab6a 100644
--- a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
+++ b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
@@ -3295,7 +3295,7 @@ void tst_QAccessibility::labelTest()
QCOMPARE(imageInterface->imageSize(), testPixmap.size());
QCOMPARE(imageInterface->imageDescription(), QString::fromLatin1("Test Description"));
const QPoint labelPos = imageLabel.mapToGlobal(QPoint(0,0));
- QCOMPARE(imageInterface->imagePosition().topLeft(), labelPos);
+ QCOMPARE(imageInterface->imagePosition(), labelPos);
QTestAccessibility::clearEvents();
}