Port implicit default content items to use contentItem: property

See also
https://invent.kde.org/frameworks/kirigami/-/merge_requests/1338
and
https://invent.kde.org/frameworks/kirigami/-/merge_requests/1340
This commit is contained in:
ivan tkachenko 2023-11-09 00:06:14 +03:00
parent 3eb23614e0
commit 5db4263af6
No known key found for this signature in database
GPG key ID: AF72731B7C654CB3
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ Kirigami.ScrollablePage {
delegate: Kirigami.SwipeListItem { delegate: Kirigami.SwipeListItem {
RowLayout { contentItem: RowLayout {
CheckBox { CheckBox {
id: serviceCheck id: serviceCheck
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter

View file

@ -35,7 +35,7 @@ ListView {
width: parent.width width: parent.width
enabled: true enabled: true
QQC2.Label { contentItem: QQC2.Label {
text: i18n("%1 <br> <i>%2</i>", name, command) text: i18n("%1 <br> <i>%2</i>", name, command)
} }