KDEUI
ktimecombobox.cpp
Go to the documentation of this file.
QString dayPeriodText(const QTime &time, DateTimeComponentFormat format=DefaultComponentFormat) const
void setDisplayFormat(KLocale::TimeFormatOptions formatOptions)
Sets the time format to display.
Definition: ktimecombobox.cpp:413
void editTextChanged(const QString &text)
QString & append(QChar ch)
void setEditable(bool editable)
"Re-implemented" so that setEditable(true) creates a KLineEdit instead of QLineEdit.
Definition: kcombobox.cpp:386
void resetTimeRange()
Reset the minimum and maximum time to the default values.
Definition: ktimecombobox.cpp:403
text
#define mask
virtual void focusInEvent(QFocusEvent *e)
virtual void mousePressEvent(QMouseEvent *event)
Definition: ktimecombobox.cpp:521
virtual void wheelEvent(QWheelEvent *event)
Definition: ktimecombobox.cpp:526
bool isValid() const
virtual void keyPressEvent(QKeyEvent *e)
virtual void focusOutEvent(QFocusEvent *event)
Definition: ktimecombobox.cpp:504
QString formatTime(const QTime &pTime, bool includeSecs=false, bool isDuration=false) const
Show a warning box on focus out if the user enters an invalid time.
Definition: ktimecombobox.h:54
Allow the user to manually edit the time in the combo line edit.
Definition: ktimecombobox.h:51
QString i18nc(const char *ctxt, const char *text)
QString convertDigits(const QString &str, DigitSet digitSet, bool ignoreContext=false) const
void clear()
virtual void mousePressEvent(QMouseEvent *e)
void setMaximumTime(const QTime &maxTime, const QString &maxWarnMsg=QString())
Set the maximum allowed time.
Definition: ktimecombobox.cpp:375
int count() const
void append(const T &value)
void resetMinimumTime()
Reset the minimum time to the default of 00:00:00.000.
Definition: ktimecombobox.cpp:365
virtual void hidePopup()
KLocale::TimeFormatOptions displayFormat() const
Return the currently set time format.
Definition: ktimecombobox.cpp:408
static void sorry(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
Display an "Sorry" dialog.
Definition: kmessagebox.cpp:904
void activated(int index)
void setTimeListInterval(int minutes)
Set the interval between times able to be selected from the drop-down.
Definition: ktimecombobox.cpp:427
void setMinimumTime(const QTime &minTime, const QString &minWarnMsg=QString())
Set the minimum allowed time.
Definition: ktimecombobox.cpp:360
QTime addSecs(int s) const
QTime readTime(const QString &str, bool *ok=0) const
QVariant itemData(int index, int role) const
int hour() const
KTimeComboBox(QWidget *parent=0)
Create a new KTimeComboBox widget.
Definition: ktimecombobox.cpp:280
virtual void keyPressEvent(QKeyEvent *event)
Definition: ktimecombobox.cpp:479
int key() const
bool contains(QChar ch, Qt::CaseSensitivity cs) const
Allow the user to select the time from a drop-down menu.
Definition: ktimecombobox.h:52
void timeChanged(const QTime &time)
Signal if the time has been changed either manually by the user or programatically.
virtual void assignTime(const QTime &time)
Assign the time for the widget.
Definition: ktimecombobox.cpp:323
KLocale * locale()
QLineEdit * lineEdit() const
QString & replace(int position, int n, QChar after)
Definition: ktimecombobox.h:32
void resetMaximumTime()
Reset the maximum time to the default of 23:59:59.999.
Definition: ktimecombobox.cpp:380
virtual void resizeEvent(QResizeEvent *event)
Definition: ktimecombobox.cpp:536
void setInsertPolicy(InsertPolicy policy)
virtual void focusInEvent(QFocusEvent *event)
Definition: ktimecombobox.cpp:531
virtual void focusOutEvent(QFocusEvent *e)
int timeListInterval() const
Return the interval between select time list entries if set by setTimeListInterval().
int length() const
QList< QTime > timeList() const
Return the list of times able to be selected in the drop-down.
Definition: ktimecombobox.cpp:446
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
void setSizeAdjustPolicy(SizeAdjustPolicy policy)
virtual bool eventFilter(QObject *object, QEvent *event)
Re-implemented for internal reasons.
Definition: ktimecombobox.cpp:474
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Any set or entered time will be forced to one of the drop-down times.
Definition: ktimecombobox.h:53
virtual void showPopup()
virtual bool eventFilter(QObject *, QEvent *)
Re-implemented for internal reasons.
Definition: kcombobox.cpp:183
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
int secsTo(const QTime &t) const
virtual void resizeEvent(QResizeEvent *e)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.