QtGui/qabstractslider.h Source File
Go to the documentation of this file.
42 #ifndef QABSTRACTSLIDER_H
43 #define QABSTRACTSLIDER_H
53 class QAbstractSliderPrivate;
61 Q_PROPERTY(
int singleStep READ singleStep WRITE setSingleStep)
64 Q_PROPERTY(
int sliderPosition READ sliderPosition WRITE setSliderPosition NOTIFY sliderMoved)
65 Q_PROPERTY(
bool tracking READ hasTracking WRITE setTracking)
67 Q_PROPERTY(
bool invertedAppearance READ invertedAppearance WRITE setInvertedAppearance)
68 Q_PROPERTY(
bool invertedControls READ invertedControls WRITE setInvertedControls)
69 Q_PROPERTY(
bool sliderDown READ isSliderDown WRITE setSliderDown DESIGNABLE false)
83 void setRange(
int min,
int max);
85 void setSingleStep(
int);
86 int singleStep() const;
88 void setPageStep(
int);
91 void setTracking(
bool enable);
92 bool hasTracking() const;
94 void setSliderDown(
bool);
95 bool isSliderDown() const;
97 void setSliderPosition(
int);
98 int sliderPosition() const;
100 void setInvertedAppearance(
bool);
101 bool invertedAppearance() const;
103 void setInvertedControls(
bool);
104 bool invertedControls() const;
119 void triggerAction(SliderAction action);
126 void valueChanged(
int value);
128 void sliderPressed();
129 void sliderMoved(
int position);
130 void sliderReleased();
132 void rangeChanged(
int min,
int max);
134 void actionTriggered(
int action);
139 void setRepeatAction(SliderAction action,
int thresholdTime = 500,
int repeatTime = 50);
140 SliderAction repeatAction()
const;
148 virtual void sliderChange(SliderChange change);
152 #ifndef QT_NO_WHEELEVENT
155 void changeEvent(
QEvent *e);
159 inline QT3_SUPPORT
int minValue()
const {
return minimum(); }
160 inline QT3_SUPPORT
int maxValue()
const {
return maximum(); }
161 inline QT3_SUPPORT
int lineStep()
const {
return singleStep(); }
162 inline QT3_SUPPORT
void setMinValue(
int v) { setMinimum(v); }
163 inline QT3_SUPPORT
void setMaxValue(
int v) { setMaximum(v); }
164 inline QT3_SUPPORT
void setLineStep(
int v) { setSingleStep(v); }
165 inline QT3_SUPPORT
void setSteps(
int single,
int page) { setSingleStep(single); setPageStep(page); }
166 inline QT3_SUPPORT
void addPage() { triggerAction(SliderPageStepAdd); }
167 inline QT3_SUPPORT
void subtractPage() { triggerAction(SliderPageStepSub); }
168 inline QT3_SUPPORT
void addLine() { triggerAction(SliderSingleStepAdd); }
169 inline QT3_SUPPORT
void subtractLine() { triggerAction(SliderSingleStepSub); }
184 #endif // QABSTRACTSLIDER_H
#define QT_BEGIN_NAMESPACE
GLsizei const GLfloat * value