Changeset View
Changeset View
Standalone View
Standalone View
kcm/package/contents/ui/OutputPanel.qml
Show All 19 Lines | |||||
20 | import org.kde.kirigami 2.4 as Kirigami | 20 | import org.kde.kirigami 2.4 as Kirigami | ||
21 | 21 | | |||
22 | import org.kde.kcm 1.2 as KCM | 22 | import org.kde.kcm 1.2 as KCM | ||
23 | 23 | | |||
24 | ColumnLayout { | 24 | ColumnLayout { | ||
25 | id: outputPanel | 25 | id: outputPanel | ||
26 | property var element: model | 26 | property var element: model | ||
27 | 27 | | |||
28 | Kirigami.Heading { | | |||
29 | Layout.fillWidth: true | | |||
30 | horizontalAlignment: Text.AlignHCenter | | |||
31 | level: 2 | | |||
32 | text: i18n("Settings for %1", element.display) | | |||
33 | visible: kcm.outputModel.rowCount() > 1 | | |||
34 | } | | |||
35 | | ||||
36 | Kirigami.FormLayout { | 28 | Kirigami.FormLayout { | ||
37 | twinFormLayouts: globalSettingsLayout | 29 | twinFormLayouts: globalSettingsLayout | ||
38 | 30 | | |||
39 | Controls.CheckBox { | 31 | Controls.CheckBox { | ||
40 | text: i18n("Enabled") | 32 | text: i18n("Enabled") | ||
41 | checked: element.enabled | 33 | checked: element.enabled | ||
42 | onClicked: element.enabled = checked | 34 | onClicked: element.enabled = checked | ||
43 | visible: kcm.outputModel.rowCount() > 1 | 35 | visible: kcm.outputModel.rowCount() > 1 | ||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |