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 {
|
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
|
||||||
|
|
Loading…
Reference in a new issue