summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-06-10 06:11:05 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-06-10 06:11:05 (GMT)
commitdf4763878d756fe1f5bcfe6b7dd8cf91cdd091e1 (patch)
tree5d1ce386f4fed7a4e18317d70589adc863b8bd10 /doc
parent7d581a9504ea1a9cf773e0cf47f2b192e3a5a6c7 (diff)
downloadQt-df4763878d756fe1f5bcfe6b7dd8cf91cdd091e1.zip
Qt-df4763878d756fe1f5bcfe6b7dd8cf91cdd091e1.tar.gz
Qt-df4763878d756fe1f5bcfe6b7dd8cf91cdd091e1.tar.bz2
doc
Diffstat (limited to 'doc')
-rw-r--r--doc/src/declarative/modules.qdoc8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/src/declarative/modules.qdoc b/doc/src/declarative/modules.qdoc
index d84ad46..194be40 100644
--- a/doc/src/declarative/modules.qdoc
+++ b/doc/src/declarative/modules.qdoc
@@ -32,10 +32,15 @@ This is the currently-supported mechanism.
By using the "import" statement, a subdirectory of types can be added to the
empty namespace. Alternatively, a type in a subdirectory can be referenced
-explicitly:
+explicitly.
+
+So, given these files:
./SubModule1/Type1.qml
./SubModule2/Type1.qml
+
+This is valid QML:
+
import "SubModule1"
Type1 { ... }
SubModule2.Type1 { ... }
@@ -50,6 +55,7 @@ explicitly qualified. Dependencies cannot be added to the empty namespace.
QMLPATH=/opt/Nokia/qml:/usr/share/lib/qml
/opt/Nokia/qml/Module1/Type1.qml
/usr/share/lib/qml/Module1/Type1.qml
+
require "Module1"
Module1.Type1 { ... }