diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2009-06-03 16:23:20 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2009-06-03 16:23:20 (GMT) |
commit | ffd6bc0351c96c8a3828bd7376f2b6bda317cd71 (patch) | |
tree | 4d2879a9f3525eb0c88df54d21dba71b4748586f /tests/auto/qgraphicsview | |
parent | 427c4d6b0a8b3004c86facd382de33c171c0458b (diff) | |
download | Qt-ffd6bc0351c96c8a3828bd7376f2b6bda317cd71.zip Qt-ffd6bc0351c96c8a3828bd7376f2b6bda317cd71.tar.gz Qt-ffd6bc0351c96c8a3828bd7376f2b6bda317cd71.tar.bz2 |
Remove the sorting cache from the QGraphicsScene and move it to the BSP.
Now the QGraphicsScene has no idea how works the index. So we can
improve it separatly, add new ones and benchmarks existing ones.
Diffstat (limited to 'tests/auto/qgraphicsview')
-rw-r--r-- | tests/auto/qgraphicsview/tst_qgraphicsview.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp index 8e490ad..447de34 100644 --- a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp +++ b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp @@ -2102,12 +2102,12 @@ void tst_QGraphicsView::resizeAnchor() view.setResizeAnchor(QGraphicsView::AnchorViewCenter); } view.centerOn(0, 0); - QTest::qWait(100); + QTest::qWait(250); QPointF f = view.mapToScene(50, 50); QPointF center = view.mapToScene(view.viewport()->rect().center()); - QTest::qWait(100); + QTest::qWait(250); for (int size = 200; size <= 400; size += 25) { view.resize(size, size); @@ -2122,7 +2122,7 @@ void tst_QGraphicsView::resizeAnchor() QVERIFY(qAbs(newCenter.x() - center.x()) < slack); QVERIFY(qAbs(newCenter.y() - center.y()) < slack); } - QTest::qWait(100); + QTest::qWait(250); } } } @@ -2925,7 +2925,7 @@ void tst_QGraphicsView::task245469_itemsAtPointWithClip() QTest::qWait(100); QList<QGraphicsItem *> itemsAtCenter = view.items(view.viewport()->rect().center()); - QCOMPARE(itemsAtCenter, (QList<QGraphicsItem *>() << child << parent)); + QCOMPARE(itemsAtCenter, (QList<QGraphicsItem *>() << parent << child)); QPolygonF p = view.mapToScene(QRect(view.viewport()->rect().center(), QSize(1, 1))); QList<QGraphicsItem *> itemsAtCenter2 = scene.items(p); |