Add new countdown action
This commit is contained in:
parent
1571232a79
commit
53ce7c557f
1 changed files with 12 additions and 0 deletions
12
src/Main.qml
12
src/Main.qml
|
|
@ -21,6 +21,18 @@ Kirigami.ApplicationWindow {
|
||||||
// This can also be set to an id of a Kirigami.Page
|
// This can also be set to an id of a Kirigami.Page
|
||||||
pageStack.initialPage: Kirigami.ScrollablePage {
|
pageStack.initialPage: Kirigami.ScrollablePage {
|
||||||
title: i18nc("@title", "Countdown")
|
title: i18nc("@title", "Countdown")
|
||||||
|
actions: [
|
||||||
|
Kirigami.Action {
|
||||||
|
id: addAction
|
||||||
|
icon.name: "list-add-symbolic"
|
||||||
|
text: i18nc("@action:button", "Add countdown")
|
||||||
|
onTriggered: countdownModel.append({
|
||||||
|
name: "New countdown",
|
||||||
|
description: "This was added with the add countdown button",
|
||||||
|
date: 1000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
]
|
||||||
Kirigami.CardsListView {
|
Kirigami.CardsListView {
|
||||||
id: cardsView
|
id: cardsView
|
||||||
model: countdownModel
|
model: countdownModel
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue