5import org.mauikit.controls as Maui
6import org.mauikit.calendar as Kalendar
29 padding: Maui.Style.defaultPadding
34 property int from : 1999
39 property int to : 2100
44 property int selectedYear :
47 return date.getFullYear()
53 property alias columns : _yearsGrid.columns
59 signal yearSelected(var year)
61 contentItem: ScrollView
65 contentHeight: _yearsGrid.implicitHeight
66 contentWidth: availableWidth
73 columns: Math.max(3, width/80)
77 buttons: _yearsGrid.children
82 model: control.to - control.from + 1
85 property int year : control.from + modelData
86 Layout.fillWidth: true
87 Layout.maximumWidth: 80
91 checked: year === control.selectedYear
92 onClicked: control.yearSelected(year)
97 color: checked ? Maui.Theme.highlightColor : hovered ? Maui.Theme.hoverColor : "transparent"
98 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.