KDEUI
ktimecombobox.cpp
KLocale::TimeFormatOptions displayFormat() const
Return the currently set time format.
Definition: ktimecombobox.cpp:408
virtual void focusInEvent(QFocusEvent *event)
Definition: ktimecombobox.cpp:531
QString dayPeriodText(const QTime &time, DateTimeComponentFormat format=DefaultComponentFormat) const
virtual void wheelEvent(QWheelEvent *event)
Definition: ktimecombobox.cpp:526
virtual void keyPressEvent(QKeyEvent *event)
Definition: ktimecombobox.cpp:479
@ ForceTime
Any set or entered time will be forced to one of the drop-down times.
Definition: ktimecombobox.h:53
QString i18nc(const char *ctxt, const char *text)
QString formatTime(const QTime &pTime, bool includeSecs=false, bool isDuration=false) const
QTime readTime(const QString &str, bool *ok=0) const
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:457
static void sorry(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
Display an "Sorry" dialog.
Definition: kmessagebox.cpp:904
QList< QTime > timeList() const
Return the list of times able to be selected in the drop-down.
Definition: ktimecombobox.cpp:446
void setDisplayFormat(KLocale::TimeFormatOptions formatOptions)
Sets the time format to display.
Definition: ktimecombobox.cpp:413
KLocale * locale()
virtual void resizeEvent(QResizeEvent *event)
Definition: ktimecombobox.cpp:536
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:385
virtual void mousePressEvent(QMouseEvent *event)
Definition: ktimecombobox.cpp:521
@ EditTime
Allow the user to manually edit the time in the combo line edit.
Definition: ktimecombobox.h:51
virtual bool eventFilter(QObject *, QEvent *)
Re-implemented for internal reasons.
Definition: kcombobox.cpp:183
@ WarnOnInvalid
Show a warning box on focus out if the user enters an invalid time.
Definition: ktimecombobox.h:54
void resetMinimumTime()
Reset the minimum time to the default of 00:00:00.000.
Definition: ktimecombobox.cpp:365
virtual void focusOutEvent(QFocusEvent *event)
Definition: ktimecombobox.cpp:504
void setTimeListInterval(int minutes)
Set the interval between times able to be selected from the drop-down.
Definition: ktimecombobox.cpp:427
QString convertDigits(const QString &str, DigitSet digitSet, bool ignoreContext=false) const
void resetTimeRange()
Reset the minimum and maximum time to the default values.
Definition: ktimecombobox.cpp:403
void setMinimumTime(const QTime &minTime, const QString &minWarnMsg=QString())
Set the minimum allowed time.
Definition: ktimecombobox.cpp:360
#define mask
void setMaximumTime(const QTime &maxTime, const QString &maxWarnMsg=QString())
Set the maximum allowed time.
Definition: ktimecombobox.cpp:375
Definition: ktimecombobox.h:33
void timeChanged(const QTime &time)
Signal if the time has been changed either manually by the user or programatically.
void setEditable(bool editable)
"Re-implemented" so that setEditable(true) creates a KLineEdit instead of QLineEdit.
Definition: kcombobox.cpp:386
virtual bool eventFilter(QObject *object, QEvent *event)
Re-implemented for internal reasons.
Definition: ktimecombobox.cpp:474
void resetMaximumTime()
Reset the maximum time to the default of 23:59:59.999.
Definition: ktimecombobox.cpp:380
virtual void assignTime(const QTime &time)
Assign the time for the widget.
Definition: ktimecombobox.cpp:323
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.