summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-01-11 05:47:58 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-01-11 05:47:58 (GMT)
commit5832eb0354634efd29cbe55558000e51cb68ec40 (patch)
tree0a6e51d05a702861c85f3d55896f0a1150200bc1 /tests/auto/declarative
parent7287f1f01e7000a21f52f463a459fa0285db4cca (diff)
downloadQt-5832eb0354634efd29cbe55558000e51cb68ec40.zip
Qt-5832eb0354634efd29cbe55558000e51cb68ec40.tar.gz
Qt-5832eb0354634efd29cbe55558000e51cb68ec40.tar.bz2
qmlInfo now gives QML type, not C++ classname.
Diffstat (limited to 'tests/auto/declarative')
-rw-r--r--tests/auto/declarative/qmlinfo/tst_qmlinfo.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/declarative/qmlinfo/tst_qmlinfo.cpp b/tests/auto/declarative/qmlinfo/tst_qmlinfo.cpp
index 22841e5..880f7b8 100644
--- a/tests/auto/declarative/qmlinfo/tst_qmlinfo.cpp
+++ b/tests/auto/declarative/qmlinfo/tst_qmlinfo.cpp
@@ -75,14 +75,14 @@ void tst_qmlinfo::qmlObject()
QObject *object = component.create();
QVERIFY(object != 0);
- QString message = "QML " + QString(object->metaObject()->className()) + " (" + component.url().toString() + ":3:1) Test Message";
+ QString message = "QML QObject_QML_0 (" + component.url().toString() + ":3:1) Test Message";
QTest::ignoreMessage(QtWarningMsg, qPrintable(message));
qmlInfo(object) << "Test Message";
QObject *nested = qvariant_cast<QObject *>(object->property("nested"));
QVERIFY(nested != 0);
- message = "QML " + QString(nested->metaObject()->className()) + " (" + component.url().toString() + ":6:13) Second Test Message";
+ message = "QML QtObject (" + component.url().toString() + ":6:13) Second Test Message";
QTest::ignoreMessage(QtWarningMsg, qPrintable(message));
qmlInfo(nested) << "Second Test Message";
}
@@ -99,11 +99,11 @@ void tst_qmlinfo::nestedQmlObject()
QObject *nested2 = qvariant_cast<QObject *>(object->property("nested2"));
QVERIFY(nested2 != 0);
- QString message = "QML " + QString(nested->metaObject()->className()) + " (" + component.url().toString() + ":5:13) Outer Object";
+ QString message = "QML NestedObject (" + component.url().toString() + ":5:13) Outer Object";
QTest::ignoreMessage(QtWarningMsg, qPrintable(message));
qmlInfo(nested) << "Outer Object";
- message = "QML " + QString(nested2->metaObject()->className()) + " (" + TEST_FILE("NestedObject.qml").toString() + ":6:14) Inner Object";
+ message = "QML QtObject (" + TEST_FILE("NestedObject.qml").toString() + ":6:14) Inner Object";
QTest::ignoreMessage(QtWarningMsg, qPrintable(message));
qmlInfo(nested2) << "Inner Object";
}
@@ -111,7 +111,7 @@ void tst_qmlinfo::nestedQmlObject()
void tst_qmlinfo::nonQmlObject()
{
QObject object;
- QTest::ignoreMessage(QtWarningMsg, "QML QObject (unknown location) Test Message");
+ QTest::ignoreMessage(QtWarningMsg, "QML QtObject (unknown location) Test Message");
qmlInfo(&object) << "Test Message";
QPushButton pbObject;
@@ -130,7 +130,7 @@ void tst_qmlinfo::nonQmlContextedObject()
QObject object;
QmlContext context(&engine);
QmlEngine::setContextForObject(&object, &context);
- QTest::ignoreMessage(QtWarningMsg, "QML QObject (unknown location) Test Message");
+ QTest::ignoreMessage(QtWarningMsg, "QML QtObject (unknown location) Test Message");
qmlInfo(&object) << "Test Message";
}