[kcmkwin/kwineffects] Use new Kirigami ListSectionHeader component
Summary: {F7344129} Test Plan: Open the {nav Desktop Effects} KCM. Reviewers: #kwin, #plasma, #vdg, davidedmundson, ngraham Reviewed By: #kwin, #plasma, #vdg, davidedmundson, ngraham Subscribers: ngraham, kwin, #vdg, #plasma, #kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D23913
This commit is contained in:
parent
0962cc661c
commit
f40638f46b
2 changed files with 4 additions and 15 deletions
|
@ -67,7 +67,7 @@ Kirigami.SwipeListItem {
|
||||||
Kirigami.Heading {
|
Kirigami.Heading {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
level: 4
|
level: 5
|
||||||
text: model.NameRole
|
text: model.NameRole
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ import QtQuick.Layouts 1.1
|
||||||
|
|
||||||
import org.kde.kcm 1.2
|
import org.kde.kcm 1.2
|
||||||
import org.kde.kconfig 1.0
|
import org.kde.kconfig 1.0
|
||||||
import org.kde.kirigami 2.8 as Kirigami
|
import org.kde.kirigami 2.10 as Kirigami
|
||||||
import org.kde.private.kcms.kwin.effects 1.0 as Private
|
import org.kde.private.kcms.kwin.effects 1.0 as Private
|
||||||
|
|
||||||
ScrollViewKCM {
|
ScrollViewKCM {
|
||||||
|
@ -98,20 +98,9 @@ ScrollViewKCM {
|
||||||
}
|
}
|
||||||
|
|
||||||
section.property: "CategoryRole"
|
section.property: "CategoryRole"
|
||||||
section.delegate:Kirigami.AbstractListItem {
|
section.delegate: Kirigami.ListSectionHeader {
|
||||||
width: effectsList.width
|
width: effectsList.width
|
||||||
|
text: section
|
||||||
backgroundColor: Kirigami.Theme.backgroundColor
|
|
||||||
Kirigami.Theme.inherit: false
|
|
||||||
Kirigami.Theme.colorSet: Kirigami.Theme.Window
|
|
||||||
|
|
||||||
hoverEnabled: false
|
|
||||||
supportsMouseEvents: false
|
|
||||||
|
|
||||||
Kirigami.Heading {
|
|
||||||
level: 2
|
|
||||||
text: section
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function findButtonGroup(name) {
|
function findButtonGroup(name) {
|
||||||
|
|
Loading…
Reference in a new issue