diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2009-06-02 15:45:27 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2009-06-02 15:45:27 (GMT) |
commit | 427c4d6b0a8b3004c86facd382de33c171c0458b (patch) | |
tree | 72bccf6460acc4dfa3b3a7a774c302785ba16062 /tests | |
parent | 0e139242e5dd465c9ffa0e2cbeb17b7009b821d1 (diff) | |
download | Qt-427c4d6b0a8b3004c86facd382de33c171c0458b.zip Qt-427c4d6b0a8b3004c86facd382de33c171c0458b.tar.gz Qt-427c4d6b0a8b3004c86facd382de33c171c0458b.tar.bz2 |
Fix all auto-tests regressions.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp | 3 | ||||
-rw-r--r-- | tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp b/tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp index 0c5ebf6..eb117ab 100644 --- a/tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp +++ b/tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp @@ -395,6 +395,9 @@ void tst_QGraphicsScene::items() QGraphicsLineItem *l2 = scene.addLine(0, -5, 0, 5); QVERIFY(!l1->sceneBoundingRect().intersects(l2->sceneBoundingRect())); QVERIFY(!l2->sceneBoundingRect().intersects(l1->sceneBoundingRect())); + QList<QGraphicsItem *> items; + items<<l1<<l2; + QCOMPARE(scene.items(), items); QVERIFY(scene.items(-1, -1, 2, 2).contains(l1)); QVERIFY(scene.items(-1, -1, 2, 2).contains(l2)); } diff --git a/tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp b/tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp index 3dca152..6b352ab 100644 --- a/tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp +++ b/tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp @@ -107,8 +107,8 @@ void tst_QGraphicsSceneIndex::sceneRect() { QGraphicsScene *scene = new QGraphicsScene(); QGraphicsSceneIndex *index = new QGraphicsSceneBspTreeIndex(scene); - index->setRect(QRectF(0, 0, 2000, 2000)); - QCOMPARE(index->rect(), QRectF(0, 0, 2000, 2000)); + scene->setSceneRect(QRectF(0, 0, 2000, 2000)); + QCOMPARE(index->indexedRect(), QRectF(0, 0, 2000, 2000)); } void tst_QGraphicsSceneIndex::customIndex_data() |