26 #ifndef SLIDER_TEXT_WIDGET_H 27 #define SLIDER_TEXT_WIDGET_H 69 void setName(
const QString&);
74 void init(
double min = 0.0,
double max = 100.0,
double value = 50.0);
80 void setValue(
const double,
bool emitValueChanged =
false);
93 void valueChanged(
int);
96 void textModified(
const QString&);
103 void updateLineEdit();
106 double sliderToValue(
const int);
109 int valueToSlider(
const double);
138 #endif // SLIDERTEXTWIDGET_H double max
the max real value
Definition: SliderTextWidget.h:121
QColor bgColor
the line edit bg color
Definition: SliderTextWidget.h:115
Definition: Action.cpp:36
static Value getValue(const QMap< const QtProperty *, PrivateData > &propertyMap, const QtProperty *property, const Value &defaultValue=Value())
Definition: qtpropertymanager.cpp:221
#define CAMITK_API
Definition: CamiTKAPI.h:49
double getValue() const
Get the current value.
Definition: SliderTextWidget.h:133
QLabel * label
the text label
Definition: SliderTextWidget.h:124
QSlider * slider
the slider
Definition: SliderTextWidget.h:130
This widget allows you to use a slider with a lineedit in a Dialog Box.
Definition: SliderTextWidget.h:58
double value
the current value
Definition: SliderTextWidget.h:112
double min
the min real value
Definition: SliderTextWidget.h:118
QLineEdit * lineEdit
the line edit
Definition: SliderTextWidget.h:127