64 Q_PROPERTY(
int minimumValue READ minimumValue WRITE setMinimumValue)
65 Q_PROPERTY(
int maximumValue READ maximumValue WRITE setMaximumValue)
66 Q_PROPERTY(
int minimumPosition READ minimumPosition WRITE setMinimumPosition)
67 Q_PROPERTY(
int maximumPosition READ maximumPosition WRITE setMaximumPosition)
68 Q_PROPERTY(uint stepSizePosition READ stepSizePosition WRITE setStepSizePosition)
69 Q_PROPERTY(uint minimumRange READ minimumRange WRITE setMinimumRange)
70 Q_PROPERTY(uint maximumRange READ maximumRange WRITE setMaximumRange)
71 Q_PROPERTY(uint stepSizeRange READ stepSizeRange WRITE setStepSizeRange)
72 Q_PROPERTY(
bool rangeIncludeLimits READ rangeIncludeLimits WRITE setRangeIncludeLimits)
73 Q_PROPERTY(
bool symmetricMoves READ symmetricMoves WRITE setSymmetricMoves)
74 Q_PROPERTY(QString handleToolTip READ handleToolTip WRITE setHandleToolTip)
75 Q_PROPERTY(
bool useStyleSheets READ useStyleSheets WRITE setUseStyleSheets)
76 Q_PROPERTY(
float handleBorderRadius READ handleBorderRadius WRITE setHandleBorderRadius)
80 typedef QSlider Superclass;
84 explicit RangeSlider( Qt::Orientation o, QWidget* par= 0 );
93 int minimumValue()
const;
100 int maximumValue()
const;
105 int minimumPosition()
const;
106 void setMinimumPosition(
int min);
111 int maximumPosition()
const;
112 void setMaximumPosition(
int max);
117 uint stepSizePosition()
const;
118 void setStepSizePosition(uint stepSize);
123 uint minimumRange()
const;
124 void setMinimumRange(uint min);
129 uint maximumRange()
const;
130 void setMaximumRange(uint max);
135 uint stepSizeRange()
const;
136 void setStepSizeRange(uint stepSize);
142 bool rangeIncludeLimits()
const;
143 void setRangeIncludeLimits(
bool include);
148 void setPositions(
int min,
int max);
153 bool symmetricMoves()
const;
154 void setSymmetricMoves(
bool symmetry);
161 bool useStyleSheets()
const;
162 void setUseStyleSheets(
bool useStyleSheets);
169 float handleBorderRadius()
const;
170 void setHandleBorderRadius(
float radius);
177 QString handleToolTip()
const;
178 void setHandleToolTip(
const QString& toolTip);
182 bool isMinimumSliderDown()
const;
185 bool isMaximumSliderDown()
const;
232 void setMinimumValue(
int min);
240 void setMaximumValue(
int max);
249 void setValues(
int min,
int max);
252 void onRangeChanged(
int minimum,
int maximum);
260 virtual void mousePressEvent(QMouseEvent* ev);
261 virtual void mouseMoveEvent(QMouseEvent* ev);
262 virtual void mouseReleaseEvent(QMouseEvent* ev);
264 virtual void keyPressEvent(QKeyEvent* ev);
268 virtual void paintEvent(QPaintEvent* ev);
269 virtual void initMinimumSliderStyleOption(QStyleOptionSlider* option)
const;
270 virtual void initMaximumSliderStyleOption(QStyleOptionSlider* option)
const;
274 virtual bool event(QEvent* event);
277 QScopedPointer<RangeSliderPrivate> d_ptr;