Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwineffects/package/contents/ui/main.qml
Show All 16 Lines | |||||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | import QtQuick 2.5 | 19 | import QtQuick 2.5 | ||
20 | import QtQuick.Controls 2.5 as QQC2 | 20 | import QtQuick.Controls 2.5 as QQC2 | ||
21 | import QtQuick.Layouts 1.1 | 21 | import QtQuick.Layouts 1.1 | ||
22 | 22 | | |||
23 | import org.kde.kcm 1.2 | 23 | import org.kde.kcm 1.2 | ||
24 | import org.kde.kconfig 1.0 | 24 | import org.kde.kconfig 1.0 | ||
25 | import org.kde.kirigami 2.8 as Kirigami | 25 | import org.kde.kirigami 2.10 as Kirigami | ||
26 | import org.kde.private.kcms.kwin.effects 1.0 as Private | 26 | import org.kde.private.kcms.kwin.effects 1.0 as Private | ||
27 | 27 | | |||
28 | ScrollViewKCM { | 28 | ScrollViewKCM { | ||
29 | ConfigModule.quickHelp: i18n("This module lets you configure desktop effects.") | 29 | ConfigModule.quickHelp: i18n("This module lets you configure desktop effects.") | ||
30 | 30 | | |||
31 | header: ColumnLayout { | 31 | header: ColumnLayout { | ||
32 | QQC2.Label { | 32 | QQC2.Label { | ||
33 | Layout.fillWidth: true | 33 | Layout.fillWidth: true | ||
▲ Show 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 89 | model: Private.EffectsFilterProxyModel { | |||
93 | sourceModel: kcm.effectsModel | 93 | sourceModel: kcm.effectsModel | ||
94 | } | 94 | } | ||
95 | 95 | | |||
96 | delegate: Effect { | 96 | delegate: Effect { | ||
97 | width: effectsList.width | 97 | width: effectsList.width | ||
98 | } | 98 | } | ||
99 | 99 | | |||
100 | section.property: "CategoryRole" | 100 | section.property: "CategoryRole" | ||
101 | section.delegate:Kirigami.AbstractListItem { | 101 | section.delegate: Kirigami.ListSectionHeader { | ||
102 | width: effectsList.width | 102 | width: effectsList.width | ||
103 | | ||||
104 | backgroundColor: Kirigami.Theme.backgroundColor | | |||
105 | Kirigami.Theme.inherit: false | | |||
106 | Kirigami.Theme.colorSet: Kirigami.Theme.Window | | |||
107 | | ||||
108 | hoverEnabled: false | | |||
109 | supportsMouseEvents: false | | |||
110 | | ||||
111 | Kirigami.Heading { | | |||
112 | level: 2 | | |||
113 | text: section | 103 | text: section | ||
114 | } | 104 | } | ||
115 | } | | |||
116 | 105 | | |||
117 | function findButtonGroup(name) { | 106 | function findButtonGroup(name) { | ||
118 | for (let item of effectsList._buttonGroups) { | 107 | for (let item of effectsList._buttonGroups) { | ||
119 | if (item.name == name) { | 108 | if (item.name == name) { | ||
120 | return item.group; | 109 | return item.group; | ||
121 | } | 110 | } | ||
122 | } | 111 | } | ||
123 | 112 | | |||
Show All 28 Lines |