Changeset View
Changeset View
Standalone View
Standalone View
kcm/package/contents/ui/OutputPanel.qml
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Line(s) | 28 | // Kirigami.FormData.label: i18n("Name") | |||
---|---|---|---|---|---|
97 | 97 | | |||
98 | Controls.ComboBox { | 98 | Controls.ComboBox { | ||
99 | Kirigami.FormData.label: i18n("Refresh rate:") | 99 | Kirigami.FormData.label: i18n("Refresh rate:") | ||
100 | model: element.refreshRates | 100 | model: element.refreshRates | ||
101 | currentIndex: element.refreshRateIndex ? | 101 | currentIndex: element.refreshRateIndex ? | ||
102 | element.refreshRateIndex : 0 | 102 | element.refreshRateIndex : 0 | ||
103 | onActivated: element.refreshRateIndex = currentIndex | 103 | onActivated: element.refreshRateIndex = currentIndex | ||
104 | } | 104 | } | ||
105 | | ||||
106 | Controls.ComboBox { | ||||
107 | Kirigami.FormData.label: i18n("Replica of:") | ||||
108 | model: element.replicationSourceModel | ||||
109 | visible: kcm.outputReplicationSupported | ||||
110 | | ||||
111 | onModelChanged: enabled = (count > 1); | ||||
112 | onCountChanged: enabled = (count > 1); | ||||
113 | | ||||
114 | currentIndex: element.replicationSourceIndex | ||||
115 | onActivated: element.replicationSourceIndex = currentIndex | ||||
116 | } | ||||
105 | } | 117 | } | ||
106 | } | 118 | } |