aboutsummaryrefslogtreecommitdiffstats
path: root/examples/embedded/qmlclocks
diff options
context:
space:
mode:
Diffstat (limited to 'examples/embedded/qmlclocks')
-rw-r--r--examples/embedded/qmlclocks/deployment.pri2
-rw-r--r--examples/embedded/qmlclocks/qmlclocks.cpp8
-rw-r--r--examples/embedded/qmlclocks/qmlclocks.pro2
3 files changed, 6 insertions, 6 deletions
diff --git a/examples/embedded/qmlclocks/deployment.pri b/examples/embedded/qmlclocks/deployment.pri
index 771a4dba76..75b39ac48f 100644
--- a/examples/embedded/qmlclocks/deployment.pri
+++ b/examples/embedded/qmlclocks/deployment.pri
@@ -1,4 +1,4 @@
-qmlclocks_src = $$PWD/../../../examples/declarative/toys/clocks
+qmlclocks_src = $$PWD/../../../examples/qml/toys/clocks
qmlclocks_files.files = $$qmlclocks_src/clocks.qml $$qmlclocks_src/content
DEPLOYMENT += qmlclocks_files
diff --git a/examples/embedded/qmlclocks/qmlclocks.cpp b/examples/embedded/qmlclocks/qmlclocks.cpp
index ce42ec7b18..1f9a553944 100644
--- a/examples/embedded/qmlclocks/qmlclocks.cpp
+++ b/examples/embedded/qmlclocks/qmlclocks.cpp
@@ -41,17 +41,17 @@
#include <QtCore/QFileInfo>
#include <QtWidgets/QApplication>
-#include <QtDeclarative/QDeclarativeView>
-#include <QtDeclarative/QDeclarativeEngine>
+#include <QtQuick/QQuickView>
+#include <QtQml/QQmlEngine>
int main(int argc, char *argv[])
{
QApplication application(argc, argv);
const QString mainQmlApp = QLatin1String("clocks.qml");
- QDeclarativeView view;
+ QQuickView view;
view.setSource(QUrl(mainQmlApp));
- view.setResizeMode(QDeclarativeView::SizeRootObjectToView);
+ view.setResizeMode(QQuickView::SizeRootObjectToView);
QObject::connect(view.engine(), SIGNAL(quit()), &application, SLOT(quit()));
#if defined(QT_KEYPAD_NAVIGATION)
diff --git a/examples/embedded/qmlclocks/qmlclocks.pro b/examples/embedded/qmlclocks/qmlclocks.pro
index 8e9dcdf87c..43a9e31972 100644
--- a/examples/embedded/qmlclocks/qmlclocks.pro
+++ b/examples/embedded/qmlclocks/qmlclocks.pro
@@ -1,5 +1,5 @@
!wince*:warning("DEPLOYMENT support required. This project only works on WinCE.")
-QT += declarative
+QT += qml
SOURCES += $$PWD/qmlclocks.cpp
include($$PWD/deployment.pri)