aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2016-06-16 16:42:51 +0200
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2016-06-24 09:30:38 +0000
commit0b0832aaf4cc26bee202207c8cbe64650ee2d2fd (patch)
tree852c9d31d73fffb012d1fcc45ef9d8737cf65f69
parentd40b92e506af0e97bebd13c7410553f6d74d3af2 (diff)
Docs: List the supported property types.
Task-number: QBS-983 Change-Id: Id0bd4a91f6afbe04621cfff28b0ef43dcfeee69b Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--doc/qbs.qdoc42
1 files changed, 42 insertions, 0 deletions
diff --git a/doc/qbs.qdoc b/doc/qbs.qdoc
index d913c2338..560763d91 100644
--- a/doc/qbs.qdoc
+++ b/doc/qbs.qdoc
@@ -558,6 +558,48 @@
cpp.optimization: qbs.buildVariant == "debug" ? "none" : "fast"
\endcode
+ \section1 Property Types
+
+ While properties in \QBS generally work the same way as in QML, the set of possible property
+ types has been adapted to reflect the specific needs of a build tool. The supported types
+ are as follows:
+
+ \table
+ \header
+ \li Property type
+ \li Example
+ \li Description
+ \row
+ \li \c bool
+ \li \c{property bool someBoolean: false}
+ \li The usual boolean values.
+ \row
+ \li \c int
+ \li \c{property int theAnswer: 42}
+ \li Integral numbers.
+ \row
+ \li \c path
+ \li \c{property path aFile: "file.txt"}
+ \li File paths resolved relative to the directory the product they are associated with
+ is located in.
+ \row
+ \li \c pathList
+ \li \c{property pathList twoFiles: ["file1.txt", "./file2.txt"]}
+ \li A list of \c path values.
+ \row
+ \li \c string
+ \li \c{property string parentalAdvisory: "explicit lyrics"}
+ \li JavaScript strings.
+ \row
+ \li \c stringList
+ \li \c{property stringList realWorldExample: ["no", "not really"]}
+ \li A list of JavaScript strings.
+ \row
+ \li \c var
+ \li \c{property var aMap: ({ key1: "value1", key2: "value2" })}
+ \li Generic data, as in QML.
+ \endtable
+
\section1 File Tags and Taggers