From 5832eb0354634efd29cbe55558000e51cb68ec40 Mon Sep 17 00:00:00 2001 From: Warwick Allison Date: Mon, 11 Jan 2010 15:47:58 +1000 Subject: qmlInfo now gives QML type, not C++ classname. --- tests/auto/declarative/qmlinfo/tst_qmlinfo.cpp | 12 ++++++------ 1 file 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(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(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"; } -- cgit v0.12