35 #include <QtWidgets/QSpinBox> 58 void setRange(
int min,
int max) { setMin(min); setMax(max); }
61 void setValue(
int val);
64 void setAll(
int min ,
int max,
int val){ setRange(min,max); setValue(val); }
80 QSpinBox *
sb() {
return **
this; }
83 const QSpinBox *
sb()
const{
return **
this; }
Handle class for spinner components.
Definition: SpinnerHandle.h:41
undocument this line if you encounter any issues!
Definition: Any.h:37
QSpinBox * sb()
internally used utility function
Definition: SpinnerHandle.h:80
void setAll(int min, int max, int val)
sets all parameters of a spin-box
Definition: SpinnerHandle.h:64
Abstract base class for Handle classes.
Definition: GUIHandle.h:40
SpinnerHandle()
Create an empty spinner handle.
Definition: SpinnerHandle.h:46
void operator=(int val)
assigns a new value to the spin-box (equal to setValue)
Definition: SpinnerHandle.h:76
void setRange(int min, int max)
set the range of the spin-box
Definition: SpinnerHandle.h:58
#define ICLQt_API
Definition: CompatMacros.h:178
SpinnerHandle(QSpinBox *sb, GUIWidget *w)
create a new SpinnerHandle with given QSpinBox* to wrap
Definition: SpinnerHandle.h:49
const QSpinBox * sb() const
internally used utility function
Definition: SpinnerHandle.h:83