MauiKit Calendar

DateComboBox.qml
1import QtQuick
2import QtQuick.Layouts
3import QtQuick.Controls
4
5import org.mauikit.controls as Maui
6import org.mauikit.calendar as Kalendar
7
8ComboBox
9{
10 id: control
11 enabled: true
12
13 property alias selectedMonth : _picker.selectedMonth
14 property alias selectedYear: _picker.selectedYear
15 property alias selectedDay : _picker.selectedDay
16
17 property alias selectedDate : _picker.selectedDate
18
19 displayText: selectedDate.toLocaleDateString()
20
21 font.bold: true
22 font.weight: Font.Bold
23 font.family: "Monospace"
24 icon.source: "view-calendar"
25
26 signal datePicked(var date)
27
28 popupContent: Kalendar.DatePicker
29 {
30 id: _picker
31 implicitHeight: 300
32 background: null
33
34 onAccepted:
35 {
36 control.datePicked(date)
37 control.accepted()
38 control.popup.close()
39 }
40 }
41}
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.