aboutsummaryrefslogtreecommitdiffstats
path: root/examples/window
diff options
context:
space:
mode:
Diffstat (limited to 'examples/window')
-rw-r--r--examples/window/window.cpp8
-rw-r--r--examples/window/window.pro2
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/window/window.cpp b/examples/window/window.cpp
index 4854256190..2112ab8f45 100644
--- a/examples/window/window.cpp
+++ b/examples/window/window.cpp
@@ -39,16 +39,16 @@
****************************************************************************/
#include <QtGui/QGuiApplication>
-#include <QtDeclarative/QDeclarativeEngine>
-#include <QtDeclarative/QDeclarativeComponent>
+#include <QtQml/QQmlEngine>
+#include <QtQml/QQmlComponent>
#include <QtCore/QUrl>
#include <QDebug>
int main(int argc, char* argv[])
{
QGuiApplication app(argc, argv);
- QDeclarativeEngine engine;
- QDeclarativeComponent component(&engine);
+ QQmlEngine engine;
+ QQmlComponent component(&engine);
component.loadUrl(QUrl::fromLocalFile("Window.qml"));
if ( component.isReady() )
component.create();
diff --git a/examples/window/window.pro b/examples/window/window.pro
index 74804bd776..c4518418f6 100644
--- a/examples/window/window.pro
+++ b/examples/window/window.pro
@@ -1,5 +1,5 @@
TEMPLATE = app
CONFIG += qt
-QT += declarative
+QT += qml
SOURCES += window.cpp