6import QtQuick.Controls as QQC2
7import org.kde.kirigami as Kirigami
8import org.kde.kirigamiaddons.components as Components
16 property date value: new Date()
29 property date _value: new Date()
33 contentItem: TimePicker {
35 implicitWidth: applicationWindow().width
36 minutes: root.value.getMinutes()
37 hours: root.value.getHours()
39 root._value.setHours(hours, minutes);
42 root._value.setHours(hours, minutes);
46 background: Components.DialogRoundedBackground {}
48 footer: QQC2.DialogButtonBox {
52 text:
i18ndc(
"kirigami-addons6",
"@action:button",
"Cancel")
53 icon.name: "dialog-cancel"
59 QQC2.DialogButtonBox.buttonRole: QQC2.DialogButtonBox.RejectRole
63 text:
i18ndc(
"kirigami-addons6",
"@action:button",
"Select")
64 icon.name: "dialog-ok-apply"
66 root.value = root._value;
71 QQC2.DialogButtonBox.buttonRole: QQC2.DialogButtonBox.AcceptRole
76 QQC2.Overlay.modal: Rectangle {
77 color:
Qt.rgba(0, 0, 0, 0.3)
82 duration:
Kirigami.Units.longDuration
83 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 Fri Dec 6 2024 12:05:53 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.