aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/cppextensions/referenceexamples/valuesource/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qml/cppextensions/referenceexamples/valuesource/main.cpp')
-rw-r--r--examples/qml/cppextensions/referenceexamples/valuesource/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/qml/cppextensions/referenceexamples/valuesource/main.cpp b/examples/qml/cppextensions/referenceexamples/valuesource/main.cpp
index 53d676dfbe..e119e719af 100644
--- a/examples/qml/cppextensions/referenceexamples/valuesource/main.cpp
+++ b/examples/qml/cppextensions/referenceexamples/valuesource/main.cpp
@@ -38,8 +38,8 @@
**
****************************************************************************/
#include <QCoreApplication>
-#include <QDeclarativeEngine>
-#include <QDeclarativeComponent>
+#include <QQmlEngine>
+#include <QQmlComponent>
#include <QDebug>
#include "birthdayparty.h"
#include "happybirthdaysong.h"
@@ -57,8 +57,8 @@ int main(int argc, char ** argv)
qmlRegisterType<Boy>("People", 1,0, "Boy");
qmlRegisterType<Girl>("People", 1,0, "Girl");
- QDeclarativeEngine engine;
- QDeclarativeComponent component(&engine, QUrl("qrc:example.qml"));
+ QQmlEngine engine;
+ QQmlComponent component(&engine, QUrl("qrc:example.qml"));
BirthdayParty *party = qobject_cast<BirthdayParty *>(component.create());
if (party && party->host()) {