summaryrefslogtreecommitdiffstats
path: root/views/calendar/qml/View.qml
diff options
context:
space:
mode:
Diffstat (limited to 'views/calendar/qml/View.qml')
-rw-r--r--views/calendar/qml/View.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/views/calendar/qml/View.qml b/views/calendar/qml/View.qml
index 3fc5d021..ac446b88 100644
--- a/views/calendar/qml/View.qml
+++ b/views/calendar/qml/View.qml
@@ -120,7 +120,8 @@ RowLayout {
120 } 120 }
121 spacing: Kube.Units.smallSpacing 121 spacing: Kube.Units.smallSpacing
122 Repeater { 122 Repeater {
123 model: Kube.EntityModel { 123 model: Kube.CheckableEntityModel {
124 id: calendarModel
124 type: "calendar" 125 type: "calendar"
125 roles: ["name", "color"] 126 roles: ["name", "color"]
126 } 127 }
@@ -131,7 +132,8 @@ RowLayout {
131 spacing: Kube.Units.smallSpacing 132 spacing: Kube.Units.smallSpacing
132 Kube.CheckBox { 133 Kube.CheckBox {
133 opacity: 0.9 134 opacity: 0.9
134 checked: true 135 checked: model.checked
136 onToggled: model.checked = checked
135 } 137 }
136 Kube.Label { 138 Kube.Label {
137 text: model.name 139 text: model.name
@@ -158,5 +160,6 @@ RowLayout {
158 Layout.fillWidth: true 160 Layout.fillWidth: true
159 currentDate: root.currentDate 161 currentDate: root.currentDate
160 startDate: root.selectedDate 162 startDate: root.selectedDate
163 calendarFilter: calendarModel.checkedEntities
161 } 164 }
162} 165}