Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/labeledfslider.h
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 52 | public: | |||
---|---|---|---|---|---|
57 | * \param parent parent widget | 57 | * \param parent parent widget | ||
58 | * \param text is the text describing the slider value. If the text | 58 | * \param text is the text describing the slider value. If the text | ||
59 | * contains a '&', a buddy for the slider will be created. | 59 | * contains a '&', a buddy for the slider will be created. | ||
60 | * \param min minimum slider value | 60 | * \param min minimum slider value | ||
61 | * \param max maximum slider value | 61 | * \param max maximum slider value | ||
62 | * \param st is the step between values. | 62 | * \param st is the step between values. | ||
63 | */ | 63 | */ | ||
64 | LabeledFSlider(QWidget *parent, const QString &text, | 64 | LabeledFSlider(QWidget *parent, const QString &text, | ||
65 | float min, float max, float st); | 65 | float min, float max, float step); | ||
66 | ~LabeledFSlider(); | 66 | ~LabeledFSlider(); | ||
67 | 67 | | |||
68 | /** | 68 | /** | ||
69 | * \return the slider value. | 69 | * \return the slider value. | ||
70 | */ | 70 | */ | ||
71 | float value() const; | 71 | float value() const; | ||
72 | float step() const; | 72 | float step() const; | ||
73 | 73 | | |||
74 | public Q_SLOTS: | 74 | public Q_SLOTS: | ||
75 | 75 | | |||
76 | /** Set the slider/spinbox value */ | 76 | /** Set the slider/spinbox value */ | ||
77 | void setValue(float); | 77 | void setValue(float value); | ||
78 | void setRange(float, float); | 78 | void setRange(float min, float max); | ||
79 | void setStep(float); | 79 | void setStep(float step); | ||
80 | /** Set the unit */ | 80 | /** Set the unit */ | ||
81 | void setSuffix(const QString &text); | 81 | void setSuffix(const QString &text); | ||
82 | 82 | | |||
83 | private Q_SLOTS: | 83 | private Q_SLOTS: | ||
84 | 84 | | |||
85 | /** | 85 | /** | ||
86 | * Sync the values and emit valueChanged() | 86 | * Sync the values and emit valueChanged() | ||
87 | */ | 87 | */ | ||
Show All 23 Lines |