diff options
author | Ariya Hidayat <ariya.hidayat@trolltech.com> | 2009-03-12 14:43:19 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@trolltech.com> | 2009-04-07 18:17:10 (GMT) |
commit | 79257690c8fe8802e75a642138a2b466a0f54e65 (patch) | |
tree | 3d12d636007694eda53b62d9c855a7fcbd857e9b /tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp | |
parent | e30e12306c9cc834eada3ce07b32761748fa423a (diff) | |
download | Qt-79257690c8fe8802e75a642138a2b466a0f54e65.zip Qt-79257690c8fe8802e75a642138a2b466a0f54e65.tar.gz Qt-79257690c8fe8802e75a642138a2b466a0f54e65.tar.bz2 |
Fixes: Added linear scene index class. Not used yet.
Diffstat (limited to 'tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp')
-rw-r--r-- | tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp b/tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp index cfe3ef0..d199351 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; } |