summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-05-09 02:49:19 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-05-09 02:49:19 (GMT)
commitc2016ecdb3e1d493a3fb300193856caaec848e89 (patch)
treec5d47934cc31ff2a67a02ce79f6946784d080826
parent0d9edd82ee4f76e4f54b4600c7c8899b4f99d3aa (diff)
parenta8fdea9460ffd4814240543b0fd340aee593db85 (diff)
downloadQt-c2016ecdb3e1d493a3fb300193856caaec848e89.zip
Qt-c2016ecdb3e1d493a3fb300193856caaec848e89.tar.gz
Qt-c2016ecdb3e1d493a3fb300193856caaec848e89.tar.bz2
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-qml-team
* 'master' of git://scm.dev.nokia.troll.no/qt/qt-qml-team: Augment documentation
-rw-r--r--src/declarative/qml/qdeclarativeengine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativeengine.cpp b/src/declarative/qml/qdeclarativeengine.cpp
index 3cb2112..aa4bcd4 100644
--- a/src/declarative/qml/qdeclarativeengine.cpp
+++ b/src/declarative/qml/qdeclarativeengine.cpp
@@ -1326,6 +1326,8 @@ Example (where \c parentItem is the id of an existing QML item):
In the case of an error, a QtScript Error object is thrown. This object has an additional property,
\c qmlErrors, which is an array of the errors encountered.
Each object in this array has the members \c lineNumber, \c columnNumber, \c fileName and \c message.
+For example, if the above snippet had misspelled color as 'colro' then the array would contain an object like the following:
+{ "lineNumber" : 1, "columnNumber" : 32, "fileName" : "dynamicSnippet1", "message" : "Cannot assign to non-existent property \"colro\""}.
Note that this function returns immediately, and therefore may not work if
the \a qml string loads new components (that is, external QML files that have not yet been loaded).