summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicssceneindex
diff options
context:
space:
mode:
authorAriya Hidayat <ariya.hidayat@trolltech.com>2009-03-12 15:43:19 +0100
committerAlexis Menard <alexis.menard@trolltech.com>2009-04-07 20:17:10 +0200
commit79257690c8fe8802e75a642138a2b466a0f54e65 (patch)
tree3d12d636007694eda53b62d9c855a7fcbd857e9b /tests/auto/qgraphicssceneindex
parente30e12306c9cc834eada3ce07b32761748fa423a (diff)
Fixes: Added linear scene index class. Not used yet.
Diffstat (limited to 'tests/auto/qgraphicssceneindex')
-rw-r--r--tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp b/tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp
index cfe3ef0d53..d199351150 100644
--- a/tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp
+++ b/tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp
@@ -44,6 +44,7 @@
#include <QtGui/qgraphicsscene.h>
#include <QtGui/qgraphicssceneindex.h>
#include <private/qgraphicsscene_bsp_p.h>
+#include <private/qgraphicsscene_linear_p.h>
//TESTED_CLASS=
@@ -77,6 +78,7 @@ void tst_QGraphicsSceneIndex::common_data()
QTest::addColumn<QString>("indexMethod");
QTest::newRow("BSP") << QString("bsp");
+ QTest::newRow("Linear") << QString("linear");
}
QGraphicsSceneIndex *tst_QGraphicsSceneIndex::createIndex(const QString &indexMethod)
@@ -86,6 +88,9 @@ QGraphicsSceneIndex *tst_QGraphicsSceneIndex::createIndex(const QString &indexMe
if (indexMethod == "bsp")
index = new QGraphicsSceneBspTree;
+ if (indexMethod == "linear")
+ index = new QGraphicsSceneLinearIndex;
+
return index;
}