Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwineffects/package/contents/ui/main.qml
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 30 | header: ColumnLayout { | |||
---|---|---|---|---|---|
78 | } | 78 | } | ||
79 | } | 79 | } | ||
80 | 80 | | |||
81 | view: ListView { | 81 | view: ListView { | ||
82 | id: effectsList | 82 | id: effectsList | ||
83 | 83 | | |||
84 | property var _buttonGroups: [] | 84 | property var _buttonGroups: [] | ||
85 | 85 | | |||
86 | spacing: Kirigami.Units.smallSpacing | | |||
87 | | ||||
88 | model: Private.EffectsFilterProxyModel { | 86 | model: Private.EffectsFilterProxyModel { | ||
89 | id: searchModel | 87 | id: searchModel | ||
90 | 88 | | |||
91 | query: searchField.text | 89 | query: searchField.text | ||
92 | sourceModel: kcm.effectsModel | 90 | sourceModel: kcm.effectsModel | ||
93 | } | 91 | } | ||
94 | 92 | | |||
95 | delegate: Effect { | 93 | delegate: Effect { | ||
96 | width: effectsList.width | 94 | width: effectsList.width | ||
97 | } | 95 | } | ||
98 | 96 | | |||
99 | section.property: "CategoryRole" | 97 | section.property: "CategoryRole" | ||
100 | section.delegate: Item { | 98 | section.delegate: Kirigami.SwipeListItem { | ||
101 | width: effectsList.width | 99 | width: effectsList.width | ||
102 | height: sectionText.implicitHeight + 2 * Kirigami.Units.smallSpacing | 100 | sectionDelegate: true | ||
103 | | ||||
104 | QtControls.Label { | 101 | QtControls.Label { | ||
105 | id: sectionText | 102 | id: sectionText | ||
106 | | ||||
107 | anchors.fill: parent | | |||
108 | | ||||
109 | color: Kirigami.Theme.disabledTextColor | 103 | color: Kirigami.Theme.disabledTextColor | ||
110 | font.weight: Font.Bold | 104 | font.weight: Font.Bold | ||
111 | horizontalAlignment: Text.AlignHCenter | 105 | horizontalAlignment: Text.AlignHCenter | ||
112 | text: section | 106 | text: section | ||
113 | verticalAlignment: Text.AlignVCenter | 107 | verticalAlignment: Text.AlignVCenter | ||
114 | } | 108 | } | ||
115 | } | 109 | } | ||
116 | 110 | | |||
Show All 35 Lines |