diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-08-11 06:05:27 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-08-11 06:05:27 (GMT) |
commit | 176852d24835dc5a14efa94ffe2a0ba58151fd4c (patch) | |
tree | abb4e514e932c280de7292179288a779211f9d8a /examples/declarative/cppextensions/referenceexamples/valuesource/main.cpp | |
parent | c7a18308a2725e4d1763777cb549f1ae74848005 (diff) | |
parent | 0c1d29300c7248ead3392bb385ceae6889dc2834 (diff) | |
download | Qt-176852d24835dc5a14efa94ffe2a0ba58151fd4c.zip Qt-176852d24835dc5a14efa94ffe2a0ba58151fd4c.tar.gz Qt-176852d24835dc5a14efa94ffe2a0ba58151fd4c.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml:
Fix cppextension examples.
Compile on Symbian
Don't destroy ListModel child list nodes.
Diffstat (limited to 'examples/declarative/cppextensions/referenceexamples/valuesource/main.cpp')
-rw-r--r-- | examples/declarative/cppextensions/referenceexamples/valuesource/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/cppextensions/referenceexamples/valuesource/main.cpp b/examples/declarative/cppextensions/referenceexamples/valuesource/main.cpp index 40dc3cb..aa77665 100644 --- a/examples/declarative/cppextensions/referenceexamples/valuesource/main.cpp +++ b/examples/declarative/cppextensions/referenceexamples/valuesource/main.cpp @@ -58,7 +58,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()) { @@ -86,7 +86,7 @@ int main(int argc, char ** argv) party->startParty(); } else { - qWarning() << "An error occurred"; + qWarning() << component.errors(); } return app.exec(); |