8import QtQuick.Controls as QQC2
9import org.kde.kirigami as Kirigami
10import org.kde.kirigamiaddons.components as Components
11import './private/' as P
22 property date value: new Date()
35 property date minimumDate
42 property date maximumDate
50 property bool autoAccept: false
54 leftPadding: undefined
55 rightPadding: undefined
56 bottomPadding: undefined
57 verticalPadding: undefined
58 horizontalPadding: undefined
62 contentItem: P.DatePicker {
64 selectedDate: root.value
65 minimumDate: root.minimumDate
66 maximumDate: root.maximumDate
69 onDatePicked: (pickedDate) => {
71 root.value = pickedDate;
77 footer: QQC2.DialogButtonBox {
82 leftPadding:
Kirigami.Units.mediumSpacing
83 rightPadding:
Kirigami.Units.mediumSpacing
84 bottomPadding:
Kirigami.Units.mediumSpacing
87 text:
i18ndc(
"kirigami-addons6",
"@action:button",
"Cancel")
88 icon.name:
"dialog-cancel"
95 QQC2.DialogButtonBox.buttonRole: QQC2.DialogButtonBox.RejectRole
99 text:
i18ndc(
"kirigami-addons6",
"@action:button",
"Select")
100 icon.name: "dialog-ok-apply"
103 root.value = datePicker.selectedDate;
108 QQC2.DialogButtonBox.buttonRole: QQC2.DialogButtonBox.AcceptRole
112 background: Components.DialogRoundedBackground {}
115 QQC2.Overlay.modal: Rectangle {
116 color:
Qt.rgba(0, 0, 0, 0.3)
119 Behavior on opacity {
121 duration:
Kirigami.Units.longDuration
122 easing.type: Easing.InOutQuad
QString i18ndc(const char *domain, const char *context, const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:45 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.