CopperSpice API  1.9.2
QAccessibleWidget Class Reference

Implements the QAccessibleInterface for QWidgets. More...

Inheritance diagram for QAccessibleWidget:
QAccessibleObject QAccessibleActionInterface QAccessibleInterface

Public Methods

 QAccessibleWidget (QWidget *widget, QAccessible::Role role=QAccessible::Client, const QString &name=QString ())
 
QStringList actionNames () const override
 
QColor backgroundColor () const override
 
QAccessibleInterfacechild (int index) const override
 
int childCount () const override
 
void doAction (const QString &actionName) override
 
QAccessibleInterfacefocusChild () const override
 
QColor foregroundColor () const override
 
int indexOfChild (const QAccessibleInterface *child) const override
 
void * interface_cast (QAccessible::InterfaceType type) override
 
bool isValid () const override
 
QStringList keyBindingsForAction (const QString &actionName) const override
 
QAccessibleInterfaceparent () const override
 
QRect rect () const override
 
QVector< QPair< QAccessibleInterface *, QAccessible::Relation > > relations (QAccessible::Relation match=QAccessible::AllRelations) const override
 
QAccessible::Role role () const override
 
QAccessible::State state () const override
 
QString text (QAccessible::Text text) const override
 
QWindowwindow () const override
 
- Public Methods inherited from QAccessibleObject
 QAccessibleObject (QObject *object)
 
QAccessibleInterfacechildAt (int x, int y) const override
 
bool isValid () const override
 
QObjectobject () const override
 
QRect rect () const override
 
void setText (QAccessible::Text text, const QString &str) override
 
- Public Methods inherited from QAccessibleInterface
QAccessibleActionInterfaceactionInterface ()
 
virtual QColor backgroundColor () const
 
virtual QAccessibleInterface * child (int index) const = 0
 
virtual QAccessibleInterface * childAt (int x, int y) const = 0
 
virtual int childCount () const = 0
 
virtual QAccessibleInterface * focusChild () const
 
virtual QColor foregroundColor () const
 
virtual int indexOfChild (const QAccessibleInterface *child) const = 0
 
virtual void * interface_cast (QAccessible::InterfaceType type)
 
virtual bool isValid () const = 0
 
virtual QObjectobject () const = 0
 
virtual QAccessibleInterface * parent () const = 0
 
virtual QRect rect () const = 0
 
virtual QVector< QPair< QAccessibleInterface *, QAccessible::Relation > > relations (QAccessible::Relation match=QAccessible::AllRelations) const
 
virtual QAccessible::Role role () const = 0
 
virtual void setText (QAccessible::Text t, const QString &text) = 0
 
virtual QAccessible::State state () const = 0
 
QAccessibleTableCellInterfacetableCellInterface ()
 
QAccessibleTableInterfacetableInterface ()
 
virtual QString text (QAccessible::Text t) const = 0
 
QAccessibleTextInterfacetextInterface ()
 
QAccessibleValueInterfacevalueInterface ()
 
virtual QWindowwindow () const
 
- Public Methods inherited from QAccessibleActionInterface
virtual ~QAccessibleActionInterface ()
 
virtual QString localizedActionDescription (const QString &name) const
 
virtual QString localizedActionName (const QString &name) const
 

Protected Methods

 ~QAccessibleWidget ()
 
void addControllingSignal (const QString &signal)
 
QObjectparentObject () const
 
QWidgetwidget () const
 
- Protected Methods inherited from QAccessibleObject
virtual ~QAccessibleObject ()
 
- Protected Methods inherited from QAccessibleInterface
virtual ~QAccessibleInterface ()
 

Additional Inherited Members

- Static Public Methods inherited from QAccessibleActionInterface
static const QStringdecreaseAction ()
 
static const QStringincreaseAction ()
 
static QString nextPageAction ()
 
static const QStringpressAction ()
 
static QString previousPageAction ()
 
static QString scrollDownAction ()
 
static QString scrollLeftAction ()
 
static QString scrollRightAction ()
 
static QString scrollUpAction ()
 
static const QStringsetFocusAction ()
 
static const QStringshowMenuAction ()
 
static const QStringtoggleAction ()
 

Detailed Description

The QAccessibleWidget class implements the QAccessibleInterface for QWidgets. This class can be used as a base class for custom implementations of QAccessibleInterfaces which provide information about widget objects. Controlling signals can be added with addControllingSignal() and other methods exist to set the interface implementation. Refer to setValue(), setDescription(), setAccelerator(), and setHelp().

See also
QAccessible, QAccessibleObject

Constructor & Destructor Documentation

QAccessibleWidget::QAccessibleWidget ( QWidget widget,
QAccessible::Role  role = QAccessible::Client,
const QString name = QString() 
)
explicit

Creates a QAccessibleWidget object using the given widget. The parameters role and name are optional.

QAccessibleWidget::~QAccessibleWidget ( )
protected

Destroys this object.

Method Documentation

QStringList QAccessibleWidget::actionNames ( ) const
overridevirtual
void QAccessibleWidget::addControllingSignal ( const QString signal)
protected

Registers signal as a controlling signal. An object is a Controller to any other object connected to a controlling signal.

QColor QAccessibleWidget::backgroundColor ( ) const
override
QAccessibleInterface * QAccessibleWidget::child ( int  index) const
override

Reimplemented from QAccessibleInterface::child()

int QAccessibleWidget::childCount ( ) const
override
void QAccessibleWidget::doAction ( const QString actionName)
overridevirtual
QAccessibleInterface * QAccessibleWidget::focusChild ( ) const
override
QColor QAccessibleWidget::foregroundColor ( ) const
override
int QAccessibleWidget::indexOfChild ( const QAccessibleInterface child) const
override
void * QAccessibleWidget::interface_cast ( QAccessible::InterfaceType  type)
override
bool QAccessibleWidget::isValid ( ) const
override

Reimplemented from QAccessibleObject::isValid()

QStringList QAccessibleWidget::keyBindingsForAction ( const QString actionName) const
overridevirtual
QAccessibleInterface * QAccessibleWidget::parent ( ) const
override

Reimplemented from QAccessibleInterface::parent()

QObject * QAccessibleWidget::parentObject ( ) const
protected

Returns the parent object. This is either the parent widget or qApp for top level widgets.

QRect QAccessibleWidget::rect ( ) const
override

Reimplemented from QAccessibleObject::rect()

QVector< QPair< QAccessibleInterface *, QAccessible::Relation > > QAccessibleWidget::relations ( QAccessible::Relation  match = QAccessible::AllRelations) const
override
QAccessible::Role QAccessibleWidget::role ( ) const
override

Reimplemented from QAccessibleInterface::role()

QAccessible::State QAccessibleWidget::state ( ) const
override

Reimplemented from QAccessibleInterface::state()

QString QAccessibleWidget::text ( QAccessible::Text  text) const
override

Reimplemented from QAccessibleInterface::text()

QWidget * QAccessibleWidget::widget ( ) const
protected

Returns the associated widget.

QWindow * QAccessibleWidget::window ( ) const
override

Reimplemented from QAccessibleInterface::window()