summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/codingconventions/dotproperties.qml
blob: 942b0b1bcc7d9aa1eb51aaf863d8d7c7bfb57ab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import Qt 4.7

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]

}