42 #ifndef QABSTRACTSLIDER_P_H 43 #define QABSTRACTSLIDER_P_H 56 #include "QtCore/qbasictimer.h" 57 #include "QtCore/qelapsedtimer.h" 58 #include "private/qwidget_p.h" 91 #ifdef QT_KEYPAD_NAVIGATION 102 qreal repeatMultiplier;
114 #ifdef QT_KEYPAD_NAVIGATION 120 virtual int bound(
int val)
const {
return qMax(minimum,
qMin(maximum, val)); }
123 int newValue = value +
add;
124 if (add > 0 && newValue < value)
126 else if (add < 0 && newValue > value)
134 if ((position > pressValue - 2 * pageStep) && (position < pressValue + 2 *
pageStep)) {
136 q->setSliderPosition(pressValue);
140 q->triggerAction(repeatAction);
147 #endif // QABSTRACTSLIDER_P_H
int effectiveSingleStep() const
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
#define QT_END_NAMESPACE
This macro expands to.
bool scrollByDelta(Qt::Orientation orientation, Qt::KeyboardModifiers modifiers, int delta)
void setAdjustedSliderPosition(int position)
QBasicTimer repeatActionTimer
The QElapsedTimer class provides a fast way to calculate elapsed times.
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
~QAbstractSliderPrivate()
#define QT_BEGIN_NAMESPACE
This macro expands to.
int overflowSafeAdd(int add) const
QAbstractSlider::SliderAction repeatAction
#define Q_DECLARE_PUBLIC(Class)
The QAbstractSlider class provides an integer value within a range.
virtual int bound(int val) const
The QBasicTimer class provides timer events for objects.
Qt::Orientation orientation
void setSteps(int single, int page)