A utility class to have QSpinBox and QSlider synchronized. see for example InteractiveViewer (when it is used as 2D viewer)
More...
#include <SliderSpinBoxWidget.h>
|
void | valueChanged (int) |
| if the user change the value either in the slider or the spinBox, this signal is emitted with the new value as parameter. More...
|
|
A utility class to have QSpinBox and QSlider synchronized. see for example InteractiveViewer (when it is used as 2D viewer)
◆ SliderSpinBoxWidget()
camitk::SliderSpinBoxWidget::SliderSpinBoxWidget |
( |
QWidget * |
parent = nullptr | ) |
|
constructor (have to give the parent widget)
◆ ~SliderSpinBoxWidget()
camitk::SliderSpinBoxWidget::~SliderSpinBoxWidget |
( |
| ) |
|
|
overridedefault |
◆ addPageStep()
void camitk::SliderSpinBoxWidget::addPageStep |
( |
| ) |
|
add a larger number of natural steps to the value, for information exact number of added step is min(1,(max-min)/10)
◆ addSingleStep()
void camitk::SliderSpinBoxWidget::addSingleStep |
( |
| ) |
|
◆ getSlider()
QSlider* camitk::SliderSpinBoxWidget::getSlider |
( |
| ) |
|
|
inline |
◆ getSpinBox()
QSpinBox* camitk::SliderSpinBoxWidget::getSpinBox |
( |
| ) |
|
|
inline |
◆ getValue()
int camitk::SliderSpinBoxWidget::getValue |
( |
| ) |
const |
◆ setRange()
void camitk::SliderSpinBoxWidget::setRange |
( |
int |
min, |
|
|
int |
max |
|
) |
| |
◆ setValue()
void camitk::SliderSpinBoxWidget::setValue |
( |
int |
value | ) |
|
◆ sliderValueChanged
void camitk::SliderSpinBoxWidget::sliderValueChanged |
( |
int |
value | ) |
|
|
protectedslot |
any change in the slider value is connected to this slot (update the spinBox)
References slider.
◆ spinBoxValueChanged
void camitk::SliderSpinBoxWidget::spinBoxValueChanged |
( |
int |
value | ) |
|
|
protectedslot |
any change in the spinBox value is connected to this slot (update the slider)
◆ subPageStep()
void camitk::SliderSpinBoxWidget::subPageStep |
( |
| ) |
|
subtract a larger number of natural steps to the value, for information exact number of added step is min(1,(max-min)/10)
◆ subSingleStep()
void camitk::SliderSpinBoxWidget::subSingleStep |
( |
| ) |
|
◆ updateSliderValue()
void camitk::SliderSpinBoxWidget::updateSliderValue |
( |
int |
value | ) |
|
|
private |
update the slider value (block signals)
Referenced by setValue().
◆ updateSpinBoxValue()
void camitk::SliderSpinBoxWidget::updateSpinBoxValue |
( |
int |
value | ) |
|
|
private |
update the spinBox value (block signals)
References slider.
◆ valueChanged
void camitk::SliderSpinBoxWidget::valueChanged |
( |
int |
| ) |
|
|
signal |
if the user change the value either in the slider or the spinBox, this signal is emitted with the new value as parameter.
Referenced by setValue().
◆ slider
QSlider* camitk::SliderSpinBoxWidget::slider |
|
private |
◆ spinBox
QSpinBox* camitk::SliderSpinBoxWidget::spinBox |
|
private |
The documentation for this class was generated from the following files: