Migrate actions.main to actions (KF6)
This commit is contained in:
parent
6902f2a50b
commit
8484ea9c8b
1 changed files with 12 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue