aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/cppextensions/referenceexamples/methods/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qml/cppextensions/referenceexamples/methods/main.cpp')
-rw-r--r--examples/qml/cppextensions/referenceexamples/methods/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/qml/cppextensions/referenceexamples/methods/main.cpp b/examples/qml/cppextensions/referenceexamples/methods/main.cpp
index d037d88f20..1e502c3943 100644
--- a/examples/qml/cppextensions/referenceexamples/methods/main.cpp
+++ b/examples/qml/cppextensions/referenceexamples/methods/main.cpp
@@ -38,8 +38,8 @@
**
****************************************************************************/
#include <QCoreApplication>
-#include <QDeclarativeEngine>
-#include <QDeclarativeComponent>
+#include <QQmlEngine>
+#include <QQmlComponent>
#include <QDebug>
#include "birthdayparty.h"
#include "person.h"
@@ -51,8 +51,8 @@ int main(int argc, char ** argv)
qmlRegisterType<BirthdayParty>("People", 1,0, "BirthdayParty");
qmlRegisterType<Person>("People", 1,0, "Person");
- 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()) {