|
| SliderInt (QWidget *parent=nullptr) |
|
| SliderInt (Qt::Orientation orientation, QWidget *parent=nullptr) |
|
void | setValue (int value) |
| Sets the current value.
|
|
int | value () const |
| Gets the current value.
|
|
void | setMinimum (int min) |
| Sets the minimum value selectable with this slider.
|
|
int | minimum () const |
| Gets the minimum value selectable with this slider.
|
|
void | setMaximum (int max) |
| Sets the maximum value selectable with this slider.
|
|
int | maximum () const |
| Gets the maximum value selectable with this slider.
|
|
void | setRange (int min, int max) |
| Sets the minimum and maximum values.
|
|
| Slider (QWidget *parent=nullptr) |
|
| Slider (Qt::Orientation orientation, QWidget *parent=nullptr) |
|
void | setOrientation (Qt::Orientation orientation) |
| Sets the slider orientation.
|
|
Qt::Orientation | orientation () const |
| Gets the slider orientation.
|
|
void | setToolTipOffset (const QPoint &toolTipOffset) |
| Sets a custom tooltip offset for this Slider.
|
|
QPoint | toolTipOffset () const |
| Gets the tooltip offset for this Slider.
|
|
void | setToolTipOffsetX (int toolTipOffsetX) |
| Sets the X component for the tooltip offset for this Slider.
|
|
int | toolTipOffsetX () const |
| Gets the X component of the tooltip offset for this Slider.
|
|
void | setToolTipOffsetY (int toolTipOffsetY) |
| Sets the Y component for the tooltip offset for this Slider.
|
|
int | toolTipOffsetY () const |
| Gets the Y component of the tooltip offset for this Slider.
|
|
void | setToolTipFormatting (const QString &prefix, const QString &postFix) |
|
void | sliderIsInMoving (bool b) |
| Sets the flag that determines whether the handle is being dragged, stopping event detection.
|
|
bool | IsSliderBeingMoved () const |
| Returns whether the handle is being dragged.
|
|
QSize | minimumSizeHint () const override |
| Returns the recommended minimum size of the underlying QSlider.
|
|
QSize | sizeHint () const override |
| Returns the recommended size of the underlying QSlider.
|
|
void | setFocusProxy (QWidget *proxy) |
| Exposes the setFocusProxy function from the underlying Slider.
|
|
QWidget * | focusProxy () const |
| Exposes the focusProxy function from the underlying Slider.
|
|
void | setTracking (bool enable) |
| Exposes the setTracking function from the underlying Slider.
|
|
bool | hasTracking () const |
| Exposes the hasTracking function from the underlying Slider.
|
|
|
static void | showHoverToolTip (const QString &toolTipText, const QPoint &globalPosition, QSlider *slider, QWidget *toolTipParentWidget, int width, int height, const QPoint &toolTipOffset) |
| Shows a hover tooltip with the right positioning on top of a slider.
|
|
static int | valueFromPosition (QSlider *slider, const QPoint &pos, int width, int height, int bottom) |
| Returns the slider value at the position specified.
|
|
static void | applyMidPointStyle (Slider *slider) |
|
static void | initStaticVars (const QPoint &verticalToolTipOffset, const QPoint &horizontalToolTipOffset) |
|
static Config | loadConfig (QSettings &settings) |
|
static Config | defaultConfig () |
| Gets the default Slider style configuration.
|
|
CustomSlider * | m_slider = nullptr |
|
QString | m_toolTipPrefix |
|
QString | m_toolTipPostfix |
|
Control to display a slider for integer value input.