diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-04-12 01:25:06 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-04-12 01:26:07 (GMT) |
commit | bb491c3b9ee2034e14d05a74f3ff926ffd2cd39b (patch) | |
tree | d94ee22a1958c2fa3fade2e3e2ddb079188b0a14 /doc/src/snippets/declarative/codingconventions/dotproperties.qml | |
parent | 2096a93fffa4b8986ea0bd6d93aa1457b8f359e2 (diff) | |
download | Qt-bb491c3b9ee2034e14d05a74f3ff926ffd2cd39b.zip Qt-bb491c3b9ee2034e14d05a74f3ff926ffd2cd39b.tar.gz Qt-bb491c3b9ee2034e14d05a74f3ff926ffd2cd39b.tar.bz2 |
Start documenting coding conventions
Task-number: QT-2845
Diffstat (limited to 'doc/src/snippets/declarative/codingconventions/dotproperties.qml')
-rw-r--r-- | doc/src/snippets/declarative/codingconventions/dotproperties.qml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/codingconventions/dotproperties.qml b/doc/src/snippets/declarative/codingconventions/dotproperties.qml new file mode 100644 index 0000000..211cac1 --- /dev/null +++ b/doc/src/snippets/declarative/codingconventions/dotproperties.qml @@ -0,0 +1,28 @@ +import Qt 4.6 + +Item { + +//! [0] +Rectangle { + anchors.left: parent.left; anchors.top: parent.top; anchors.right: parent.right; anchors.leftMargin: 20 +} + +Text { + text: "hello" + font.bold: true; font.italic: true; font.pixelSize: 20; font.capitalization: Font.AllUppercase +} + +//! [0] + +//! [1] +Rectangle { + anchors { left: parent.left; top: parent.top; right: parent.right; leftMargin: 20 } +} + +Text { + text: "hello" + font { bold: true; italic: true; pixelSize: 20; capitalization: Font.AllUppercase } +} +//! [1] + +} |