Kirigami-addons
FormDateTimeDelegate.qml
58 id: root
168 visible: root.text.length > 0 && root.dateTimeDisplay === FormDateTimeDelegate.DateTimeDisplay.DateTime
187 Layout.maximumWidth: root.dateTimeDisplay === FormDateTimeDelegate.DateTimeDisplay.DateTime ? contentColumn.width / 2 : contentColumn.width
189 visible: root.dateTimeDisplay === FormDateTimeDelegate.DateTimeDisplay.DateTime || root.dateTimeDisplay === FormDateTimeDelegate.DateTimeDisplay.Date
196 return i18ndc("kirigami-addons6", "Displayed in place of the date if the selected day is today", "Today");
217 .replace('yyyy', ''); // I'll be long dead when this will break and this won't be my problem anymore
240 visible: root.text.length > 0 && root.dateTimeDisplay === FormDateTimeDelegate.DateTimeDisplay.Date
305 width: Math.min(Kirigami.Units.gridUnit * 20, root.popupParent.width - 2 * Kirigami.Units.gridUnit)
338 opacity: dateButton.hovered || timeButton.hovered || !timeButton.visible || !dateButton.visible ? 0 : 0.5
346 visible: root.dateTimeDisplay === FormDateTimeDelegate.DateTimeDisplay.DateTime || root.dateTimeDisplay === FormDateTimeDelegate.DateTimeDisplay.Time
352 Layout.maximumWidth: root.dateTimeDisplay === FormDateTimeDelegate.DateTimeDisplay.DateTime ? contentColumn.width / 2 : contentColumn.width
435 visible: root.text.length > 0 && root.dateTimeDisplay === FormDateTimeDelegate.DateTimeDisplay.Time
A base item for delegates to be used in a FormCard.
Definition AbstractFormDelegate.qml:24
FormDateTimeDelegate is a delegate for FormCard that lets the user enters either a date,...
Definition FormDateTimeDelegate.qml:53
var status
This property holds the current status message type of the text field.
Definition FormDateTimeDelegate.qml:118
date maximumDate
This property holds the maximum date (inclusive) that the user can select.
Definition FormDateTimeDelegate.qml:81
date minimumDate
This property holds the minimum date (inclusive) that the user can select.
Definition FormDateTimeDelegate.qml:75
bool readOnly
This property holds whether this delegate is readOnly or whether the user can select a new time and d...
Definition FormDateTimeDelegate.qml:93
int dateTimeDisplay
This property holds which part of the date and time selector are show to the user.
Definition FormDateTimeDelegate.qml:69
var popupParent
This property holds the parent used for the popups of this control.
Definition FormDateTimeDelegate.qml:130
string statusMessage
This property holds the current status message of the text field.
Definition FormDateTimeDelegate.qml:125
DateTimeDisplay
Enum containing the different part of the date time that can be displayed.
Definition FormDateTimeDelegate.qml:58
date initialValue
This property holds the the date to use as initial default when editing an an unset date.
Definition FormDateTimeDelegate.qml:88
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-2025 The KDE developers.
Generated on Fri Mar 28 2025 11:56:08 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 28 2025 11:56:08 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.