|
|
KDoubleNumInput combines a QSpinBox and optionally a QSlider with a label to make an easy to use control for setting some float parameter. This is especially nice for configuration dialogs, which can have many such combinated controls.
A special feature of KDoubleNumInput, designed specifically for the situation when there are several KDoubleNumInputs 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 KDoubleValidator validator class. KDoubleNumInput enforces the value to be in the given range.
|
Constructor
Parameters:
value | initial value for the control |
parent | parent QWidget |
name | internal name for this widget |
~ |
[virtual]
destructor
|
Constructor
put it below other KNumInput
Parameters:
value | initial value for the control |
parent | parent QWidget |
name | internal name for this widget |
QSize |
[const virtual]
This method returns the minimum size necessary to display the control. The minimum size is enough to show all the labels in the current font (font change may invalidate the return value).
Returns: the minimum size necessary to show the control
double |
[const]
Returns: the current value
void |
Parameters:
lower | lower bound on range |
upper | upper bound on range |
step | step size for the QSlider |
void |
the Format string that should be used to display the double value.
Parameters:
format | uses the same format as QString::sprintf(). |
void |
Sets the special value text. If set, the SpinBox will display this text instead of the numeric value whenever the current value is equal to minVal(). Typically this is used for indicating that the choice has a special (default) meaning.
void |
[virtual]
reimplemented for internal reasons.
Reimplemented from KNumInput
void |
[slot]
Sets the value of the control.
void |
[slot]
sets the Suffix
Parameters:
suffix | the suffix that should be used. QString::null to disable |
void |
[slot]
sets the Prefix
Parameters:
prefix | the prefix that should be used. QString::null to disable |
Generated by: root@porky.devel.redhat.com on Wed May 10 08:56:43 2000, using kdoc 2.0a35. |