Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/Header.qml
Show All 27 Lines | 25 | ColumnLayout { | |||
---|---|---|---|---|---|
28 | 28 | | |||
29 | Item { | 29 | Item { | ||
30 | Layout.fillWidth: true | 30 | Layout.fillWidth: true | ||
31 | Layout.preferredHeight: units.gridUnit * 1.5 | 31 | Layout.preferredHeight: units.gridUnit * 1.5 | ||
32 | Layout.topMargin: units.smallSpacing | 32 | Layout.topMargin: units.smallSpacing | ||
33 | 33 | | |||
34 | Label { | 34 | Label { | ||
35 | id: heading | 35 | id: heading | ||
36 | anchors.centerIn: parent | 36 | anchors.fill: parent | ||
37 | horizontalAlignment: Text.AlignHCenter | ||||
38 | elide: Text.ElideRight | ||||
37 | font.weight: Font.DemiBold | 39 | font.weight: Font.DemiBold | ||
38 | } | 40 | } | ||
39 | } | 41 | } | ||
40 | 42 | | |||
41 | Label { | 43 | Label { | ||
42 | id: disabledLabel | 44 | id: disabledLabel | ||
43 | Layout.alignment: Qt.AlignCenter | 45 | Layout.alignment: Qt.AlignCenter | ||
46 | Layout.fillWidth: true | ||||
47 | horizontalAlignment: Text.AlignHCenter | ||||
48 | elide: Text.ElideRight | ||||
44 | visible: text && !parent.enabled | 49 | visible: text && !parent.enabled | ||
45 | font.italic: true | 50 | font.italic: true | ||
46 | } | 51 | } | ||
47 | } | 52 | } |