#include <SliderSpin.h>
◆ SliderSpin() [1/2]
SliderSpin::SliderSpin |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ SliderSpin() [2/2]
SliderSpin::SliderSpin |
( |
int |
min = 0 , |
|
|
int |
max = 100 , |
|
|
QString |
suffix = "" , |
|
|
QString |
prefix = "" , |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
SliderSpin Construct a slider + spinbox obect.
Constructs both of the QSlider and the QSpinBox widget and add them to a QGridLayout. The Slider will take 80% of the horizontal space. The SpinBox will take the remaining 20%.
- Parameters
-
min | The minimum value (int). |
max | The maximum value (int). |
suffix | A suffix to append to the QSpinBox. |
prefix | A prefix to prepend to the QSpinBox. |
parent | The parent. (usually null since this widget will be in a layout). |
References _spinbox, and setRange().
◆ setEnabled()
void SliderSpin::setEnabled |
( |
bool |
state | ) |
|
◆ setPrefix()
void SliderSpin::setPrefix |
( |
const QString & |
prefix | ) |
|
setPrefix Sets the prefix of the QSpinBox.
- Parameters
-
References _spinbox.
◆ setRange()
void SliderSpin::setRange |
( |
int |
min, |
|
|
int |
max |
|
) |
| |
setRange Sets the range of the slider and spin box.
- Parameters
-
min | Minimum value (int). |
max | Maximum value (int). |
References _slider, and _spinbox.
Referenced by SliderSpin().
◆ setSuffix()
void SliderSpin::setSuffix |
( |
const QString & |
suffix | ) |
|
setSuffix Sets the suffix of the QSpinBox.
- Parameters
-
References _spinbox.
◆ setValue()
void SliderSpin::setValue |
( |
int |
value | ) |
|
setValue Sets the current value of both the QSlider and the QSpinBox.
- Parameters
-
References _slider, and _spinbox.
◆ specialValue()
int SliderSpin::specialValue |
( |
| ) |
const |
◆ value()
int SliderSpin::value |
( |
| ) |
const |
◆ valueChanged
void SliderSpin::valueChanged |
( |
int |
value | ) |
|
|
signal |
◆ _layout
QGridLayout* SliderSpin::_layout |
|
private |
The GridLayout this widget uses.
Referenced by SliderSpin().
◆ _slider
QSlider* SliderSpin::_slider |
|
private |
◆ _spinbox
QSpinBox* SliderSpin::_spinbox |
|
private |
The documentation for this class was generated from the following files: