Changeset View
Changeset View
Standalone View
Standalone View
examples/developerguide/basic/contents/ui/main.qml
Show All 36 Lines | 34 | ColumnLayout { | |||
---|---|---|---|---|---|
37 | anchors { | 37 | anchors { | ||
38 | fill: parent | 38 | fill: parent | ||
39 | margins: units.largeSpacing | 39 | margins: units.largeSpacing | ||
40 | } | 40 | } | ||
41 | 41 | | |||
42 | spacing: units.gridUnit | 42 | spacing: units.gridUnit | ||
43 | 43 | | |||
44 | // A title on top | 44 | // A title on top | ||
45 | PlasmaExtras.Title { | 45 | PlasmaExtras.Heading { | ||
46 | level: 1 // from 1 to 5; level 1 is the size used for titles | ||||
46 | text: i18n("Hello Plasma World!") | 47 | text: i18n("Hello Plasma World!") | ||
47 | } | 48 | } | ||
48 | 49 | | |||
49 | // The central area is a rectangle | 50 | // The central area is a rectangle | ||
50 | Rectangle { | 51 | Rectangle { | ||
51 | // The id is used to reference this item from the | 52 | // The id is used to reference this item from the | ||
52 | // button's onClicked function | 53 | // button's onClicked function | ||
53 | id: colorRect | 54 | id: colorRect | ||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |