[kcmkwin/kwinrules] Port OverlaySheet headers to use title: property

This was added to Kirigami in
https://invent.kde.org/frameworks/kirigami/-/merge_requests/314
and simplifies and standardizes the creation of simple text-based
headers in OverlaySheet. This commit ports the KWin Rules KCM to
use it.
This commit is contained in:
Nate Graham 2021-07-27 15:17:41 -06:00
parent beedf2be71
commit 9f00c29c67

View file

@ -143,9 +143,9 @@ ScrollViewKCM {
Kirigami.OverlaySheet {
id: errorSheet
header: Kirigami.Heading {
text: i18n("Error")
}
title: i18n("Error")
Kirigami.Heading {
id: errorLabel
level: 3
@ -159,9 +159,8 @@ ScrollViewKCM {
parent: view
header: Kirigami.Heading {
text: i18n("Add property to the rule")
}
title: i18n("Add property to the rule")
footer: Kirigami.SearchField {
id: searchField
horizontalAlignment: Text.AlignLeft