KWidgetsAddons
kdatetimeedit.h
406 setDateTimeRange(const QDateTime &minDateTime, const QDateTime &maxDateTime, const QString &minWarnMsg = QString(), const QString &maxWarnMsg = QString());
534 void setTimeList(QList<QTime> timeList, const QString &minWarnMsg = QString(), const QString &maxWarnMsg = QString());
void resetMinimumDateTime()
Reset the minimum date and time to the default.
Definition kdatetimeedit.cpp:397
virtual void assignDateTime(const QDateTime &dateTime)
Assign the date, time and time zone for the widget.
Definition kdatetimeedit.cpp:333
void setTimeZones(const QList< QTimeZone > &zones)
Set the time zones able to be selected.
Definition kdatetimeedit.cpp:495
void setDateMap(QMap< QDate, QString > dateMap)
Set the list of dates able to be selected from the drop-down and the string form to display for those...
Definition kdatetimeedit.cpp:455
void assignTimeZone(const QTimeZone &zone)
Assign the time zone for the widget.
Definition kdatetimeedit.cpp:381
void dateEdited(const QDate &date)
Signal if the date is being manually edited by the user.
bool isNullTime() const
Return if the current user input time is null.
Definition kdatetimeedit.cpp:305
void resetDateTimeRange()
Reset the minimum and maximum date and time to the default.
Definition kdatetimeedit.cpp:427
@ WarnOnInvalid
Show a warning on focus out if the date or time is invalid.
Definition kdatetimeedit.h:54
void dateChanged(const QDate &date)
Signal if the date has been changed either manually by the user or programmatically.
void setMinimumDateTime(const QDateTime &minDateTime, const QString &minWarnMsg=QString())
Set the minimum allowed date.
Definition kdatetimeedit.cpp:387
void timeEdited(const QTime &time)
Signal if the time is being manually edited by the user.
void timeZoneEntered(const QTimeZone &zone)
Signal if the time zone has been changed manually by the user.
void setMaximumDateTime(const QDateTime &maxDateTime, const QString &maxWarnMsg=QString())
Set the maximum allowed date.
Definition kdatetimeedit.cpp:402
QDateTime dateTime() const
Return the currently selected date, time and time zone.
Definition kdatetimeedit.cpp:258
virtual void assignTime(const QTime &time)
Assign the time for the widget.
Definition kdatetimeedit.cpp:364
QList< QLocale > calendarLocalesList() const
Returns the list of Calendar Locales displayed.
Definition kdatetimeedit.cpp:440
QList< QTime > timeList() const
Return the list of times able to be selected in the drop-down.
Definition kdatetimeedit.cpp:490
void calendarChanged(const QLocale &calendarLocale)
Signal if the Calendar Locale has been changed either manually by the user or programmatically.
QLocale::FormatType timeDisplayFormat() const
Return the currently set time format.
Definition kdatetimeedit.cpp:470
void resetMaximumDateTime()
Reset the minimum date and time to the default.
Definition kdatetimeedit.cpp:412
void dateTimeEdited(const QDateTime &dateTime)
Signal if the date or time is being manually edited by the user.
KDateTimeEdit(QWidget *parent=nullptr)
Create a new KDateTimeEdit widget.
Definition kdatetimeedit.cpp:231
void setTimeList(QList< QTime > timeList, const QString &minWarnMsg=QString(), const QString &maxWarnMsg=QString())
Set the list of times able to be selected from the drop-down.
Definition kdatetimeedit.cpp:485
void timeChanged(const QTime &time)
Signal if the time has been changed either manually by the user or programmatically.
QLocale::FormatType dateDisplayFormat() const
Return the currently set date display format.
Definition kdatetimeedit.cpp:450
void timeEntered(const QTime &time)
Signal if the time has been manually entered by the user.
QDateTime minimumDateTime() const
Return the current minimum date and time.
Definition kdatetimeedit.cpp:392
virtual void assignDate(const QDate &date)
Assign the date for the widget.
Definition kdatetimeedit.cpp:349
void setDateDisplayFormat(QLocale::FormatType format)
Sets the date format to display.
Definition kdatetimeedit.cpp:445
void setCalendarLocalesList(const QList< QLocale > &calendarLocales)
Set the list of Calendar Locales to display.
Definition kdatetimeedit.cpp:432
QDateTime maximumDateTime() const
Return the current maximum date and time.
Definition kdatetimeedit.cpp:407
void dateTimeEntered(const QDateTime &dateTime)
Signal if the date or time has been manually entered by the user.
QMap< QDate, QString > dateMap() const
Return the map of dates listed in the drop-down and their displayed string forms.
Definition kdatetimeedit.cpp:460
void setDateTimeRange(const QDateTime &minDateTime, const QDateTime &maxDateTime, const QString &minWarnMsg=QString(), const QString &maxWarnMsg=QString())
Set the minimum and maximum date and time range.
Definition kdatetimeedit.cpp:417
void setTimeListInterval(int minutes)
Set the interval between times able to be selected from the drop-down.
Definition kdatetimeedit.cpp:475
void setDateTime(const QDateTime &dateTime)
Set the currently selected date, time and time zone.
Definition kdatetimeedit.cpp:323
bool isValidDate() const
Return if the current user input date is valid.
Definition kdatetimeedit.cpp:290
void calendarEntered(const QLocale &calendarLocale)
Signal if the Calendar Locale has been manually entered by the user.
void dateTimeChanged(const QDateTime &dateTime)
Signal if the date or time has been changed either manually by the user or programmatically.
void dateEntered(const QDate &date)
Signal if the date has been manually entered by the user.
bool isNullDate() const
Return if the current user input date is null.
Definition kdatetimeedit.cpp:295
void timeZoneChanged(const QTimeZone &zone)
Signal if the time zone has been changed either manually by the user or programmatically.
QList< QTimeZone > timeZones() const
Return the list of time zones able to be selected.
Definition kdatetimeedit.cpp:503
void setTimeDisplayFormat(QLocale::FormatType format)
Sets the time format to display.
Definition kdatetimeedit.cpp:465
bool isValidTime() const
Return if the current user input time is valid.
Definition kdatetimeedit.cpp:300
FormatType
QObject(QObject *parent)
Q_FLAG(...)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
virtual bool eventFilter(QObject *watched, QEvent *event)
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
virtual bool event(QEvent *event) override
virtual void focusInEvent(QFocusEvent *event)
virtual void focusOutEvent(QFocusEvent *event)
virtual void resizeEvent(QResizeEvent *event)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:52:02 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:52:02 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.