class KDoubleNumInput

An input control for real numbers, consisting of a spinbox and a slider. More...

Definition#include <knuminput.h>
InheritsKNumInput
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Slots

Signals

Protected Methods

Protected Members


Detailed Description

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.

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 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.

void  setValue (double)

[slot]

Sets the value of the control.

void  setSuffix (const QString &suffix)

[slot]

Sets the suffix to be displayed to suffix. Use QString::null to disable this feature. Note that the suffix is attached to the value without any spacing. So if you prefer to display a space separator, set suffix to something like " cm".

void  setPrefix (const QString &prefix)

[slot]

Sets the prefix to be displayed to prefix. Use QString::null to disable this feature. Note that the prefix is attached to the value without any spacing.

void  valueChanged (double)

[signal]

Emitted every time the value changes (by calling setValue() or by user interaction).

void  doLayout ()

[protected virtual]

@reimplemented

Reimplemented from KNumInput

void  resizeEvent ( QResizeEvent * )

[protected]

@reimplemented

Reimplemented from QWidget


Generated by: ssk@tauon.ph.unimelb.EDU.AU on Wed May 23 04:29:58 2001, using kdoc 2.0a35.