Commit ab2d05c1 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Calendar sources sheet now a dialog window

parent 6580ec47
Pipeline #130513 passed with stage
in 1 minute and 8 seconds
......@@ -125,14 +125,22 @@ Kirigami.Page {
}
}
Component {
id: addCalendarOverlay
Kirigami.OverlaySheet {
id: addCalendarPage
Kirigami.ScrollablePage {
id: overlay
parent: sourcesSettingsPage.Controls.Overlay.overlay
header: Kirigami.Heading {
level: 2
text: i18n("Add New Calendar Source")
title: i18n("Add New Calendar Source")
footer: Controls.DialogButtonBox {
Kirigami.Theme.inherit: false
Kirigami.Theme.colorSet: Kirigami.Theme.Window
standardButtons: Controls.DialogButtonBox.Close
onRejected: closeDialog()
background: Rectangle {
color: Kirigami.Theme.backgroundColor
}
}
ListView {
implicitWidth: Kirigami.Units.gridUnit * 20
model: AgentConfiguration.availableAgents
......@@ -156,10 +164,7 @@ Kirigami.Page {
Layout.alignment: Qt.AlignRight
text: i18n("Add New Calendar Source…")
icon.name: "list-add"
onClicked: {
const item = addCalendarOverlay.createObject(addCalendarOverlay, sourcesSettingsPage.Controls.Overlay.overlay)
item.open();
}
onClicked: pageStack.pushDialogLayer(addCalendarPage)
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment