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 { Kirigami.ScrollablePage {
title: i18nc("@title", "Kountdown") title: i18nc("@title", "Kountdown")
actions.main: Kirigami.Action { actions: [
id: addAction Kirigami.Action {
icon.name: "list-add" id: addAction
text: i18nc("@action:button", "Add kountdown") icon.name: "list-add"
onTriggered: kountdownModel.append({ text: i18nc("@action:button", "Add kountdown")
name: "Kirigami Action added card!", onTriggered: kountdownModel.append({
description: "Congratulations, your Kirigami Action works!", name: "Kirigami Action added card!",
date: 1000 description: "Congratulations, your Kirigami Action works!",
}) date: 1000
} })
}
]
// List view for card elements // List view for card elements