Commit 6dfc5a29 authored by Dimitris Kardarakos's avatar Dimitris Kardarakos

Move todo-editor and event-editor calls into the relative views

parent 99794b71
Pipeline #3508 passed with stage
in 6 minutes and 57 seconds
......@@ -29,7 +29,6 @@ Kirigami.Page {
property date eventStartDt
property var calendar
signal editEvent(var modelData)
signal eventsUpdated
function reload()
......@@ -88,7 +87,7 @@ Kirigami.Page {
text: qsTr("Edit")
icon.name: "editor"
onTriggered: root.editEvent(model)
onTriggered: pageStack.push(eventEditor, { startdt: model.dtstart, enddt: model.dtend, uid: model.uid, eventData: model })
}
]
......
......@@ -205,7 +205,6 @@ Kirigami.ApplicationWindow {
calendar: localCalendar
onEditTask: root.pageStack.push(todoEditor, { startdt: modelData.dtstart, uid: modelData.uid, todoData: modelData })
onTasksUpdated: root.refreshNeeded()
Connections {
......@@ -223,7 +222,6 @@ Kirigami.ApplicationWindow {
EventsView {
calendar: localCalendar
onEditEvent: root.pageStack.push(eventEditor, { startdt: modelData.dtstart, enddt: modelData.dtend, uid: modelData.uid, eventData: modelData })
onEventsUpdated: root.refreshNeeded()
Connections {
......@@ -234,29 +232,6 @@ Kirigami.ApplicationWindow {
}
}
Component {
id: todoEditor
TodoEditor {
calendar: localCalendar
onTaskeditcompleted: {
root.refreshNeeded();
root.pageStack.pop(todoEditor);
}
}
}
Component {
id: eventEditor
EventEditor {
calendar: localCalendar
onEditcompleted: {
root.refreshNeeded();
root.pageStack.pop(eventEditor);
}
}
}
Component {
id: calendarInputPage
......
......@@ -29,7 +29,6 @@ Kirigami.Page {
property date todoDt
property var calendar
signal editTask(var modelData)
signal tasksUpdated
function reload()
......@@ -89,7 +88,7 @@ Kirigami.Page {
text: qsTr("Edit")
icon.name: "editor"
onTriggered: root.editTask(model)
onTriggered: pageStack.push(todoEditor, { startdt: model.dtstart, uid: model.uid, todoData: model })
}
]
......
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