diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-10-21 00:57:02 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-10-21 01:43:24 (GMT) |
commit | 2c70994c3b9b0839ef5d489e6dfcaaf6c4ed6b4d (patch) | |
tree | d00f145d9c4cd72bfcb6038aa86a22c9efb83a73 /tests/auto/declarative | |
parent | b8c939903b8afc0abe38ab2e315a5bda32221aae (diff) | |
download | Qt-2c70994c3b9b0839ef5d489e6dfcaaf6c4ed6b4d.zip Qt-2c70994c3b9b0839ef5d489e6dfcaaf6c4ed6b4d.tar.gz Qt-2c70994c3b9b0839ef5d489e6dfcaaf6c4ed6b4d.tar.bz2 |
Rename QBindableMap to QmlPropertyMap.
Task-number: QT-2316
Diffstat (limited to 'tests/auto/declarative')
-rw-r--r-- | tests/auto/declarative/qmlpropertymap/qmlpropertymap.pro (renamed from tests/auto/declarative/qbindablemap/qbindablemap.pro) | 2 | ||||
-rw-r--r-- | tests/auto/declarative/qmlpropertymap/tst_qmlpropertymap.cpp (renamed from tests/auto/declarative/qbindablemap/tst_qbindablemap.cpp) | 22 |
2 files changed, 12 insertions, 12 deletions
diff --git a/tests/auto/declarative/qbindablemap/qbindablemap.pro b/tests/auto/declarative/qmlpropertymap/qmlpropertymap.pro index b042405..94f138f 100644 --- a/tests/auto/declarative/qbindablemap/qbindablemap.pro +++ b/tests/auto/declarative/qmlpropertymap/qmlpropertymap.pro @@ -1,3 +1,3 @@ load(qttest_p4) contains(QT_CONFIG,declarative): QT += declarative -SOURCES += tst_qbindablemap.cpp +SOURCES += tst_qmlpropertymap.cpp diff --git a/tests/auto/declarative/qbindablemap/tst_qbindablemap.cpp b/tests/auto/declarative/qmlpropertymap/tst_qmlpropertymap.cpp index c1b31c2..a923234 100644 --- a/tests/auto/declarative/qbindablemap/tst_qbindablemap.cpp +++ b/tests/auto/declarative/qmlpropertymap/tst_qmlpropertymap.cpp @@ -1,16 +1,16 @@ #include <qtest.h> #include <QtDeclarative/qmlengine.h> #include <QtDeclarative/qmlcontext.h> -#include <QtDeclarative/qbindablemap.h> +#include <QtDeclarative/qmlpropertymap.h> #include <QtDeclarative/qmlcomponent.h> #include <QtDeclarative/qfxtext.h> #include <QSignalSpy> -class tst_QBindableMap : public QObject +class tst_QmlPropertyMap : public QObject { Q_OBJECT public: - tst_QBindableMap() {} + tst_QmlPropertyMap() {} private slots: void insert(); @@ -18,9 +18,9 @@ private slots: void changed(); }; -void tst_QBindableMap::insert() +void tst_QmlPropertyMap::insert() { - QBindableMap map; + QmlPropertyMap map; map.setValue(QLatin1String("key1"),100); map.setValue(QLatin1String("key2"),200); QVERIFY(map.keys().count() == 2); @@ -32,9 +32,9 @@ void tst_QBindableMap::insert() QCOMPARE(map.value(QLatin1String("key1")), QVariant("Hello World")); } -void tst_QBindableMap::clear() +void tst_QmlPropertyMap::clear() { - QBindableMap map; + QmlPropertyMap map; map.setValue(QLatin1String("key1"),100); QVERIFY(map.keys().count() == 1); @@ -45,9 +45,9 @@ void tst_QBindableMap::clear() QCOMPARE(map.value(QLatin1String("key1")), QVariant()); } -void tst_QBindableMap::changed() +void tst_QmlPropertyMap::changed() { - QBindableMap map; + QmlPropertyMap map; QSignalSpy spy(&map, SIGNAL(changed(const QString&))); map.setValue(QLatin1String("key1"),100); map.setValue(QLatin1String("key2"),200); @@ -72,6 +72,6 @@ void tst_QBindableMap::changed() QCOMPARE(map.value(QLatin1String("key1")), QVariant("Hello World")); } -QTEST_MAIN(tst_QBindableMap) +QTEST_MAIN(tst_QmlPropertyMap) -#include "tst_qbindablemap.moc" +#include "tst_qmlpropertymap.moc" |