CopperSpice API  1.9.1
QAccessibleValueInterface Class Referenceabstract

Support for objects which represent a value. More...

Inherited by QAccessibleAbstractSlider, QAccessibleAbstractSpinBox, QAccessibleProgressBar

Public Methods

virtual ~QAccessibleValueInterface ()
 
virtual QVariant currentValue () const = 0
 
virtual QVariant maximumValue () const = 0
 
virtual QVariant minimumStepSize () const = 0
 
virtual QVariant minimumValue () const = 0
 
virtual void setCurrentValue (const QVariant &value) = 0
 

Detailed Description

The QAccessibleValueInterface class implements support for objects which represents a value. Examples are spinner, slider, dial and scroll bar.

Constructor & Destructor Documentation

QAccessibleValueInterface::~QAccessibleValueInterface ( )
virtual

Destroys the QAccessibleValueInterface.

Method Documentation

QVariant QAccessibleValueInterface::currentValue ( ) const
pure virtual

Returns the current value of the widget. This is usually a double or int.

See also
setCurrentValue()
QVariant QAccessibleValueInterface::maximumValue ( ) const
pure virtual

Returns the maximum value this object accepts.

See also
minimumValue(), currentValue()
QVariant QAccessibleValueInterface::minimumStepSize ( ) const
pure virtual

Returns the minimum step size for the accessible. This is the smallest increment that makes sense when changing the value. When programmatically changing the value it should always be a multiple of the minimum step size. Some tools use this value even when the setCurrentValue does not perform any action. Progress bars for example are read-only but should return their range divided by 100.

QVariant QAccessibleValueInterface::minimumValue ( ) const
pure virtual

Returns the minimum value this object accepts.

See also
maximumValue(), currentValue()
void QAccessibleValueInterface::setCurrentValue ( const QVariant value)
pure virtual

Sets the value. If the given value is out of the range of permissible values, this call will be ignored.

See also
currentValue(), minimumValue(), maximumValue()