kcms/info: Move footer actions to header

This commit is contained in:
Oliver Beard 2023-07-09 18:44:04 +00:00 committed by Devin Lin
parent 04ea2c4453
commit 2087935c05

View file

@ -19,6 +19,14 @@ KCM.SimpleKCM {
rightPadding: 0
Kirigami.Theme.colorSet: Kirigami.Theme.Window
actions: [
Kirigami.Action {
icon.name: "edit-copy"
text: i18nc("@action:button", "Copy")
onTriggered: kcm.copyInfoToClipboard()
}
]
ColumnLayout {
width: parent.width
spacing: 0
@ -133,16 +141,4 @@ KCM.SimpleKCM {
}
}
}
footer: RowLayout {
Item {
Layout.fillWidth: true
}
Controls.Button {
text: i18n("Copy to clipboard")
icon.name: "edit-copy"
onClicked: kcm.copyInfoToClipboard()
}
}
}