kalarm/lib
spinbox2.h
Go to the documentation of this file.
126 virtual QValidator::State validate(QString&, int& /*pos*/) const { return QValidator::Acceptable; }
290 virtual void resizeEvent(QResizeEvent* e) { owner->spinboxResized(e); SpinBox::resizeEvent(e); }
virtual void setEnabled(bool enabled)
Sets whether the widget is enabled.
Definition: spinbox2.cpp:129
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
void addSingle()
Increments the current value by adding the unshifted step increment for the right-hand spin buttons...
Definition: spinbox2.h:206
Definition: spinbox2_p.h:67
QRect down2Rect() const
Returns the geometry of the left-hand "down" button.
Definition: spinbox2.cpp:148
void setSuffix(const QString &text)
Sets the suffix which is prepended to the start of the displayed text.
Definition: spinbox2.h:96
QRect up2Rect() const
Returns the geometry of the left-hand "up" button.
Definition: spinbox2.cpp:143
int pageStep() const
Returns the unshifted step increment for the left-hand spin buttons, i.e.
Definition: spinbox2.h:169
QString cleanText() const
Returns the spin box's text with no prefix(), suffix() or leading or trailing whitespace.
Definition: spinbox2.h:98
void setSteps(int line, int page)
Sets the unshifted step increments for the two pairs of spin buttons, i.e.
Definition: spinbox2.cpp:162
typedef Alignment
int singleShiftStep() const
Returns the shifted step increment for the right-hand spin buttons, i.e.
Definition: spinbox2.h:164
void subtractPage()
Decrements the current value by subtracting the unshifted step increment for the left-hand spin butto...
Definition: spinbox2.h:202
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
bool reverseButtons() const
Returns whether the spin button pairs will be reversed for a right-to-left language.
Definition: spinbox2.h:85
enabled
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 subtractSingle()
Decrements the current value by subtracting the unshifted step increment for the right-hand spin butt...
Definition: spinbox2.h:210
void setButtonSymbols(QSpinBox::ButtonSymbols)
Sets the button symbols to use (arrows or plus/minus).
Definition: spinbox2.cpp:194
virtual void pageDown()
Decrements the current value by subtracting the unshifted step increment for the left-hand spin butto...
Definition: spinbox2.h:228
void valueChanged(int value)
Signal which is emitted whenever the value of the spin box changes.
virtual void setReadOnly(bool readOnly)
Sets whether the spin box can be changed by the user.
Definition: spinbox2.cpp:109
void addPage()
Increments the current value by adding the unshifted step increment for the left-hand spin buttons...
Definition: spinbox2.h:198
virtual void stepBy(int increment)
Increments the current value by adding the unshifted increment for the right-hand spin buttons...
Definition: spinbox2.h:216
QPoint pos() const
QSpinBox::ButtonSymbols buttonSymbols() const
Returns the button symbols currently in use (arrows or plus/minus).
Definition: spinbox2.h:123
virtual void pageUp()
Increments the current value by adding the unshifted step increment for the left-hand spin buttons...
Definition: spinbox2.h:224
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
int singleStep() const
Returns the unshifted step increment for the right-hand spin buttons, i.e.
Definition: spinbox2.h:159
virtual QString textFromValue(int value) const
virtual void setMinimum(int val)
Sets the minimum value of the spin box.
Definition: spinbox2.cpp:207
void setRange(int minValue, int maxValue)
Sets the minimum and maximum values of the spin box.
Definition: spinbox2.h:140
int bound(int val) const
Returns the specified value clamped to the range of the spin box.
Definition: spinbox2.cpp:202
void setSelectOnStep(bool sel)
Sets whether the spin box value text should be selected when its value is stepped.
Definition: spinbox2.h:79
int pageShiftStep() const
Returns the shifted step increment for the left-hand spin buttons, i.e.
Definition: spinbox2.h:174
virtual int valueFromText(const QString &text) const
virtual void resizeEvent(QResizeEvent *event)
QRect downRect() const
Returns the geometry of the right-hand "down" button.
Definition: spinbox2.h:149
void setPrefix(const QString &text)
Sets the prefix which is prepended to the start of the displayed text.
Definition: spinbox2.h:94
void setSingleStep(int step)
Sets the unshifted step increment for the right-hand spin buttons, i.e.
Definition: spinbox2.cpp:153
QString specialValueText() const
Returns the special-value text which, if non-null, is displayed instead of a numeric value when the c...
Definition: spinbox2.h:107
virtual QValidator::State validate(QString &, int &) const
Determine whether the current input is valid.
Definition: spinbox2.h:126
virtual void setMaximum(int val)
Sets the maximum value of the spin box.
Definition: spinbox2.cpp:214
virtual void resizeEvent(QResizeEvent *event)
QObject * parent() const
Definition: spinbox2_p.h:38
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.