From df4763878d756fe1f5bcfe6b7dd8cf91cdd091e1 Mon Sep 17 00:00:00 2001 From: Warwick Allison Date: Wed, 10 Jun 2009 16:11:05 +1000 Subject: doc --- doc/src/declarative/modules.qdoc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 { ... } -- cgit v0.12