diff options
author | Martin Jones <martin.jones@nokia.com> | 2012-06-29 13:08:41 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-02 01:37:38 +0200 |
commit | f8c455e0335b4b0418dd6dba08bbbc78c7b8eea4 (patch) | |
tree | c86bb61015135d7e4db654183e805f11a431afc7 /tests/auto/quick/qquickanchors | |
parent | df8a18476a7e402694ad669e500b1e10e020dd73 (diff) |
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 <bea.lam@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquickanchors')
-rw-r--r-- | tests/auto/quick/qquickanchors/tst_qquickanchors.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<QQuickItem*>(view->rootObject()); foreach (QObject *child, rootItem->children()) { - bool mirrored = QQuickItemPrivate::get(qobject_cast<QQuickItem*>(child))->anchors()->property("mirrored").toBool(); + bool mirrored = QQuickItemPrivate::get(qobject_cast<QQuickItem*>(child))->anchors()->mirrored(); QCOMPARE(mirrored, false); } @@ -189,7 +189,7 @@ void tst_qquickanchors::basicAnchorsRTL() mirrorAnchors(qobject_cast<QQuickItem*>(child)); foreach (QObject *child, rootItem->children()) { - bool mirrored = QQuickItemPrivate::get(qobject_cast<QQuickItem*>(child))->anchors()->property("mirrored").toBool(); + bool mirrored = QQuickItemPrivate::get(qobject_cast<QQuickItem*>(child))->anchors()->mirrored(); QCOMPARE(mirrored, true); } |