kalarm/lib
timespinbox.cpp
Go to the documentation of this file.
77 return i18nc("@info:whatsthis", "Press the Shift key while clicking the spin buttons to adjust the time by a larger step (6 hours / 5 minutes).");
TimeSpinBox(bool use24hour, QWidget *parent=0)
Constructor for a wrapping time spin box which can be used to enter a time of day.
Definition: timespinbox.cpp:43
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void setSpecialValueText(const QString &text)
Sets the special-value text which, if non-null, is displayed instead of a numeric value when the curr...
Definition: spinbox2.h:103
QString text() const
Returns the spin box's text, including any prefix() and suffix().
Definition: spinbox2.h:88
int width() const
void setValid(bool)
Sets the spin box as holding a valid or invalid value.
Definition: timespinbox.cpp:172
virtual QByteArray text(quint32 serialNumber) const =0
QString cleanText() const
Returns the spin box's text with no prefix(), suffix() or leading or trailing whitespace.
Definition: spinbox2.h:98
bool isValid() const
Returns true if the spin box holds a valid value.
Definition: timespinbox.cpp:237
void setWrapping(bool on)
Sets whether it is possible to step the value from the highest value to the lowest value and vice ver...
Definition: spinbox2.cpp:137
void setReverseWithLayout(bool reverse)
Sets whether the spin button pairs should be reversed for a right-to-left language.
Definition: spinbox2.cpp:119
void setShiftSteps(int line, int page)
Sets the shifted step increments for the two pairs of spin buttons, i.e.
Definition: spinbox2.cpp:178
void valueChanged(int value)
Signal which is emitted whenever the value of the spin box changes.
virtual void stepBy(int increment)
Increments the current value by adding the unshifted increment for the right-hand spin buttons...
Definition: spinbox2.h:216
bool isEmpty() const
QString trimmed() const
virtual void setMinimum(int minutes)
Sets the maximum value which can be held in the spin box.
Definition: timespinbox.cpp:194
virtual void stepBy(int increment)
Called whenever the user triggers a step, to adjust the value of the spin box.
Definition: timespinbox.cpp:229
bool wrapping() const
Returns whether it is possible to step the value from the highest value to the lowest value and vice ...
Definition: spinbox2.h:116
const QFont & font() const
virtual void setMinimum(int val)
Sets the minimum value of the spin box.
Definition: spinbox2.cpp:207
int width(const QString &text, int len) const
virtual QValidator::State validate(QString &, int &pos) const
Determine whether the current input is valid.
Definition: timespinbox.cpp:266
void setSelectOnStep(bool sel)
Sets whether the spin box value text should be selected when its value is stepped.
Definition: spinbox2.h:79
QString mid(int position, int n) const
virtual int valueFromText(const QString &) const
Definition: timespinbox.cpp:106
QString & sprintf(const char *cformat,...)
int height() const
int length() const
QString left(int n) const
static QString shiftWhatsThis()
Returns a text describing use of the shift key as an accelerator for the spin buttons, designed for incorporation into WhatsThis texts.
Definition: timespinbox.cpp:75
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
uint toUInt(bool *ok, int base) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:35:02 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:35:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.