summaryrefslogtreecommitdiffstats
path: root/examples/declarative/cppextensions/referenceexamples/grouped/main.cpp
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2010-08-17 13:58:48 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2010-08-17 13:58:48 (GMT)
commitff6f17c92ad1bfa898bc89a5ccb65361d443c591 (patch)
treef0ac9ead3755b886975dada5c977e969600526fd /examples/declarative/cppextensions/referenceexamples/grouped/main.cpp
parentcd1b5d933575fb801ad3014f3d7fd7c268a362d1 (diff)
parent1970e2d46656db8178636e06c82287f536b626c7 (diff)
downloadQt-ff6f17c92ad1bfa898bc89a5ccb65361d443c591.zip
Qt-ff6f17c92ad1bfa898bc89a5ccb65361d443c591.tar.gz
Qt-ff6f17c92ad1bfa898bc89a5ccb65361d443c591.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7
Diffstat (limited to 'examples/declarative/cppextensions/referenceexamples/grouped/main.cpp')
-rw-r--r--examples/declarative/cppextensions/referenceexamples/grouped/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/cppextensions/referenceexamples/grouped/main.cpp b/examples/declarative/cppextensions/referenceexamples/grouped/main.cpp
index e56a14d..6f7f13f 100644
--- a/examples/declarative/cppextensions/referenceexamples/grouped/main.cpp
+++ b/examples/declarative/cppextensions/referenceexamples/grouped/main.cpp
@@ -55,7 +55,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()) {
@@ -78,7 +78,7 @@ int main(int argc, char ** argv)
qWarning() << bestShoe->name() << "is wearing the best shoes!";
} else {
- qWarning() << "An error occurred";
+ qWarning() << component.errors();
}
return 0;