From f8c455e0335b4b0418dd6dba08bbbc78c7b8eea4 Mon Sep 17 00:00:00 2001 From: Martin Jones Date: Fri, 29 Jun 2012 13:08:41 +1000 Subject: anchors.mirrored should not exist in QtQuick 2 anchors.mirrored was removed from QtQuick 1.1 before release, however QtQuick 2 was branched before it was removed, so it currently exists in QtQuick 2. Task-number: QTBUG-26369 Change-Id: Iab85f66f6c5f0ebadc5962cc6962cec15203d55d Reviewed-by: Bea Lam --- tests/auto/quick/qquickanchors/tst_qquickanchors.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/auto/quick/qquickanchors/tst_qquickanchors.cpp b/tests/auto/quick/qquickanchors/tst_qquickanchors.cpp index b91f8f15e8..45c00e0bc5 100644 --- a/tests/auto/quick/qquickanchors/tst_qquickanchors.cpp +++ b/tests/auto/quick/qquickanchors/tst_qquickanchors.cpp @@ -181,7 +181,7 @@ void tst_qquickanchors::basicAnchorsRTL() QQuickItem* rootItem = qobject_cast(view->rootObject()); foreach (QObject *child, rootItem->children()) { - bool mirrored = QQuickItemPrivate::get(qobject_cast(child))->anchors()->property("mirrored").toBool(); + bool mirrored = QQuickItemPrivate::get(qobject_cast(child))->anchors()->mirrored(); QCOMPARE(mirrored, false); } @@ -189,7 +189,7 @@ void tst_qquickanchors::basicAnchorsRTL() mirrorAnchors(qobject_cast(child)); foreach (QObject *child, rootItem->children()) { - bool mirrored = QQuickItemPrivate::get(qobject_cast(child))->anchors()->property("mirrored").toBool(); + bool mirrored = QQuickItemPrivate::get(qobject_cast(child))->anchors()->mirrored(); QCOMPARE(mirrored, true); } -- cgit v1.2.3