Add global drawer
This commit is contained in:
parent
728d931fcd
commit
60c5a9ec91
1 changed files with 12 additions and 0 deletions
12
src/Main.qml
12
src/Main.qml
|
|
@ -17,6 +17,18 @@ Kirigami.ApplicationWindow {
|
|||
// and provides additional context for the translators
|
||||
title: i18nc("@title:window", "Day countdown")
|
||||
|
||||
globalDrawer: Kirigami.GlobalDrawer {
|
||||
isMenu: true
|
||||
actions: [
|
||||
Kirigami.Action {
|
||||
text: i18n("Quit")
|
||||
icon.name: "application-exit-symbolic"
|
||||
shortcut: StandardKey.Quit
|
||||
onTriggered: Qt.quit()
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
// Set the first page that will be loaded when the app opens
|
||||
// This can also be set to an id of a Kirigami.Page
|
||||
pageStack.initialPage: Kirigami.ScrollablePage {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue