aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltest
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmltest')
-rw-r--r--src/qmltest/quicktest.cpp6
-rw-r--r--src/qmltest/quicktestevent.cpp10
2 files changed, 8 insertions, 8 deletions
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 <QtDeclarative/qdeclarativeengine.h>
#include <QtDeclarative/qdeclarativecontext.h>
#if defined(QML_VERSION) && QML_VERSION >= 0x020000
-#include <QtDeclarative/qsgview.h>
+#include <QtDeclarative/qquickview.h>
#define QUICK_TEST_SCENEGRAPH 1
#endif
#include <QtDeclarative/qjsvalue.h>
@@ -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<QDeclarativeError> 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 <QtQuick1/qdeclarativeitem.h>
#include <QtQuick1/qdeclarativeview.h>
#if defined(QML_VERSION) && QML_VERSION >= 0x020000
-#include <QtDeclarative/qsgitem.h>
-#include <QtDeclarative/qsgcanvas.h>
+#include <QtDeclarative/qquickitem.h>
+#include <QtDeclarative/qquickcanvas.h>
#define QUICK_TEST_SCENEGRAPH 1
#endif
#include <QtWidgets/qgraphicsscene.h>
@@ -119,7 +119,7 @@ namespace QtQuickTest
QDeclarativeView *view = qobject_cast<QDeclarativeView *>(window);
QWindow *eventWindow = window;
#ifdef QUICK_TEST_SCENEGRAPH
- QSGItem *sgitem = qobject_cast<QSGItem *>(item);
+ QQuickItem *sgitem = qobject_cast<QQuickItem *>(item);
if (sgitem) {
pos = sgitem->mapToScene(_pos).toPoint();
} else
@@ -181,7 +181,7 @@ namespace QtQuickTest
QDeclarativeView *view = qobject_cast<QDeclarativeView *>(window);
QWindow *eventWindow = window;
#ifdef QUICK_TEST_SCENEGRAPH
- QSGItem *sgitem = qobject_cast<QSGItem *>(item);
+ QQuickItem *sgitem = qobject_cast<QQuickItem *>(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<QSGItem *>(parent());
+ QQuickItem *sgitem = qobject_cast<QQuickItem *>(parent());
if (sgitem)
return sgitem->canvas();
#endif