AbstractSliderΒΆ

Inherited: Widget

DescriptionΒΆ

AbstractSlider provides common functionality for widgets that allow selecting a value from a range using a draggable knob. This class is intended to be inherited by concrete slider implementations.

Public MethodsΒΆ

Widget *

knob () const

int

maximum () const

int

minimum () const

int

orientation () const

void

pressed ()

void

setKnob (Widget * knob)

void

setMaximum (int maximum)

void

setMinimum (int minimum)

void

setOrientation (int orientation)

void

setValue (int value)

int

value () const

void

valueChanged (int value)

Static MethodsΒΆ

None

Methods DescriptionΒΆ

Widget * AbstractSlider::knob () const

Returns the knob widget.

See also setKnob().


int AbstractSlider::maximum () const

Returns the maximum value of the slider.

See also setMaximum().


int AbstractSlider::minimum () const

Returns the minimum value of the slider.

See also setMinimum().


int AbstractSlider::orientation () const

Returns the current orientation of the slider (Horizontal or Vertical).

See also setOrientation().


void AbstractSlider::pressed ()

Emits the pressed() signal.

Called when the slider is pressed (mouse down or touch begin).


void AbstractSlider::setKnob (Widget * knob)

Sets the knob widget.

See also knob().


void AbstractSlider::setMaximum (int maximum)

Sets the maximum value of the slider.

See also maximum().


void AbstractSlider::setMinimum (int minimum)

Sets the minimum value of the slider.

See also minimum().


void AbstractSlider::setOrientation (int orientation)

Sets the orientation of the slider.

See also orientation().


void AbstractSlider::setValue (int value)

Sets the current value of the slider.

See also value().


int AbstractSlider::value () const

Returns the current value of the slider.

See also setValue().


void AbstractSlider::valueChanged (int value)

Emits the valueChanged() signal.

Called when the slider’s value changes.