Migrate actions.main to actions (KF6)

This commit is contained in:
Florian RICHER 2024-01-01 17:48:21 +01:00
parent 6902f2a50b
commit 8484ea9c8b

View file

@ -7,16 +7,18 @@ import org.kde.kirigami 2.20 as Kirigami
Kirigami.ScrollablePage {
title: i18nc("@title", "Kountdown")
actions.main: Kirigami.Action {
id: addAction
icon.name: "list-add"
text: i18nc("@action:button", "Add kountdown")
onTriggered: kountdownModel.append({
name: "Kirigami Action added card!",
description: "Congratulations, your Kirigami Action works!",
date: 1000
})
}
actions: [
Kirigami.Action {
id: addAction
icon.name: "list-add"
text: i18nc("@action:button", "Add kountdown")
onTriggered: kountdownModel.append({
name: "Kirigami Action added card!",
description: "Congratulations, your Kirigami Action works!",
date: 1000
})
}
]
// List view for card elements