|
|
KIntNumInput combines a QSpinBox and optionally a QSlider with a label to make an easy to use control for setting some integer parameter. This is especially nice for configuration dialogs, which can have many such combinated controls.
The slider is created only when the user specifies a range for the control using the setRange function with the slider parameter set to "true".
A special feature of KIntNumInput, designed specifically for the situation when there are several KIntNumInputs in a column, is that you can specify what portion of the control is taken by the QSpinBox (the remaining portion is used by the slider). This makes it very simple to have all the sliders in a column be the same size.
It uses KIntValidator validator class. KIntNumInput enforces the value to be in the given range, and can display it in any base between 2 and 36.
| void |
[slot]
Sets the value of the control.
| void |
[slot]
Sets the suffix to suffix.
Use QString::null to disable this feature.
Formatting has to be provided (e.g. a space separator between the
prepended value and the suffix's text has to be provided
as the first character in the suffix).
See also: QSpinBox::setSuffix(), setPrefix()
| void |
[slot]
Sets the prefix to prefix.
Use QString::null to disable this feature.
Formatting has to be provided (see above).
See also: QSpinBox::setPrefix(), setSuffix()
| void |
[slot]
sets focus to the edit widget and marks all text in if mark == true
| void |
[signal]
Emitted every time the value changes (by calling setValue() or by user interaction).
| void |
[protected virtual]
@reimplemented
Reimplemented from KNumInput
| void |
[protected]
@reimplemented
Reimplemented from QWidget