summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-05-12 04:59:35 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-05-12 04:59:35 (GMT)
commit84b6eecd133ec9557d507ca290c4ed300aeb8540 (patch)
treeb7eb19aad5ca77e7e2f7f18d9a8eaf94f39625b0 /doc/src/snippets/declarative
parent7a3557acf5e0a9570e7e7e033a096eef5ca87055 (diff)
downloadQt-84b6eecd133ec9557d507ca290c4ed300aeb8540.zip
Qt-84b6eecd133ec9557d507ca290c4ed300aeb8540.tar.gz
Qt-84b6eecd133ec9557d507ca290c4ed300aeb8540.tar.bz2
Start on a Qml syntax introduction for non-C++ programmers.
Diffstat (limited to 'doc/src/snippets/declarative')
-rw-r--r--doc/src/snippets/declarative/comments.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/comments.qml b/doc/src/snippets/declarative/comments.qml
new file mode 100644
index 0000000..22e0d18
--- /dev/null
+++ b/doc/src/snippets/declarative/comments.qml
@@ -0,0 +1,9 @@
+Text {
+ text: "Hello world!" //a basic greeting
+ /*
+ We want this text to stand out from the rest so
+ we give it a large size and different font.
+ */
+ font.family: "Helvetica"
+ font.size: 24
+}