KWidgetsAddons
kdatecombobox.h
134 * Signal if the date has been manually entered (by typing a date and losing focus, or pressing Enter)
135 * or selected by the user (using the popup selector, or up, down, page up, page down keys, or the mouse wheel).
KDateComboBox(QWidget *parent=nullptr)
Create a new KDateComboBox widget.
Definition kdatecombobox.cpp:208
void setDisplayFormat(QLocale::FormatType format)
Sets the date format to display.
Definition kdatecombobox.cpp:337
void dateEdited(const QDate &date)
Signal if the date is being manually edited by the user.
@ EditDate
Allow the user to manually edit the date in the combo line edit.
Definition kdatecombobox.h:38
void setMinimumDate(const QDate &minDate, const QString &minWarnMsg=QString())
Set the minimum allowed date.
Definition kdatecombobox.cpp:291
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 kdatecombobox.cpp:351
void setMaximumDate(const QDate &maxDate, const QString &maxWarnMsg=QString())
Set the maximum allowed date.
Definition kdatecombobox.cpp:308
void resetDateRange()
Reset the minimum and maximum date to the default values.
Definition kdatecombobox.cpp:327
QMap< QDate, QString > dateMap() const
Return the map of dates listed in the drop-down and their displayed string forms.
Definition kdatecombobox.cpp:346
virtual void assignDate(const QDate &date)
Assign the date for the widget.
Definition kdatecombobox.cpp:256
void dateChanged(const QDate &date)
Signal if the date has been changed either manually by the user or programmatically.
void dateEntered(const QDate &date)
Signal if the date has been manually entered (by typing a date and losing focus, or pressing Enter) o...
QLocale::FormatType displayFormat() const
Return the currently set date display format.
Definition kdatecombobox.cpp:332
void setDateRange(const QDate &minDate, const QDate &maxDate, const QString &minWarnMsg=QString(), const QString &maxWarnMsg=QString())
Set the valid date range to be applied by isValid().
Definition kdatecombobox.cpp:320
QComboBox(QWidget *parent)
virtual bool event(QEvent *event) override
virtual void focusInEvent(QFocusEvent *e) override
virtual void focusOutEvent(QFocusEvent *e) override
virtual void hidePopup()
virtual void keyPressEvent(QKeyEvent *e) override
virtual void mousePressEvent(QMouseEvent *e) override
virtual void resizeEvent(QResizeEvent *e) override
virtual void showPopup()
virtual void wheelEvent(QWheelEvent *e) override
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)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.