Changeset View
Changeset View
Standalone View
Standalone View
kcms/kded/package/contents/ui/main.qml
Show All 30 Lines | 28 | KCM.ScrollViewKCM { | |||
---|---|---|---|---|---|
31 | KCM.ConfigModule.quickHelp: i18n("<p>This module allows you to have an overview of all plugins of the | 31 | KCM.ConfigModule.quickHelp: i18n("<p>This module allows you to have an overview of all plugins of the | ||
32 | KDE Daemon, also referred to as KDE Services. Generally, there are two types of service:</p> | 32 | KDE Daemon, also referred to as KDE Services. Generally, there are two types of service:</p> | ||
33 | <ul><li>Services invoked at startup</li><li>Services called on demand</li></ul> | 33 | <ul><li>Services invoked at startup</li><li>Services called on demand</li></ul> | ||
34 | <p>The latter are only listed for convenience. The startup services can be started and stopped. | 34 | <p>The latter are only listed for convenience. The startup services can be started and stopped. | ||
35 | You can also define whether services should be loaded at startup.</p> | 35 | You can also define whether services should be loaded at startup.</p> | ||
36 | <p><b>Use this with care: some services are vital for Plasma; do not deactivate services if you | 36 | <p><b>Use this with care: some services are vital for Plasma; do not deactivate services if you | ||
37 | do not know what you are doing.</b></p>") | 37 | do not know what you are doing.</b></p>") | ||
38 | 38 | | |||
39 | // TODO immutable somehow? | | |||
40 | | ||||
41 | Binding { | 39 | Binding { | ||
42 | target: kcm.filteredModel | 40 | target: kcm.filteredModel | ||
43 | property: "query" | 41 | property: "query" | ||
44 | value: searchField.text | 42 | value: searchField.text | ||
45 | } | 43 | } | ||
46 | 44 | | |||
47 | Binding { | 45 | Binding { | ||
48 | target: kcm.filteredModel | 46 | target: kcm.filteredModel | ||
▲ Show 20 Lines • Show All 110 Lines • ▼ Show 20 Line(s) | 140 | view: ListView { | |||
159 | 157 | | |||
160 | Component { | 158 | Component { | ||
161 | id: listDelegateComponent | 159 | id: listDelegateComponent | ||
162 | 160 | | |||
163 | Kirigami.AbstractListItem { | 161 | Kirigami.AbstractListItem { | ||
164 | id: delegate | 162 | id: delegate | ||
165 | // FIXME why does the padding logic to dodge the ScrollBars not work here? | 163 | // FIXME why does the padding logic to dodge the ScrollBars not work here? | ||
166 | text: model.display | 164 | text: model.display | ||
165 | enabled: !model.immutable | ||||
167 | checkable: model.type !== Private.KCM.OnDemandType | 166 | checkable: model.type !== Private.KCM.OnDemandType | ||
168 | checked: model.autoloadEnabled === true | 167 | checked: model.autoloadEnabled === true | ||
169 | hoverEnabled: checkable | 168 | hoverEnabled: checkable | ||
170 | focusPolicy: Qt.ClickFocus | 169 | focusPolicy: Qt.ClickFocus | ||
171 | Accessible.description: i18n("Toggle automatically loading this service on startup") | 170 | Accessible.description: i18n("Toggle automatically loading this service on startup") | ||
172 | onClicked: { | 171 | onClicked: { | ||
173 | if (checkable) { | 172 | if (checkable) { | ||
174 | model.autoloadEnabled = !model.autoloadEnabled; | 173 | model.autoloadEnabled = !model.autoloadEnabled; | ||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |