Qt 4.8
Public Functions | Public Variables | Properties | List of all members
AccessibleElement Struct Reference

Public Functions

 AccessibleElement (int entryId, QAccessibleInterface *accessible)
 
QString text (QAccessible::Text t) const
 
 ~AccessibleElement ()
 

Public Variables

int entry
 
QAccessibleInterfaceiface
 

Properties

bool cleanupInterface
 

Detailed Description

Definition at line 617 of file qaccessible_win.cpp.

Constructors and Destructors

◆ AccessibleElement()

AccessibleElement::AccessibleElement ( int  entryId,
QAccessibleInterface accessible 
)
inline

Definition at line 618 of file qaccessible_win.cpp.

618  {
619  if (entryId < 0) {
620  QPair<QPointer<QObject>, int> ref = qAccessibleRecentSentEvents()->value(entryId);
622  entry = ref.second;
623  cleanupInterface = true;
624  } else {
625  iface = accessible;
626  entry = entryId;
627  cleanupInterface = false;
628  }
629  }
T1 first
Definition: qpair.h:65
T2 second
Definition: qpair.h:66
static QAccessibleInterface * queryAccessibleInterface(QObject *)
If a QAccessibleInterface implementation exists for the given object, this function returns a pointer...
QAccessibleInterface * iface

◆ ~AccessibleElement()

AccessibleElement::~AccessibleElement ( )
inline

Definition at line 635 of file qaccessible_win.cpp.

635  {
636  if (cleanupInterface)
637  delete iface;
638  }
QAccessibleInterface * iface

Functions

◆ text()

QString AccessibleElement::text ( QAccessible::Text  t) const
inline

Definition at line 631 of file qaccessible_win.cpp.

Referenced by QWindowsAccessible::get_accDescription(), QWindowsAccessible::get_accHelp(), QWindowsAccessible::get_accKeyboardShortcut(), QWindowsAccessible::get_accName(), and QWindowsAccessible::get_accValue().

631  {
632  return iface ? iface->text(t, entry) : QString();
633  }
The QString class provides a Unicode character string.
Definition: qstring.h:83
virtual QString text(Text t, int child) const =0
Returns the value of the text property t of the object, or of the object&#39;s child if child is not 0...
QAccessibleInterface * iface

Properties

◆ cleanupInterface

bool AccessibleElement::cleanupInterface
private

Definition at line 643 of file qaccessible_win.cpp.

◆ entry

int AccessibleElement::entry

◆ iface

QAccessibleInterface* AccessibleElement::iface

The documentation for this struct was generated from the following file: