CopperSpice API
1.9.2
|
Base class for accessibility notifications. More...
Public Methods | |
QAccessibleEvent (QAccessibleInterface *interfaceId, QAccessible::Event eventType) | |
QAccessibleEvent (QObject *object, QAccessible::Event eventType) | |
virtual | ~QAccessibleEvent () |
virtual QAccessibleInterface * | accessibleInterface () const |
int | child () const |
QObject * | object () const |
void | setChild (int child) |
QAccessible::Event | type () const |
The QAccessibleEvent class is the base class for accessibility notifications. This class was designed to be used with QAccessible::updateAccessibility(). There is an event type associated with every QAccessibleEvent object. Several subclasses exist which can be used to provide more details.
As an example, to notify all QAccessible clients about a focus change when overriding QWidget::setFocus, consider using the following code. All accessible events must be sent after the user interface has been updated.
|
inline |
Constructs a new QAccessibleEvent to notify clients the given object has changed. The eventType describes what changed.
|
inline |
Constructs a QAccessibleEvent to notify clients the object corresponding to the given interfaceID has changed. The eventType describes what changed.
Use this method if you already have a QAccessibleInterface and no QObject. Otherwise call the constructor which accepts a QObject.
|
virtual |
Destroys the QAccessibleEvent.
|
virtual |
Returns the QAccessibleInterface associated with the event.
|
inline |
Returns the child index.
|
inline |
Returns the event object.
|
inline |
Sets the child index to child.
|
inline |
Returns the event type.