diff options
author | Martin Smith <martin.smith@nokia.com> | 2010-08-11 09:30:07 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2010-08-11 09:30:07 (GMT) |
commit | 41a982bec324894e8a71d68a44f99b0a0d220a34 (patch) | |
tree | be22c6993f1c8e4d5ac9f3bd9a0c5847548a9856 /examples/declarative/cppextensions/referenceexamples/binding/main.cpp | |
parent | 62968f33452016b31020e524fa6ba6d2cefd0278 (diff) | |
parent | a00dda686367807d6cc90f3cfca5453200565501 (diff) | |
download | Qt-41a982bec324894e8a71d68a44f99b0a0d220a34.zip Qt-41a982bec324894e8a71d68a44f99b0a0d220a34.tar.gz Qt-41a982bec324894e8a71d68a44f99b0a0d220a34.tar.bz2 |
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7
Diffstat (limited to 'examples/declarative/cppextensions/referenceexamples/binding/main.cpp')
-rw-r--r-- | examples/declarative/cppextensions/referenceexamples/binding/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/cppextensions/referenceexamples/binding/main.cpp b/examples/declarative/cppextensions/referenceexamples/binding/main.cpp index fe1bbc8..150f961 100644 --- a/examples/declarative/cppextensions/referenceexamples/binding/main.cpp +++ b/examples/declarative/cppextensions/referenceexamples/binding/main.cpp @@ -57,7 +57,7 @@ int main(int argc, char ** argv) qmlRegisterType<Girl>("People", 1,0, "Girl"); QDeclarativeEngine engine; - QDeclarativeComponent component(&engine, ":example.qml"); + QDeclarativeComponent component(&engine, QUrl("qrc:example.qml")); BirthdayParty *party = qobject_cast<BirthdayParty *>(component.create()); if (party && party->host()) { @@ -85,7 +85,7 @@ int main(int argc, char ** argv) party->startParty(); } else { - qWarning() << "An error occurred"; + qWarning() << component.errors(); } return app.exec(); |