mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdeui: KIntValidator and KDoubleValidator review
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
1332872ba6
commit
de27e20efc
2 changed files with 9 additions and 11 deletions
|
@ -242,7 +242,7 @@ public:
|
|||
|
||||
void _k_sliderMoved(int value)
|
||||
{
|
||||
spinbox->setValue(qRound(value));
|
||||
spinbox->setValue(value);
|
||||
}
|
||||
|
||||
KDoubleValidator* validator;
|
||||
|
|
|
@ -31,11 +31,10 @@ class KDoubleNumInputPrivate;
|
|||
|
||||
|
||||
/**
|
||||
* @short An input control for numbers with different base.
|
||||
* @short An input control for numbers with base 10.
|
||||
*
|
||||
* KIntNumInput combines a QSpinBox and optionally a QSlider
|
||||
* with a label to make an easy to use control for setting some float
|
||||
* parameter.
|
||||
* KIntNumInput combines a QSpinBox and optionally a QSlider to make an easy to use control for
|
||||
* setting some integer parameter.
|
||||
*
|
||||
* @see KDoubleNumInput
|
||||
*/
|
||||
|
@ -90,7 +89,7 @@ public:
|
|||
void setSliderEnabled(bool enabled);
|
||||
|
||||
/**
|
||||
* Sets the spacing of tickmarks for the slider.
|
||||
* Sets the steps for the slider.
|
||||
*
|
||||
* @param single The single slider step.
|
||||
* @param page The page slider step.
|
||||
|
@ -124,16 +123,15 @@ private:
|
|||
|
||||
Q_DISABLE_COPY(KIntNumInput)
|
||||
};
|
||||
|
||||
/**
|
||||
* @short An input control for real numbers.
|
||||
* @short An input control for double numbers.
|
||||
*
|
||||
* KDoubleNumInput combines a QSpinBox and optionally a QSlider
|
||||
* with a label to make an easy to use control for setting some float
|
||||
* parameter.
|
||||
* KDoubleNumInput combines a QDoubleSpinBox and optionally a QSlider to make an easy to use
|
||||
* control for setting some double parameter.
|
||||
*
|
||||
* @see KIntNumInput
|
||||
*/
|
||||
|
||||
class KDEUI_EXPORT KDoubleNumInput : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
Loading…
Add table
Reference in a new issue