Commit 8faae581 authored by Marco Bubke's avatar Marco Bubke Committed by Kai Koehne
Browse files

Fix test for parent to parentItem

parent 65c2dfb7
......@@ -4136,7 +4136,7 @@ void TestCore::testInstancesAttachToExistingModel()
QCOMPARE(QVariant(100), rectangleInstance.property("width"));
QVERIFY(rootInstance.testHandle());
QVERIFY(rectangleInstance.testHandle());
QCOMPARE(rootInstance.testHandle(), rectangleInstance.testHandle()->parent());
QCOMPARE(rootInstance.testHandle(), qobject_cast<QGraphicsObject*>(rectangleInstance.testHandle())->parentItem()->toGraphicsObject());
}
void TestCore::testQmlModelAddMultipleStates()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment