KWidgetsAddons
ktimecombobox.h
42 WarnOnInvalid = 0x0008, /**< Show a warning box on focus out if the user enters an invalid time */
137 void setTimeRange(const QTime &minTime, const QTime &maxTime, const QString &minWarnMsg = QString(), const QString &maxWarnMsg = QString());
296 void setTimeList(QList<QTime> timeList, const QString &minWarnMsg = QString(), const QString &maxWarnMsg = QString());
KTimeComboBox(QWidget *parent=nullptr)
Create a new KTimeComboBox widget.
Definition ktimecombobox.cpp:264
void setTimeListInterval(int minutes)
Set the interval between times able to be selected from the drop-down.
Definition ktimecombobox.cpp:407
@ ForceTime
Any set or entered time will be forced to one of the drop-down times.
Definition ktimecombobox.h:41
@ WarnOnInvalid
Show a warning box on focus out if the user enters an invalid time.
Definition ktimecombobox.h:42
@ EditTime
Allow the user to manually edit the time in the combo line edit.
Definition ktimecombobox.h:39
QLocale::FormatType displayFormat() const
Return the currently set time format.
Definition ktimecombobox.cpp:388
void resetMinimumTime()
Reset the minimum time to the default of 00:00:00.000.
Definition ktimecombobox.cpp:346
void setMaximumTime(const QTime &maxTime, const QString &maxWarnMsg=QString())
Set the maximum allowed time.
Definition ktimecombobox.cpp:356
void resetMaximumTime()
Reset the maximum time to the default of 23:59:59.999.
Definition ktimecombobox.cpp:361
virtual void assignTime(const QTime &time)
Assign the time for the widget.
Definition ktimecombobox.cpp:306
void resetTimeRange()
Reset the minimum and maximum time to the default values.
Definition ktimecombobox.cpp:383
void setTimeRange(const QTime &minTime, const QTime &maxTime, const QString &minWarnMsg=QString(), const QString &maxWarnMsg=QString())
Set the minimum and maximum time range.
Definition ktimecombobox.cpp:366
void timeEntered(const QTime &time)
Signal if the time has been manually entered or selected by the user.
void setDisplayFormat(QLocale::FormatType format)
Sets the time format to display.
Definition ktimecombobox.cpp:393
QList< QTime > timeList() const
Return the list of times able to be selected in the drop-down.
Definition ktimecombobox.cpp:426
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 ktimecombobox.cpp:438
void setMinimumTime(const QTime &minTime, const QString &minWarnMsg=QString())
Set the minimum allowed time.
Definition ktimecombobox.cpp:341
void timeChanged(const QTime &time)
Signal if the time has been changed either manually by the user or programmatically.
void timeEdited(const QTime &time)
Signal if the time is being manually edited by the user.
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 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.