summaryrefslogtreecommitdiffstats
path: root/examples/declarative/cppextensions/referenceexamples/binding/main.cpp
diff options
context:
space:
mode:
authorHenrik Hartz <henrik.hartz@nokia.com>2010-08-11 08:02:41 (GMT)
committerHenrik Hartz <henrik.hartz@nokia.com>2010-08-11 08:02:41 (GMT)
commit9e41bd55cc605f65543e020bb5407c34a043bef9 (patch)
tree90d00509544fcdce09e4f9456d4bd7e1e95410d8 /examples/declarative/cppextensions/referenceexamples/binding/main.cpp
parentebdc597eea6e44b66d6c98d252531af5d0da04f8 (diff)
parent0c1d29300c7248ead3392bb385ceae6889dc2834 (diff)
downloadQt-9e41bd55cc605f65543e020bb5407c34a043bef9.zip
Qt-9e41bd55cc605f65543e020bb5407c34a043bef9.tar.gz
Qt-9e41bd55cc605f65543e020bb5407c34a043bef9.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'examples/declarative/cppextensions/referenceexamples/binding/main.cpp')
-rw-r--r--examples/declarative/cppextensions/referenceexamples/binding/main.cpp4
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();