diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-12-20 11:27:14 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-12-20 11:27:14 (GMT) |
commit | 987a683ff51997cb23cb931af99c6554651742d7 (patch) | |
tree | f6289720da5b8e280a7849c5dd52b5a3a1629a10 /doc | |
parent | 97b039438bc31bb420138d72549372adb1244dc8 (diff) | |
parent | 197ec350e4014330851a013501c6dde3068ac26f (diff) | |
download | Qt-987a683ff51997cb23cb931af99c6554651742d7.zip Qt-987a683ff51997cb23cb931af99c6554651742d7.tar.gz Qt-987a683ff51997cb23cb931af99c6554651742d7.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:
Setting TextInput.cursorPosition outside bounds crashed.
Update test bitmaps for QDeclarativeImage::svg() autotest on Windows
Don't truncate image:// url strings prematurely
Update docs on importing javascript files
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 011eb63..bf9f5fd 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 |