From b9aa3e9b6cda9a7ab7255f209e468144e0bff51f Mon Sep 17 00:00:00 2001
From: Kai Koehne <kai.koehne@nokia.com>
Date: Tue, 29 Jun 2010 10:10:08 +0200
Subject: [PATCH] Qml autotests: Fix compilation errors

---
 tests/auto/qml/qmldesigner/coretests/testcore.cpp  |  2 +-
 .../fileformat/tst_fileformat.cpp                  | 14 +++++++-------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/tests/auto/qml/qmldesigner/coretests/testcore.cpp b/tests/auto/qml/qmldesigner/coretests/testcore.cpp
index bf8ca7fd750..8d1074065bd 100644
--- a/tests/auto/qml/qmldesigner/coretests/testcore.cpp
+++ b/tests/auto/qml/qmldesigner/coretests/testcore.cpp
@@ -78,7 +78,7 @@ static void initializeMetaTypeSystem(const QString &resourcePath)
                                                              QDir::Files,
                                                              QDir::Name);
 
-    const QStringList errors = QmlJS::Interpreter::MetaTypeSystem::load(xmlFiles);
+    const QStringList errors = QmlJS::Interpreter::CppQmlTypesLoader::load(xmlFiles);
     foreach (const QString &error, errors)
         qWarning() << qPrintable(error);
 }
diff --git a/tests/auto/qml/qmlprojectmanager/fileformat/tst_fileformat.cpp b/tests/auto/qml/qmlprojectmanager/fileformat/tst_fileformat.cpp
index 107bfc02c40..67e32a0c436 100644
--- a/tests/auto/qml/qmlprojectmanager/fileformat/tst_fileformat.cpp
+++ b/tests/auto/qml/qmlprojectmanager/fileformat/tst_fileformat.cpp
@@ -44,7 +44,7 @@ void TestProject::testFileFilter()
         QDeclarativeComponent component(&engine);
         component.setData(projectFile.toUtf8(), QUrl());
         if (!component.isReady())
-            qDebug() << component.errorsString();
+            qDebug() << component.errorString();
         QVERIFY(component.isReady());
 
         QmlProjectItem *project = qobject_cast<QmlProjectItem*>(component.create());
@@ -74,7 +74,7 @@ void TestProject::testFileFilter()
         QDeclarativeComponent component(&engine);
         component.setData(projectFile.toUtf8(), QUrl());
         if (!component.isReady())
-            qDebug() << component.errorsString();
+            qDebug() << component.errorString();
         QVERIFY(component.isReady());
 
         QmlProjectItem *project = qobject_cast<QmlProjectItem*>(component.create());
@@ -133,7 +133,7 @@ void TestProject::testFileFilter()
         QDeclarativeComponent component(&engine);
         component.setData(projectFile.toUtf8(), QUrl());
         if (!component.isReady())
-            qDebug() << component.errorsString();
+            qDebug() << component.errorString();
         QVERIFY(component.isReady());
 
         QmlProjectItem *project = qobject_cast<QmlProjectItem*>(component.create());
@@ -165,7 +165,7 @@ void TestProject::testFileFilter()
         QDeclarativeComponent component(&engine);
         component.setData(projectFile.toUtf8(), QUrl());
         if (!component.isReady())
-            qDebug() << component.errorsString();
+            qDebug() << component.errorString();
         QVERIFY(component.isReady());
 
         QmlProjectItem *project = qobject_cast<QmlProjectItem*>(component.create());
@@ -194,7 +194,7 @@ void TestProject::testFileFilter()
         QDeclarativeComponent component(&engine);
         component.setData(projectFile.toUtf8(), QUrl());
         if (!component.isReady())
-            qDebug() << component.errorsString();
+            qDebug() << component.errorString();
         QVERIFY(component.isReady());
 
         QmlProjectItem *project = qobject_cast<QmlProjectItem*>(component.create());
@@ -228,7 +228,7 @@ void TestProject::testMatchesFile()
     QDeclarativeComponent component(&engine);
     component.setData(projectFile.toUtf8(), QUrl());
     if (!component.isReady())
-        qDebug() << component.errorsString();
+        qDebug() << component.errorString();
     QVERIFY(component.isReady());
 
     QmlProjectItem *project = qobject_cast<QmlProjectItem*>(component.create());
@@ -259,7 +259,7 @@ void TestProject::testLibraryPaths()
         QDeclarativeComponent component(&engine);
         component.setData(projectFile.toUtf8(), QUrl());
         if (!component.isReady())
-            qDebug() << component.errorsString();
+            qDebug() << component.errorString();
         QVERIFY(component.isReady());
 
         QmlProjectItem *project = qobject_cast<QmlProjectItem*>(component.create());
-- 
GitLab