From 8484ea9c8b77a3f0fe1c028ff370bd24d76a16c1 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Mon, 1 Jan 2024 17:48:21 +0100 Subject: [PATCH] Migrate actions.main to actions (KF6) --- src/contents/ui/start_page.qml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/contents/ui/start_page.qml b/src/contents/ui/start_page.qml index fc0e923..f25417a 100644 --- a/src/contents/ui/start_page.qml +++ b/src/contents/ui/start_page.qml @@ -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