From bfb3c424abc7c839dc44de0e36024ede99ece736 Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Fri, 14 Oct 2011 10:51:42 +0200 Subject: Rename Qt Quick-specific classes to QQuick* The QSG (SceneGraph) prefix is too generic for Qt Quick(2)-specific classes. All the classes and files in the declarative/items directory have been renamed. In particular, for classes that are currently public, the renaming is as follows: QSGView --> QQuickView QSGCanvas --> QQuickCanvas QSGItem --> QQuickItem QSGPaintedItem --> QQuickPaintedItem The header files have been renamed accordingly (e.g. qsgview.h --> qquickview.h). Change-Id: Iac937fff81db20bb639486a793c3aeb5230b038c Reviewed-by: Kent Hansen --- src/qmltest/quicktest.cpp | 6 +++--- src/qmltest/quicktestevent.cpp | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/qmltest') diff --git a/src/qmltest/quicktest.cpp b/src/qmltest/quicktest.cpp index 150304028d..3c726d43d1 100644 --- a/src/qmltest/quicktest.cpp +++ b/src/qmltest/quicktest.cpp @@ -49,7 +49,7 @@ #include #include #if defined(QML_VERSION) && QML_VERSION >= 0x020000 -#include +#include #define QUICK_TEST_SCENEGRAPH 1 #endif #include @@ -175,7 +175,7 @@ int quick_test_main(int argc, char **argv, const char *name, quick_test_viewport // in turn with a QDeclarativeView. #ifdef QUICK_TEST_SCENEGRAPH if (qtQuick2) { - QSGView view; + QQuickView view; QTestRootObject rootobj; QEventLoop eventLoop; QObject::connect(view.engine(), SIGNAL(quit()), @@ -199,7 +199,7 @@ int quick_test_main(int argc, char **argv, const char *name, quick_test_viewport view.setSource(QUrl::fromLocalFile(path)); if (QTest::printAvailableFunctions) continue; - if (view.status() == QSGView::Error) { + if (view.status() == QQuickView::Error) { // Error compiling the test - flag failure in the log and continue. QList errors = view.errors(); QuickTestResult results; diff --git a/src/qmltest/quicktestevent.cpp b/src/qmltest/quicktestevent.cpp index 4e62d4a827..780d502f52 100644 --- a/src/qmltest/quicktestevent.cpp +++ b/src/qmltest/quicktestevent.cpp @@ -45,8 +45,8 @@ #include #include #if defined(QML_VERSION) && QML_VERSION >= 0x020000 -#include -#include +#include +#include #define QUICK_TEST_SCENEGRAPH 1 #endif #include @@ -119,7 +119,7 @@ namespace QtQuickTest QDeclarativeView *view = qobject_cast(window); QWindow *eventWindow = window; #ifdef QUICK_TEST_SCENEGRAPH - QSGItem *sgitem = qobject_cast(item); + QQuickItem *sgitem = qobject_cast(item); if (sgitem) { pos = sgitem->mapToScene(_pos).toPoint(); } else @@ -181,7 +181,7 @@ namespace QtQuickTest QDeclarativeView *view = qobject_cast(window); QWindow *eventWindow = window; #ifdef QUICK_TEST_SCENEGRAPH - QSGItem *sgitem = qobject_cast(item); + QQuickItem *sgitem = qobject_cast(item); if (sgitem) { pos = sgitem->mapToScene(_pos).toPoint(); } else @@ -291,7 +291,7 @@ bool QuickTestEvent::mouseMove QWindow *QuickTestEvent::eventWindow() { #ifdef QUICK_TEST_SCENEGRAPH - QSGItem *sgitem = qobject_cast(parent()); + QQuickItem *sgitem = qobject_cast(parent()); if (sgitem) return sgitem->canvas(); #endif -- cgit v1.2.3