Warning, /maui/mauikit-calendar/src/controls.6/DayLabelsBar.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2018 Christian Mollekopf, <mollekopf@kolabsys.com>
0002 // SPDX-License-Identifier: GPL-2.0-or-later
0003 
0004 import QtQuick 2.4
0005 import QtQuick.Layouts 1.1
0006 import QtQuick.Controls 2.2
0007 
0008 import "dateutils.js" as DateUtils
0009 
0010 Row
0011 {
0012     id: root
0013     property date startDate
0014     property int dayWidth
0015     property int daysToShow
0016     property Component delegate
0017 
0018 //    height: childrenRect.height
0019 
0020     spacing: 0
0021     Repeater
0022     {
0023         model: root.daysToShow
0024         delegate: Loader
0025         {
0026             width: root.dayWidth
0027             property date day: DateUtils.addDaysToDate(root.startDate, modelData)
0028             sourceComponent: root.delegate
0029         }
0030     }
0031 }
0032