diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-02-24 05:06:13 (GMT) |
---|---|---|
committer | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-02-24 05:07:27 (GMT) |
commit | b9c5c6b562ffbaeb509cffd300898018357834f3 (patch) | |
tree | 0185bb5c9cf1babb87e4c73bf8de48f3b575bcaf /tests/auto/declarative/qdeclarativerepeater | |
parent | 42e493f397436607d219edfc76a2e04fbb8c2a18 (diff) | |
download | Qt-b9c5c6b562ffbaeb509cffd300898018357834f3.zip Qt-b9c5c6b562ffbaeb509cffd300898018357834f3.tar.gz Qt-b9c5c6b562ffbaeb509cffd300898018357834f3.tar.bz2 |
Change autotest class prefix from QmlXXX to QDeclarativeXXX, QmlGraphicsXXX to QDeclarativeXXX.
Diffstat (limited to 'tests/auto/declarative/qdeclarativerepeater')
-rw-r--r-- | tests/auto/declarative/qdeclarativerepeater/tst_qdeclarativerepeater.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/auto/declarative/qdeclarativerepeater/tst_qdeclarativerepeater.cpp b/tests/auto/declarative/qdeclarativerepeater/tst_qdeclarativerepeater.cpp index e442989..7a97e60 100644 --- a/tests/auto/declarative/qdeclarativerepeater/tst_qdeclarativerepeater.cpp +++ b/tests/auto/declarative/qdeclarativerepeater/tst_qdeclarativerepeater.cpp @@ -53,11 +53,11 @@ inline QUrl TEST_FILE(const QString &filename) return QUrl::fromLocalFile(QLatin1String(SRCDIR) + QLatin1String("/data/") + filename); } -class tst_QmlGraphicsRepeater : public QObject +class tst_QDeclarativeRepeater : public QObject { Q_OBJECT public: - tst_QmlGraphicsRepeater(); + tst_QDeclarativeRepeater(); private slots: void numberModel(); @@ -158,11 +158,11 @@ private: }; -tst_QmlGraphicsRepeater::tst_QmlGraphicsRepeater() +tst_QDeclarativeRepeater::tst_QDeclarativeRepeater() { } -void tst_QmlGraphicsRepeater::numberModel() +void tst_QDeclarativeRepeater::numberModel() { QDeclarativeView *canvas = createView(); @@ -184,7 +184,7 @@ void tst_QmlGraphicsRepeater::numberModel() delete canvas; } -void tst_QmlGraphicsRepeater::objectList() +void tst_QDeclarativeRepeater::objectList() { QDeclarativeView *canvas = createView(); @@ -211,7 +211,7 @@ The Repeater element creates children at its own position in its parent's stacking order. In this test we insert a repeater between two other Text elements to test this. */ -void tst_QmlGraphicsRepeater::stringList() +void tst_QDeclarativeRepeater::stringList() { QDeclarativeView *canvas = createView(); @@ -263,7 +263,7 @@ void tst_QmlGraphicsRepeater::stringList() delete canvas; } -void tst_QmlGraphicsRepeater::dataModel() +void tst_QDeclarativeRepeater::dataModel() { QDeclarativeView *canvas = createView(); QDeclarativeContext *ctxt = canvas->rootContext(); @@ -295,7 +295,7 @@ void tst_QmlGraphicsRepeater::dataModel() QCOMPARE(container->childItems().count(), 4); } -void tst_QmlGraphicsRepeater::itemModel() +void tst_QDeclarativeRepeater::itemModel() { QDeclarativeView *canvas = createView(); QDeclarativeContext *ctxt = canvas->rootContext(); @@ -326,7 +326,7 @@ void tst_QmlGraphicsRepeater::itemModel() delete canvas; } -void tst_QmlGraphicsRepeater::properties() +void tst_QDeclarativeRepeater::properties() { QDeclarativeEngine engine; QDeclarativeComponent component(&engine, TEST_FILE("/properties.qml")); @@ -354,7 +354,7 @@ void tst_QmlGraphicsRepeater::properties() QCOMPARE(delegateSpy.count(),1); } -QDeclarativeView *tst_QmlGraphicsRepeater::createView() +QDeclarativeView *tst_QDeclarativeRepeater::createView() { QDeclarativeView *canvas = new QDeclarativeView(0); canvas->setFixedSize(240,320); @@ -363,7 +363,7 @@ QDeclarativeView *tst_QmlGraphicsRepeater::createView() } template<typename T> -T *tst_QmlGraphicsRepeater::findItem(QGraphicsObject *parent, const QString &objectName) +T *tst_QDeclarativeRepeater::findItem(QGraphicsObject *parent, const QString &objectName) { const QMetaObject &mo = T::staticMetaObject; if (mo.cast(parent) && (objectName.isEmpty() || parent->objectName() == objectName)) @@ -380,6 +380,6 @@ T *tst_QmlGraphicsRepeater::findItem(QGraphicsObject *parent, const QString &obj return 0; } -QTEST_MAIN(tst_QmlGraphicsRepeater) +QTEST_MAIN(tst_QDeclarativeRepeater) #include "tst_qdeclarativerepeater.moc" |