Verified Commit fa497c09 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

desktoppackage: port button to `helpfulAction` in PlaceholderMessage

This improves the consistency.
parent b911d67d
Pipeline #225834 passed with stage
in 2 minutes and 47 seconds
......@@ -185,27 +185,20 @@ Item {
Item {
objectName: "switchContainmentWarningItem"
Kirigami.PlaceholderMessage {
id: message
anchors {
centerIn: parent
verticalCenterOffset: -applyNowButton.implicitHeight - applyNowButton.anchors.topMargin
} "documentinfo"
width: parent.width - Kirigami.Units.largeSpacing * 8
anchors.centerIn: parent "documentinfo"
text: i18nd("plasma_shell_org.kde.plasma.desktop", "Layout changes must be applied before other changes can be made")
QQC2.Button {
id: applyNowButton
anchors {
top: message.bottom
topMargin: Kirigami.Units.largeSpacing
horizontalCenter: parent.horizontalCenter
helpfulAction: QQC2.Action { "dialog-ok-apply"
text: i18nd("plasma_shell_org.kde.plasma.desktop", "Apply Now")
onTriggered: saveConfig()
} "dialog-ok-apply"
text: i18nd("plasma_shell_org.kde.plasma.desktop", "Apply Now")
onClicked: saveConfig()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment