summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-09-17 09:30:36 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-09-17 09:30:36 (GMT)
commit36ec74d84b3403cc930a8296226ea921a62a277b (patch)
tree611d49830a51b23e50206d2935cff7303e1850ed /tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
parent603c423fc2ee2b9393e3c288e76354de0e0c1cc7 (diff)
downloadQt-36ec74d84b3403cc930a8296226ea921a62a277b.zip
Qt-36ec74d84b3403cc930a8296226ea921a62a277b.tar.gz
Qt-36ec74d84b3403cc930a8296226ea921a62a277b.tar.bz2
Revert "Added autotest to demonstrate clipping path problem"
This reverts commit e7042dea2431b8f64574d4e97eb896285b328c8b. Alexis : This should never have been here. E-mail is invalid.
Diffstat (limited to 'tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp')
-rw-r--r--tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
index 391ccf8..d6605db 100644
--- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
+++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
@@ -194,7 +194,6 @@ private slots:
void itemClipsToShape();
void itemClipsChildrenToShape();
void itemClipsChildrenToShape2();
- void itemClipsChildrenToShape3();
void itemClipsTextChildToShape();
void itemClippingDiscovery();
void ancestorFlags();
@@ -4692,37 +4691,6 @@ void tst_QGraphicsItem::itemClipsChildrenToShape2()
#endif
}
-void tst_QGraphicsItem::itemClipsChildrenToShape3()
-{
- // Construct a scene with nested children, each 50 pixels offset from the elder.
- // Set a top-level clipping flag
- QGraphicsScene scene;
- QGraphicsRectItem *parent = scene.addRect( 0, 0, 150, 150 );
- QGraphicsRectItem *child = scene.addRect( 0, 0, 150, 150 );
- QGraphicsRectItem *grandchild = scene.addRect( 0, 0, 150, 150 );
- child->setParentItem(parent);
- grandchild->setParentItem(child);
- child->setPos( 50, 50 );
- grandchild->setPos( 50, 50 );
- parent->setFlag(QGraphicsItem::ItemClipsChildrenToShape);
-
- QCOMPARE(scene.itemAt(25,25), (QGraphicsItem *)parent);
- QCOMPARE(scene.itemAt(75,75), (QGraphicsItem *)child);
- QCOMPARE(scene.itemAt(125,125), (QGraphicsItem *)grandchild);
- QCOMPARE(scene.itemAt(175,175), (QGraphicsItem *)0);
-
- // Move child to fully overlap the parent. The grandchild should
- // now occupy two-thirds of the scene
- child->prepareGeometryChange();
- child->setPos( 0, 0 );
-
- QCOMPARE(scene.itemAt(25,25), (QGraphicsItem *)child);
- QCOMPARE(scene.itemAt(75,75), (QGraphicsItem *)grandchild);
- QCOMPARE(scene.itemAt(125,125), (QGraphicsItem *)grandchild);
- QCOMPARE(scene.itemAt(175,175), (QGraphicsItem *)0);
-}
-
-
void tst_QGraphicsItem::itemClipsTextChildToShape()
{
// Construct a scene with a rect that clips its children, with one text