diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2010-03-17 07:30:39 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2010-03-17 07:30:39 (GMT) |
commit | 7a4f05f89927fd9ca8771550f1405d99e3961c24 (patch) | |
tree | a8fc87fae66cc7419db870bfa19d0465b8042808 /tests/auto/qgraphicsitem | |
parent | 111708e655d66fb0dcbc4f2cbdc2abf14c700cf4 (diff) | |
download | Qt-7a4f05f89927fd9ca8771550f1405d99e3961c24.zip Qt-7a4f05f89927fd9ca8771550f1405d99e3961c24.tar.gz Qt-7a4f05f89927fd9ca8771550f1405d99e3961c24.tar.bz2 |
Display the itemSendScenePositionChange properly when debugging.
Also a harmless test added to check that the flag is actually set.
Reviewed-by:TrustMe
Diffstat (limited to 'tests/auto/qgraphicsitem')
-rw-r--r-- | tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp index 4d9f23f..c0ad8bf 100644 --- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp +++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp @@ -9767,6 +9767,9 @@ void tst_QGraphicsItem::scenePosChange() child1->setFlag(QGraphicsItem::ItemSendsScenePositionChanges, true); grandChild2->setFlag(QGraphicsItem::ItemSendsScenePositionChanges, true); + QVERIFY(child1->flags() & QGraphicsItem::ItemSendsScenePositionChanges); + QVERIFY(grandChild2->flags() & QGraphicsItem::ItemSendsScenePositionChanges); + QGraphicsScene scene; scene.addItem(root); |