5import org.mauikit.controls as Maui
6import org.mauikit.calendar as Kalendar
8import "dateutils.js" as DateUtils
51 property bool compact :
false
56 readonly
property alias model : _monthModel
61 property alias year: _monthModel.year
66 property alias month : _monthModel.month
72 signal dateClicked(var date)
78 signal dateRightClicked(var date)
80 title : _monthModel.monthName(control.month)
82 padding: control.compact ?
Maui.Style.space.small :
Maui.Style.defaultPadding
91 contentItem: GridLayout
98 columnSpacing: control.compact ? 0 :
Maui.Style.space.small
99 rowSpacing: control.compact ? 0 :
Maui.Style.space.small
103 buttons: _daysGrid.children
112 Maui.Theme.colorSet:
Maui.Theme.View
113 Maui.Theme.inherit:
false
115 Layout.fillWidth:
true
116 Layout.fillHeight:
true
120 highlighted: model.isToday
123 checked: model.isToday
125 opacity: sameMonth ? 1 : 0.7
127 text: model.dayNumber
129 font.bold: model.isToday
130 font.weight: checked ? Font.Bold : Font.Normal
131 font.pointSize: control.compact ?
Maui.Style.fontSizes.tiny :
Maui.Style.fontSizes.medium
133 onClicked: control.dateClicked(model.date)
135 background: Rectangle
138 color: checked || pressed ?
Maui.Theme.highlightColor : hovered ?
Maui.Theme.hoverColor :
"transparent"
139 radius:
Maui.Style.radiusV
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:37 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.