mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +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)
|
void _k_sliderMoved(int value)
|
||||||
{
|
{
|
||||||
spinbox->setValue(qRound(value));
|
spinbox->setValue(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
KDoubleValidator* validator;
|
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
|
* KIntNumInput combines a QSpinBox and optionally a QSlider to make an easy to use control for
|
||||||
* with a label to make an easy to use control for setting some float
|
* setting some integer parameter.
|
||||||
* parameter.
|
|
||||||
*
|
*
|
||||||
* @see KDoubleNumInput
|
* @see KDoubleNumInput
|
||||||
*/
|
*/
|
||||||
|
@ -90,7 +89,7 @@ public:
|
||||||
void setSliderEnabled(bool enabled);
|
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 single The single slider step.
|
||||||
* @param page The page slider step.
|
* @param page The page slider step.
|
||||||
|
@ -124,16 +123,15 @@ private:
|
||||||
|
|
||||||
Q_DISABLE_COPY(KIntNumInput)
|
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
|
* KDoubleNumInput combines a QDoubleSpinBox and optionally a QSlider to make an easy to use
|
||||||
* with a label to make an easy to use control for setting some float
|
* control for setting some double parameter.
|
||||||
* parameter.
|
|
||||||
*
|
*
|
||||||
* @see KIntNumInput
|
* @see KIntNumInput
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class KDEUI_EXPORT KDoubleNumInput : public QWidget
|
class KDEUI_EXPORT KDoubleNumInput : public QWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
Loading…
Add table
Reference in a new issue