diff options
Diffstat (limited to 'doc/reference/items/module.qdoc')
-rw-r--r-- | doc/reference/items/module.qdoc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/reference/items/module.qdoc b/doc/reference/items/module.qdoc index 4a6e38678..343790f47 100644 --- a/doc/reference/items/module.qdoc +++ b/doc/reference/items/module.qdoc @@ -118,6 +118,20 @@ } \endcode + \section2 \c original + This is the value of the property in the module itself (possibly overridden from a profile or + the command line). Use it to set a module property conditionally: + \code + Module { // This is mymodule + property string aProperty: "z" + } + ---------- + Product { + Depends { name: "mymodule" } + Depends { name: "myothermodule" } + mymodule.aProperty: myothermodule.anotherProperty === "x" ? "y" : original // => "y" if myothermodule.anotherProperty is "x", "z" otherwise + \endcode + \section2 \c outer This value is used in nested items, where it refers to the value of the respective property in the surrounding item. It is often encountered in \l{Group Item}{groups}: @@ -133,6 +147,7 @@ } \endcode + \section1 Module Properties \table |