From b855240b782395f94315f43ea3e7e182299fac48 Mon Sep 17 00:00:00 2001 From: Matthew Vogt Date: Thu, 16 Feb 2012 14:43:03 +1000 Subject: Rename QDeclarative symbols to QQuick and QQml Symbols beginning with QDeclarative are already exported by the quick1 module. Users can apply the bin/rename-qtdeclarative-symbols.sh script to modify client code using the previous names of the renamed symbols. Task-number: QTBUG-23737 Change-Id: Ifaa482663767634931e8711a8e9bf6e404859e66 Reviewed-by: Martin Jones --- src/qmltest/qmltest.pro | 2 +- src/qmltest/quicktest.cpp | 18 +++++++++--------- src/qmltest/quicktestevent.cpp | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'src/qmltest') diff --git a/src/qmltest/qmltest.pro b/src/qmltest/qmltest.pro index 39b7dc8a3f..d2e90c2b5d 100644 --- a/src/qmltest/qmltest.pro +++ b/src/qmltest/qmltest.pro @@ -7,7 +7,7 @@ CONFIG += module CONFIG += dll warn_on declarative_debug MODULE_PRI += ../../modules/qt_qmltest.pri -QT += testlib-private declarative testlib quick widgets widgets-private gui +QT += testlib-private qml testlib quick widgets widgets-private gui DEFINES += QT_BUILD_QUICK_TEST_LIB QT_NO_URL_CAST_FROM_STRING load(qt_module_config) diff --git a/src/qmltest/quicktest.cpp b/src/qmltest/quicktest.cpp index 19acfaf6f0..e6c27eec00 100644 --- a/src/qmltest/quicktest.cpp +++ b/src/qmltest/quicktest.cpp @@ -44,15 +44,15 @@ #include #include "qtestoptions_p.h" #include -#include -#include -#include +#include +#include +#include #if defined(QML_VERSION) && QML_VERSION >= 0x020000 #include #define QUICK_TEST_SCENEGRAPH 1 #endif -#include -#include +#include +#include #include #include #include @@ -107,7 +107,7 @@ static inline QString stripQuotes(const QString &s) template void handleCompileErrors(const QFileInfo &fi, const View &view) { // Error compiling the test - flag failure in the log and continue. - const QList errors = view.errors(); + const QList errors = view.errors(); QuickTestResult results; results.setTestCaseName(fi.baseName()); results.startLogging(); @@ -117,7 +117,7 @@ template void handleCompileErrors(const QFileInfo &fi, const View & QTextStream str(&message); str << "\n " << QDir::toNativeSeparators(fi.absoluteFilePath()) << " produced " << errors.size() << " error(s):\n"; - foreach (const QDeclarativeError &e, errors) { + foreach (const QQmlError &e, errors) { str << " "; if (e.url().isLocalFile()) { str << e.url().toLocalFile(); @@ -129,7 +129,7 @@ template void handleCompileErrors(const QFileInfo &fi, const View & str << ": " << e.description() << '\n'; } str << " Working directory: " << QDir::toNativeSeparators(QDir::current().absolutePath()) << '\n'; - if (QDeclarativeEngine *engine = view.engine()) { + if (QQmlEngine *engine = view.engine()) { str << " View: " << view.metaObject()->className() << ", import paths:\n"; foreach (const QString &i, engine->importPathList()) str << " '" << QDir::toNativeSeparators(i) << "'\n"; @@ -254,7 +254,7 @@ int quick_test_main(int argc, char **argv, const char *name, quick_test_viewport } // Scan through all of the "tst_*.qml" files and run each of them - // in turn with a QDeclarativeView. + // in turn with a QQuickView. #ifdef QUICK_TEST_SCENEGRAPH if (qtQuick2) { QQuickView view; diff --git a/src/qmltest/quicktestevent.cpp b/src/qmltest/quicktestevent.cpp index 4dee9bee77..f996adbeca 100644 --- a/src/qmltest/quicktestevent.cpp +++ b/src/qmltest/quicktestevent.cpp @@ -41,7 +41,7 @@ #include "quicktestevent_p.h" #include -#include +#include #if defined(QML_VERSION) && QML_VERSION >= 0x020000 #include #include @@ -279,7 +279,7 @@ QWindow *QuickTestEvent::eventWindow() #endif return 0; /* - QDeclarativeItem *item = qobject_cast(parent()); + QQuickItem *item = qobject_cast(parent()); if (!item) return 0; QGraphicsScene *s = item->scene(); -- cgit v1.2.3