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

Add BasicHourlyView



Signed-off-by: Claudio Cambra's avatarClaudio Cambra <claudio.cambra@gmail.com>
parent c77f1b04
This diff is collapsed.
......@@ -27,7 +27,7 @@ Kirigami.Page {
property int daysToShow: 7
property bool dragDropEnabled: true
readonly property var internalHourlyView: swipeableViewLoader.item
readonly property var internalHourlyView: basicViewLoader.item
readonly property var mode: switch(daysToShow) {
case 1:
......@@ -83,6 +83,7 @@ Kirigami.Page {
Loader {
id: swipeableViewLoader
anchors.fill: parent
active: false
sourceComponent: SwipeableInternalHourlyView {
anchors.fill: parent
......@@ -95,4 +96,21 @@ Kirigami.Page {
onStartDateChanged: root.startDate = startDate
}
}
Loader {
id: basicViewLoader
anchors.fill: parent
active: true
sourceComponent: BasicInternalHourlyView {
anchors.fill: parent
daysToShow: root.daysToShow
dragDropEnabled: root.dragDropEnabled
startDate: root.startDate
currentDate: root.currentDate
openOccurrence: root.openOccurrence
onStartDateChanged: root.startDate = startDate
}
}
}
......@@ -26,6 +26,7 @@ SPDX-License-Identifier: CC0-1.0
<file alias="TodoTreeView.qml">contents/ui/MainViews/TodoTreeView.qml</file>
<file alias="TodoView.qml">contents/ui/MainViews/TodoView.qml</file>
<file alias="SwipeableInternalHourlyView.qml">contents/ui/MainViews/SwipeableInternalHourlyView.qml</file>
<file alias="BasicInternalHourlyView.qml">contents/ui/MainViews/BasicInternalHourlyView.qml</file>
<file alias="HourlyView.qml">contents/ui/MainViews/HourlyView.qml</file>
<file alias="LazyContactView.qml">contents/ui/MainViews/LazyContactView.qml</file>
<file alias="LazyMailView.qml">contents/ui/MainViews/LazyMailView.qml</file>
......
Supports Markdown
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