krita
KisIntSpinbox Class Reference
#include <kis_int_spinbox.h>
Detailed Description
An input widget for integer numbers, consisting of a spinbox and a dropdown slider.KisIntSpinbox combines a QSpinBox and a dropdown QSlider to make an easy to use control for setting some integer parameter.
Definition at line 73 of file kis_int_spinbox.h.
Public Slots | |
| void | setValue (int) |
| void | spinboxValueChanged (int val) |
| void | sliderValueChanged (int val) |
| void | slotTimeout () |
Signals | |
| void | valueChanged (int value) |
| void | valueChanged (int value, bool withSlider) |
| void | finishedChanging (int previous, int value) |
Public Member Functions | |
| KisIntSpinbox (QWidget *parent=0, const char *name=0) | |
| KisIntSpinbox (const QString &label, int value, QWidget *parent=0, const char *name=0) | |
| virtual | ~KisIntSpinbox () |
| int | value () const |
| void | setRange (int min, int max, int step=1) |
| void | setMinValue (int min) |
| int | minValue () const |
| void | setMaxValue (int max) |
| int | maxValue () const |
| void | setSteps (int minor, int major) |
| void | setLabel (const QString &label) |
Properties | |
| int | value |
| int | minValue |
| int | maxValue |
Constructor & Destructor Documentation
|
||||||||||||
|
Constructs an input control for integer values with base 10 and initial value 0.
Definition at line 64 of file kis_int_spinbox.cc. |
|
||||||||||||||||||||
|
Constructor It constructs a QSpinBox that allows the input of integer numbers in the range of -INT_MAX to +INT_MAX. To enforce the value being in a range, use setRange().
Definition at line 70 of file kis_int_spinbox.cc. |
|
|
Destructor.
Definition at line 154 of file kis_int_spinbox.cc. |
Member Function Documentation
|
||||||||||||
|
Emitted after the slider has been hidden, if the value was changed while it was shown.
|
|
|
|
|
|
|
|
|
Sets the maximum value.
Definition at line 144 of file kis_int_spinbox.cc. |
|
|
Sets the minimum value.
Definition at line 134 of file kis_int_spinbox.cc. |
|
||||||||||||||||
|
Definition at line 125 of file kis_int_spinbox.cc. |
|
||||||||||||
|
Sets the spacing of tickmarks for the slider.
|
|
|
Sets the value of the control.
Definition at line 159 of file kis_int_spinbox.cc. |
|
|
|
|
||||||||||||
|
Emitted every time the value changes (by calling setValue() or by user interaction).
|
|
|
Emitted every time the value changes (by calling setValue() or by user interaction).
|
The documentation for this class was generated from the following files:

