MauiKit Calendar

DayLabelsBar.qml
1// SPDX-FileCopyrightText: 2018 Christian Mollekopf, <mollekopf@kolabsys.com>
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4import QtQuick
5import QtQuick.Layouts
6import QtQuick.Controls
7
8import "dateutils.js" as DateUtils
9
10Row
11{
12 id: root
13 property date startDate
14 property int dayWidth
15 property int daysToShow
16 property Component delegate
17
18 // height: childrenRect.height
19
20 spacing: 0
21 Repeater
22 {
23 model: root.daysToShow
24 delegate: Loader
25 {
26 width: root.dayWidth
27 property date day: DateUtils.addDaysToDate(root.startDate, modelData)
28 sourceComponent: root.delegate
29 }
30 }
31}
32
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:35:11 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.