Changeset View
Changeset View
Standalone View
Standalone View
examples/applets/widgetgallery/contents/ui/Typography.qml
Show All 26 Lines | 25 | PlasmaComponents.Page { | |||
---|---|---|---|---|---|
27 | implicitHeight: childrenRect.height | 27 | implicitHeight: childrenRect.height | ||
28 | tools: Row { | 28 | tools: Row { | ||
29 | spacing: 5 | 29 | spacing: 5 | ||
30 | PlasmaComponents.ToolButton { | 30 | PlasmaComponents.ToolButton { | ||
31 | visible: pageStack.depth > 1 | 31 | visible: pageStack.depth > 1 | ||
32 | iconSource: "go-previous" | 32 | iconSource: "go-previous" | ||
33 | onClicked: pageStack.pop() | 33 | onClicked: pageStack.pop() | ||
34 | } | 34 | } | ||
35 | PlasmaExtras.Title { | 35 | PlasmaExtras.Heading { | ||
36 | level: 1 | ||||
36 | text: "Typography" | 37 | text: "Typography" | ||
37 | } | 38 | } | ||
38 | } | 39 | } | ||
39 | 40 | | |||
40 | PlasmaExtras.ScrollArea { | 41 | PlasmaExtras.ScrollArea { | ||
41 | anchors.fill: parent | 42 | anchors.fill: parent | ||
42 | Flickable { | 43 | Flickable { | ||
43 | id: flickable | 44 | id: flickable | ||
44 | //contentWidth: column.width | 45 | //contentWidth: column.width | ||
45 | contentHeight: column.height | 46 | contentHeight: column.height | ||
46 | clip: true | 47 | clip: true | ||
47 | anchors.fill: parent | 48 | anchors.fill: parent | ||
48 | 49 | | |||
49 | Column { | 50 | Column { | ||
50 | id: column | 51 | id: column | ||
51 | width: parent.width | 52 | width: parent.width | ||
52 | anchors { | 53 | anchors { | ||
53 | //fill: parent | 54 | //fill: parent | ||
54 | margins: 12 | 55 | margins: 12 | ||
55 | } | 56 | } | ||
56 | spacing: 12 | 57 | spacing: 12 | ||
57 | 58 | | |||
58 | PlasmaExtras.Title { | 59 | PlasmaExtras.Heading { | ||
60 | level: 1 | ||||
59 | text: "A Title" | 61 | text: "A Title" | ||
60 | } | 62 | } | ||
61 | 63 | | |||
62 | Repeater { | 64 | Repeater { | ||
63 | model: 5 | 65 | model: 5 | ||
64 | PlasmaExtras.Heading { | 66 | PlasmaExtras.Heading { | ||
65 | level: index + 1 | 67 | level: index + 1 | ||
66 | text: "Header level " + (index + 1) | 68 | text: "Header level " + (index + 1) | ||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |