diff options
author | A-Team <ateam@pad.test.qt.nokia.com> | 2010-12-20 23:00:22 (GMT) |
---|---|---|
committer | A-Team <ateam@pad.test.qt.nokia.com> | 2010-12-20 23:00:22 (GMT) |
commit | 6e8ee41d64fe0dfa86995402954b2cbfede48d21 (patch) | |
tree | c9dac16f9b43f224c7d320674ad433642afe13ec /doc | |
parent | 7317b84067387b6b0350a28d6c63e8d7f6945829 (diff) | |
parent | 987a683ff51997cb23cb931af99c6554651742d7 (diff) | |
download | Qt-6e8ee41d64fe0dfa86995402954b2cbfede48d21.zip Qt-6e8ee41d64fe0dfa86995402954b2cbfede48d21.tar.gz Qt-6e8ee41d64fe0dfa86995402954b2cbfede48d21.tar.bz2 |
Merge branch '4.7-upstream' into 4.7-doc
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/declarative/javascriptblocks.qdoc | 4 | ||||
-rw-r--r-- | doc/src/declarative/modules.qdoc | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/src/declarative/javascriptblocks.qdoc b/doc/src/declarative/javascriptblocks.qdoc index 155bd6e..68cb392 100644 --- a/doc/src/declarative/javascriptblocks.qdoc +++ b/doc/src/declarative/javascriptblocks.qdoc @@ -99,7 +99,9 @@ resource, the component's \l {QDeclarativeComponent::status()}{status} is set to Imported JavaScript files are always qualified using the "as" keyword. The qualifier for JavaScript files must be unique, so there is always a one-to-one -mapping between qualifiers and JavaScript files. +mapping between qualifiers and JavaScript files. (This also means qualifiers cannot +be named the same as built-in JavaScript objects such as \c Date and \c Math). + \section2 Code-Behind Implementation Files diff --git a/doc/src/declarative/modules.qdoc b/doc/src/declarative/modules.qdoc index 2a2e4ff..8d23170 100644 --- a/doc/src/declarative/modules.qdoc +++ b/doc/src/declarative/modules.qdoc @@ -216,6 +216,8 @@ JavaScript files must always be imported with a named import: } \endqml +The qualifier ("MyScript" in the above example) must be unique within the QML document. +Unlike ordinary modules, multiple scripts cannot be imported into the same namespace. \section1 Writing a qmldir file |