Qt 4.8
Public Functions | List of all members
AccessibleFactory Class Reference
Inheritance diagram for AccessibleFactory:
QAccessiblePlugin QObject QAccessibleFactoryInterface QAccessible QFactoryInterface

Public Functions

 AccessibleFactory ()
 
QAccessibleInterfacecreate (const QString &classname, QObject *object)
 Creates and returns a QAccessibleInterface implementation for the class key and the object object. More...
 
QStringList keys () const
 Returns the list of keys this plugin supports. More...
 
- Public Functions inherited from QAccessiblePlugin
 QAccessiblePlugin (QObject *parent=0)
 Constructs an accessibility plugin with the given parent. More...
 
 ~QAccessiblePlugin ()
 Destroys the accessibility plugin. More...
 
- Public Functions inherited from QObject
bool blockSignals (bool b)
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). More...
 
const QObjectListchildren () const
 Returns a list of child objects. More...
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectInfo ()
 Dumps information about signal connections, etc. More...
 
void dumpObjectTree ()
 Dumps a tree of children to the debug output. More...
 
QList< QByteArraydynamicPropertyNames () const
 Returns the names of all properties that were dynamically added to the object using setProperty(). More...
 
virtual bool event (QEvent *)
 This virtual function receives events to an object and should return true if the event e was recognized and processed. More...
 
virtual bool eventFilter (QObject *, QEvent *)
 Filters events if this object has been installed as an event filter for the watched object. More...
 
template<typename T >
findChild (const QString &aName=QString()) const
 Returns the child of this object that can be cast into type T and that is called name, or 0 if there is no such object. More...
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. More...
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false. More...
 
void installEventFilter (QObject *)
 Installs an event filter filterObj on this object. More...
 
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false. More...
 
void killTimer (int id)
 Kills the timer with timer identifier, id. More...
 
virtual const QMetaObjectmetaObject () const
 Returns a pointer to the meta-object of this object. More...
 
void moveToThread (QThread *thread)
 Changes the thread affinity for this object and its children. More...
 
QString objectName () const
 
QObjectparent () const
 Returns a pointer to the parent object. More...
 
QVariant property (const char *name) const
 Returns the value of the object's name property. More...
 
Q_INVOKABLE QObject (QObject *parent=0)
 Constructs an object with parent object parent. More...
 
void removeEventFilter (QObject *)
 Removes an event filter object obj from this object. More...
 
void setObjectName (const QString &name)
 
void setParent (QObject *)
 Makes the object a child of parent. More...
 
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value. More...
 
void setUserData (uint id, QObjectUserData *data)
 
bool signalsBlocked () const
 Returns true if signals are blocked; otherwise returns false. More...
 
int startTimer (int interval)
 Starts a timer and returns a timer identifier, or returns zero if it could not start a timer. More...
 
QThreadthread () const
 Returns the thread in which the object lives. More...
 
QObjectUserDatauserData (uint id) const
 
virtual ~QObject ()
 Destroys the object, deleting all its child objects. More...
 
- Public Functions inherited from QFactoryInterface
virtual ~QFactoryInterface ()
 

Additional Inherited Members

- Public Types inherited from QAccessible
enum  Action {
  DefaultAction = 0, Press = -1, FirstStandardAction = Press, SetFocus = -2,
  Increase = -3, Decrease = -4, Accept = -5, Cancel = -6,
  Select = -7, ClearSelection = -8, RemoveSelection = -9, ExtendSelection = -10,
  AddToSelection = -11, LastStandardAction = AddToSelection
}
 This enum describes the possible types of action that can occur. More...
 
enum  Event {
  SoundPlayed = 0x0001, Alert = 0x0002, ForegroundChanged = 0x0003, MenuStart = 0x0004,
  MenuEnd = 0x0005, PopupMenuStart = 0x0006, PopupMenuEnd = 0x0007, ContextHelpStart = 0x000C,
  ContextHelpEnd = 0x000D, DragDropStart = 0x000E, DragDropEnd = 0x000F, DialogStart = 0x0010,
  DialogEnd = 0x0011, ScrollingStart = 0x0012, ScrollingEnd = 0x0013, MenuCommand = 0x0018,
  ActionChanged = 0x0101, ActiveDescendantChanged = 0x0102, AttributeChanged = 0x0103, DocumentContentChanged = 0x0104,
  DocumentLoadComplete = 0x0105, DocumentLoadStopped = 0x0106, DocumentReload = 0x0107, HyperlinkEndIndexChanged = 0x0108,
  HyperlinkNumberOfAnchorsChanged = 0x0109, HyperlinkSelectedLinkChanged = 0x010A, HypertextLinkActivated = 0x010B, HypertextLinkSelected = 0x010C,
  HyperlinkStartIndexChanged = 0x010D, HypertextChanged = 0x010E, HypertextNLinksChanged = 0x010F, ObjectAttributeChanged = 0x0110,
  PageChanged = 0x0111, SectionChanged = 0x0112, TableCaptionChanged = 0x0113, TableColumnDescriptionChanged = 0x0114,
  TableColumnHeaderChanged = 0x0115, TableModelChanged = 0x0116, TableRowDescriptionChanged = 0x0117, TableRowHeaderChanged = 0x0118,
  TableSummaryChanged = 0x0119, TextAttributeChanged = 0x011A, TextCaretMoved = 0x011B, TextColumnChanged = 0x011D,
  TextInserted = 0x011E, TextRemoved = 0x011F, TextUpdated = 0x0120, TextSelectionChanged = 0x0121,
  VisibleDataChanged = 0x0122, ObjectCreated = 0x8000, ObjectDestroyed = 0x8001, ObjectShow = 0x8002,
  ObjectHide = 0x8003, ObjectReorder = 0x8004, Focus = 0x8005, Selection = 0x8006,
  SelectionAdd = 0x8007, SelectionRemove = 0x8008, SelectionWithin = 0x8009, StateChanged = 0x800A,
  LocationChanged = 0x800B, NameChanged = 0x800C, DescriptionChanged = 0x800D, ValueChanged = 0x800E,
  ParentChanged = 0x800F, HelpChanged = 0x80A0, DefaultActionChanged = 0x80B0, AcceleratorChanged = 0x80C0
}
 This enum type defines accessible event types. More...
 
typedef QAccessibleInterface *(* InterfaceFactory) (const QString &key, QObject *)
 This is a typedef for a pointer to a function with the following signature: More...
 
enum  Method {
  ListSupportedMethods = 0, SetCursorPosition = 1, GetCursorPosition = 2, ForegroundColor = 3,
  BackgroundColor = 4
}
 This enum describes the possible types of methods that can be invoked on an accessible object. More...
 
enum  RelationFlag {
  Unrelated = 0x00000000, Self = 0x00000001, Ancestor = 0x00000002, Child = 0x00000004,
  Descendent = 0x00000008, Sibling = 0x00000010, HierarchyMask = 0x000000ff, Up = 0x00000100,
  Down = 0x00000200, Left = 0x00000400, Right = 0x00000800, Covers = 0x00001000,
  Covered = 0x00002000, GeometryMask = 0x0000ff00, FocusChild = 0x00010000, Label = 0x00020000,
  Labelled = 0x00040000, Controller = 0x00080000, Controlled = 0x00100000, LogicalMask = 0x00ff0000
}
 This enum type defines bit flags that can be combined to indicate the relationship between two accessible objects. More...
 
enum  Role {
  NoRole = 0x00000000, TitleBar = 0x00000001, MenuBar = 0x00000002, ScrollBar = 0x00000003,
  Grip = 0x00000004, Sound = 0x00000005, Cursor = 0x00000006, Caret = 0x00000007,
  AlertMessage = 0x00000008, Window = 0x00000009, Client = 0x0000000A, PopupMenu = 0x0000000B,
  MenuItem = 0x0000000C, ToolTip = 0x0000000D, Application = 0x0000000E, Document = 0x0000000F,
  Pane = 0x00000010, Chart = 0x00000011, Dialog = 0x00000012, Border = 0x00000013,
  Grouping = 0x00000014, Separator = 0x00000015, ToolBar = 0x00000016, StatusBar = 0x00000017,
  Table = 0x00000018, ColumnHeader = 0x00000019, RowHeader = 0x0000001A, Column = 0x0000001B,
  Row = 0x0000001C, Cell = 0x0000001D, Link = 0x0000001E, HelpBalloon = 0x0000001F,
  Assistant = 0x00000020, List = 0x00000021, ListItem = 0x00000022, Tree = 0x00000023,
  TreeItem = 0x00000024, PageTab = 0x00000025, PropertyPage = 0x00000026, Indicator = 0x00000027,
  Graphic = 0x00000028, StaticText = 0x00000029, EditableText = 0x0000002A, PushButton = 0x0000002B,
  CheckBox = 0x0000002C, RadioButton = 0x0000002D, ComboBox = 0x0000002E, ProgressBar = 0x00000030,
  Dial = 0x00000031, HotkeyField = 0x00000032, Slider = 0x00000033, SpinBox = 0x00000034,
  Canvas = 0x00000035, Animation = 0x00000036, Equation = 0x00000037, ButtonDropDown = 0x00000038,
  ButtonMenu = 0x00000039, ButtonDropGrid = 0x0000003A, Whitespace = 0x0000003B, PageTabList = 0x0000003C,
  Clock = 0x0000003D, Splitter = 0x0000003E, LayeredPane = 0x0000003F, Terminal = 0x00000040,
  Desktop = 0x00000041, UserRole = 0x0000ffff
}
 This enum defines the role of an accessible object. More...
 
typedef void(* RootObjectHandler) (QObject *)
 A function pointer type. More...
 
enum  StateFlag {
  Normal = 0x00000000, Unavailable = 0x00000001, Selected = 0x00000002, Focused = 0x00000004,
  Pressed = 0x00000008, Checked = 0x00000010, Mixed = 0x00000020, ReadOnly = 0x00000040,
  HotTracked = 0x00000080, DefaultButton = 0x00000100, Expanded = 0x00000200, Collapsed = 0x00000400,
  Busy = 0x00000800, Marqueed = 0x00002000, Animated = 0x00004000, Invisible = 0x00008000,
  Offscreen = 0x00010000, Sizeable = 0x00020000, Movable = 0x00040000, SelfVoicing = 0x00080000,
  Focusable = 0x00100000, Selectable = 0x00200000, Linked = 0x00400000, Traversed = 0x00800000,
  MultiSelectable = 0x01000000, ExtSelectable = 0x02000000, Protected = 0x20000000, HasPopup = 0x40000000,
  Modal = 0x80000000, HasInvokeExtension = 0x10000000
}
 This enum type defines bit flags that can be combined to indicate the state of an accessible object. More...
 
enum  Text {
  Name = 0, Description, Value, Help,
  Accelerator, UserText = 0x0000ffff
}
 This enum specifies string information that an accessible object returns. More...
 
typedef void(* UpdateHandler) (QObject *, int who, Event reason)
 A function pointer type. More...
 
- Public Slots inherited from QObject
void deleteLater ()
 Schedules this object for deletion. More...
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 This signal is emitted immediately before the object obj is destroyed, and can not be blocked. More...
 
- Static Public Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 Creates a connection of the given type from the signal in the sender object to the method in the receiver object. More...
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 Disconnects signal in object sender from method in object receiver. More...
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
static QString tr (const char *sourceText, const char *comment=0, int n=-1)
 
static QString trUtf8 (const char *sourceText, const char *comment=0, int n=-1)
 
- Static Public Functions inherited from QAccessible
static void cleanup ()
 
static void initialize ()
 
static void installFactory (InterfaceFactory)
 Installs the InterfaceFactory factory. More...
 
static RootObjectHandler installRootObjectHandler (RootObjectHandler)
 Installs the given handler as the function to be used by setRootObject(), and returns the previously installed handler. More...
 
static UpdateHandler installUpdateHandler (UpdateHandler)
 Installs the given handler as the function to be used by updateAccessibility(), and returns the previously installed handler. More...
 
static bool isActive ()
 Returns true if an accessibility implementation has been requested during the runtime of the application; otherwise returns false. More...
 
static QAccessibleInterfacequeryAccessibleInterface (QObject *)
 If a QAccessibleInterface implementation exists for the given object, this function returns a pointer to the implementation; otherwise it returns 0. More...
 
static void removeFactory (InterfaceFactory)
 Removes factory from the list of installed InterfaceFactories. More...
 
static void setRootObject (QObject *)
 Sets the root accessible object of this application to object. More...
 
static void updateAccessibility (QObject *, int who, Event reason)
 Notifies accessibility clients about a change in object's accessibility information. More...
 
- Static Public Variables inherited from QObject
static const QMetaObject staticMetaObject
 This variable stores the meta-object for the class. More...
 
- Protected Functions inherited from QObject
virtual void childEvent (QChildEvent *)
 This event handler can be reimplemented in a subclass to receive child events. More...
 
virtual void connectNotify (const char *signal)
 This virtual function is called when something has been connected to signal in this object. More...
 
virtual void customEvent (QEvent *)
 This event handler can be reimplemented in a subclass to receive custom events. More...
 
virtual void disconnectNotify (const char *signal)
 This virtual function is called when something has been disconnected from signal in this object. More...
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal. More...
 
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns 0. More...
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *)
 This event handler can be reimplemented in a subclass to receive timer events for the object. More...
 
- Protected Variables inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Variables inherited from QObject
static const QMetaObject staticQtMetaObject
 

Detailed Description

Definition at line 62 of file main.cpp.

Constructors and Destructors

◆ AccessibleFactory()

AccessibleFactory::AccessibleFactory ( )

Definition at line 71 of file main.cpp.

72 {
73 }

Functions

◆ create()

QAccessibleInterface * AccessibleFactory::create ( const QString key,
QObject object 
)
virtual

Creates and returns a QAccessibleInterface implementation for the class key and the object object.

Keys are case sensitive.

See also
keys()

Implements QAccessiblePlugin.

Definition at line 160 of file main.cpp.

161 {
162  QAccessibleInterface *iface = 0;
163  if (!object || !object->isWidgetType())
164  return iface;
165  QWidget *widget = static_cast<QWidget*>(object);
166 
167  if (false) {
168 #ifndef QT_NO_LINEEDIT
169  } else if (classname == QLatin1String("QLineEdit")) {
170  iface = new QAccessibleLineEdit(widget);
171 #endif
172 #ifndef QT_NO_COMBOBOX
173  } else if (classname == QLatin1String("QComboBox")) {
174  iface = new QAccessibleComboBox(widget);
175 #endif
176 #ifndef QT_NO_SPINBOX
177  } else if (classname == QLatin1String("QAbstractSpinBox")) {
178  iface = new QAccessibleAbstractSpinBox(widget);
179  } else if (classname == QLatin1String("QSpinBox")) {
180  iface = new QAccessibleSpinBox(widget);
181  } else if (classname == QLatin1String("QDoubleSpinBox")) {
182  iface = new QAccessibleDoubleSpinBox(widget);
183 #endif
184 #ifndef QT_NO_SCROLLBAR
185  } else if (classname == QLatin1String("QScrollBar")) {
186  iface = new QAccessibleScrollBar(widget);
187 #endif
188  } else if (classname == QLatin1String("QAbstractSlider")) {
189  iface = new QAccessibleAbstractSlider(widget);
190 #ifndef QT_NO_SLIDER
191  } else if (classname == QLatin1String("QSlider")) {
192  iface = new QAccessibleSlider(widget);
193 #endif
194 #ifndef QT_NO_TOOLBUTTON
195  } else if (classname == QLatin1String("QToolButton")) {
196  Role role = NoRole;
197 #ifndef QT_NO_MENU
199  if (!tb->menu())
200  role = tb->isCheckable() ? CheckBox : PushButton;
201  else if (!tb->popupMode() != QToolButton::DelayedPopup)
202  role = ButtonDropDown;
203  else
204 #endif
205  role = ButtonMenu;
206  iface = new QAccessibleToolButton(widget, role);
207 #endif // QT_NO_TOOLBUTTON
208  } else if (classname == QLatin1String("QCheckBox")) {
209  iface = new QAccessibleButton(widget, CheckBox);
210  } else if (classname == QLatin1String("QRadioButton")) {
211  iface = new QAccessibleButton(widget, RadioButton);
212  } else if (classname == QLatin1String("QPushButton")) {
213  Role role = NoRole;
215 #ifndef QT_NO_MENU
216  if (pb->menu())
217  role = ButtonMenu;
218  else
219 #endif
220  if (pb->isCheckable())
221  role = CheckBox;
222  else
223  role = PushButton;
224  iface = new QAccessibleButton(widget, role);
225  } else if (classname == QLatin1String("QAbstractButton")) {
226  iface = new QAccessibleButton(widget, PushButton);
227  } else if (classname == QLatin1String("QDialog")) {
228  iface = new QAccessibleWidgetEx(widget, Dialog);
229  } else if (classname == QLatin1String("QMessageBox")) {
230  iface = new QAccessibleWidgetEx(widget, AlertMessage);
231 #ifndef QT_NO_MAINWINDOW
232  } else if (classname == QLatin1String("QMainWindow")) {
233  iface = new QAccessibleMainWindow(widget);
234 #endif
235  } else if (classname == QLatin1String("QLabel") || classname == QLatin1String("QLCDNumber")) {
236  iface = new QAccessibleDisplay(widget);
237 #ifndef QT_NO_GROUPBOX
238  } else if (classname == QLatin1String("QGroupBox")) {
239  iface = new QAccessibleGroupBox(widget);
240 #endif
241  } else if (classname == QLatin1String("QStatusBar")) {
242  iface = new QAccessibleDisplay(widget);
243 #ifndef QT_NO_PROGRESSBAR
244  } else if (classname == QLatin1String("QProgressBar")) {
245  iface = new QAccessibleProgressBar(widget);
246 #endif
247  } else if (classname == QLatin1String("QToolBar")) {
248  iface = new QAccessibleWidgetEx(widget, ToolBar, widget->windowTitle());
249 #ifndef QT_NO_MENUBAR
250  } else if (classname == QLatin1String("QMenuBar")) {
251  iface = new QAccessibleMenuBar(widget);
252 #endif
253 #ifndef QT_NO_MENU
254  } else if (classname == QLatin1String("QMenu")) {
255  iface = new QAccessibleMenu(widget);
256  } else if (classname == QLatin1String("Q3PopupMenu")) {
257  iface = new QAccessibleMenu(widget);
258 #endif
259 #ifndef QT_NO_ITEMVIEWS
260 #ifdef Q_WS_X11
261  } else if (classname == QLatin1String("QAbstractItemView")) {
262  if (qobject_cast<const QTreeView*>(widget)) {
263  iface = new QAccessibleTree(widget);
264  } else {
265  iface = new QAccessibleTable2(widget);
266  }
267  } else if (classname == QLatin1String("QWidget")
268  && widget->objectName() == QLatin1String("qt_scrollarea_viewport")
269  && qobject_cast<QAbstractItemView*>(widget->parentWidget())) {
270  if (qobject_cast<const QTreeView*>(widget->parentWidget())) {
271  iface = new QAccessibleTree(widget->parentWidget());
272  } else {
273  iface = new QAccessibleTable2(widget->parentWidget());
274  }
275 #else
276  } else if (classname == QLatin1String("QHeaderView")) {
277  iface = new QAccessibleHeader(widget);
278  } else if (classname == QLatin1String("QAbstractItemView")) {
279  iface = new QAccessibleItemView(widget);
280  } else if (classname == QLatin1String("QWidget")
281  && widget->objectName() == QLatin1String("qt_scrollarea_viewport")
282  && qobject_cast<QAbstractItemView*>(widget->parentWidget())) {
283  iface = new QAccessibleItemView(widget);
284 #endif // Q_WS_X11
285 #endif // QT_NO_ITEMVIEWS
286 #ifndef QT_NO_TABBAR
287  } else if (classname == QLatin1String("QTabBar")) {
288  iface = new QAccessibleTabBar(widget);
289 #endif
290  } else if (classname == QLatin1String("QWorkspaceChild")) {
291  iface = new QAccessibleWidgetEx(widget, Window);
292  } else if (classname == QLatin1String("QSizeGrip")) {
293  iface = new QAccessibleWidgetEx(widget, Grip);
294 #ifndef QT_NO_SPLITTER
295  } else if (classname == QLatin1String("QSplitter")) {
296  iface = new QAccessibleWidgetEx(widget, Splitter);
297  } else if (classname == QLatin1String("QSplitterHandle")) {
298  iface = new QAccessibleWidgetEx(widget, Grip);
299 #endif
300 #ifndef QT_NO_TEXTEDIT
301  } else if (classname == QLatin1String("QTextEdit")) {
302  iface = new QAccessibleTextEdit(widget);
303 #endif
304  } else if (classname == QLatin1String("QPlainTextEdit")) {
305  iface = new QAccessiblePlainTextEdit(widget);
306  } else if (classname == QLatin1String("QTipLabel")) {
307  iface = new QAccessibleDisplay(widget, ToolTip);
308  } else if (classname == QLatin1String("QFrame")) {
309  iface = new QAccessibleWidget(widget, Border);
310 #ifndef QT_NO_STACKEDWIDGET
311  } else if (classname == QLatin1String("QStackedWidget")) {
312  iface = new QAccessibleStackedWidget(widget);
313 #endif
314 #ifndef QT_NO_TOOLBOX
315  } else if (classname == QLatin1String("QToolBox")) {
316  iface = new QAccessibleToolBox(widget);
317 #endif
318 #ifndef QT_NO_MDIAREA
319  } else if (classname == QLatin1String("QMdiArea")) {
320  iface = new QAccessibleMdiArea(widget);
321  } else if (classname == QLatin1String("QMdiSubWindow")) {
322  iface = new QAccessibleMdiSubWindow(widget);
323 #endif
324 #ifndef QT_NO_WORKSPACE
325  } else if (classname == QLatin1String("QWorkspace")) {
326  iface = new QAccessibleWorkspace(widget);
327 #endif
328  } else if (classname == QLatin1String("QDialogButtonBox")) {
329  iface = new QAccessibleDialogButtonBox(widget);
330 #ifndef QT_NO_DIAL
331  } else if (classname == QLatin1String("QDial")) {
332  iface = new QAccessibleDial(widget);
333 #endif
334 #ifndef QT_NO_RUBBERBAND
335  } else if (classname == QLatin1String("QRubberBand")) {
336  iface = new QAccessibleWidgetEx(widget, QAccessible::Border);
337 #endif
338 #ifndef QT_NO_TEXTBROWSER
339  } else if (classname == QLatin1String("QTextBrowser")) {
340  iface = new QAccessibleTextBrowser(widget);
341 #endif
342 #ifndef QT_NO_SCROLLAREA
343  } else if (classname == QLatin1String("QAbstractScrollArea")) {
344  iface = new QAccessibleAbstractScrollArea(widget);
345  } else if (classname == QLatin1String("QScrollArea")) {
346  iface = new QAccessibleScrollArea(widget);
347 #endif
348 #ifndef QT_NO_CALENDARWIDGET
349  } else if (classname == QLatin1String("QCalendarWidget")) {
350  iface = new QAccessibleCalendarWidget(widget);
351 #endif
352 #ifndef QT_NO_DOCKWIDGET
353  } else if (classname == QLatin1String("QDockWidget")) {
354  iface = new QAccessibleDockWidget(widget);
355 #endif
356  }
357 
358  return iface;
359 }
QWidget * parentWidget() const
Returns the parent of this widget, or 0 if it does not have any parent widget.
Definition: qwidget.h:1035
QPointer< QWidget > widget
Role
This enum defines the role of an accessible object.
Definition: qaccessible.h:188
The QAccessibleLineEdit class implements the QAccessibleInterface for widgets with editable text...
The QWidget class is the base class of all user interface objects.
Definition: qwidget.h:150
The QPushButton widget provides a command button.
Definition: qpushbutton.h:57
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
T * qobject_cast(QObject *object)
Definition: qobject.h:375
The QAccessibleComboBox class implements the QAccessibleInterface for editable and read-only combo bo...
The QAccessibleHeader class implements the QAccessibleInterface for header widgets.
The QAccessibleDisplay class implements the QAccessibleInterface for widgets that display information...
QString windowTitle
the window title (caption)
Definition: qwidget.h:198
The QAccessibleButton class implements the QAccessibleInterface for button type widgets.
Definition: simplewidgets.h:59
QMenu * menu() const
Returns the button&#39;s associated popup menu or 0 if no popup menu has been set.
bool isCheckable() const
The QAccessibleWidget class implements the QAccessibleInterface for QWidgets.
The QAbstractItemView class provides the basic functionality for item view classes.
The QAccessibleTextEdit class implements the QAccessibleInterface for richtext editors.
The QAccessibleToolButton class implements the QAccessibleInterface for tool buttons.
Definition: simplewidgets.h:85
bool isWidgetType() const
Returns true if the object is a widget; otherwise returns false.
Definition: qobject.h:146
The QAccessibleSlider class implements the QAccessibleInterface for sliders.
The QAccessibleInterface class defines an interface that exposes information about accessible objects...
Definition: qaccessible.h:370
QMenu * menu() const
Returns the associated menu, or 0 if no menu has been defined.
QString objectName() const
ToolButtonPopupMode popupMode
describes the way that popup menus are used with tool buttons
Definition: qtoolbutton.h:64
The QAccessibleTabBar class implements the QAccessibleInterface for tab bars.
The QToolButton class provides a quick-access button to commands or options, usually used inside a QT...
Definition: qtoolbutton.h:59
The QAccessibleSpinBox class implements the QAccessibleInterface for spinbox widgets.
Definition: rangecontrols.h:96
The QAccessibleScrollBar class implements the QAccessibleInterface for scroll bars.

◆ keys()

QStringList AccessibleFactory::keys ( ) const
virtual

Returns the list of keys this plugin supports.

These keys must be the class names that this plugin provides an accessibility implementation for.

See also
create()

Implements QAccessiblePlugin.

Definition at line 75 of file main.cpp.

76 {
77  QStringList list;
78 #ifndef QT_NO_LINEEDIT
79  list << QLatin1String("QLineEdit");
80 #endif
81 #ifndef QT_NO_COMBOBOX
82  list << QLatin1String("QComboBox");
83 #endif
84 #ifndef QT_NO_SPINBOX
85  list << QLatin1String("QAbstractSpinBox");
86  list << QLatin1String("QSpinBox");
87  list << QLatin1String("QDoubleSpinBox");
88 #endif
89 #ifndef QT_NO_SCROLLBAR
90  list << QLatin1String("QScrollBar");
91 #endif
92 #ifndef QT_NO_SLIDER
93  list << QLatin1String("QSlider");
94 #endif
95  list << QLatin1String("QAbstractSlider");
96 #ifndef QT_NO_TOOLBUTTON
97  list << QLatin1String("QToolButton");
98 #endif
99  list << QLatin1String("QCheckBox");
100  list << QLatin1String("QRadioButton");
101  list << QLatin1String("QPushButton");
102  list << QLatin1String("QAbstractButton");
103  list << QLatin1String("QDialog");
104  list << QLatin1String("QMessageBox");
105  list << QLatin1String("QMainWindow");
106  list << QLatin1String("QLabel");
107  list << QLatin1String("QLCDNumber");
108  list << QLatin1String("QGroupBox");
109  list << QLatin1String("QStatusBar");
110  list << QLatin1String("QProgressBar");
111  list << QLatin1String("QMenuBar");
112  list << QLatin1String("Q3PopupMenu");
113  list << QLatin1String("QMenu");
114  list << QLatin1String("QHeaderView");
115  list << QLatin1String("QTabBar");
116  list << QLatin1String("QToolBar");
117  list << QLatin1String("QWorkspaceChild");
118  list << QLatin1String("QSizeGrip");
119  list << QLatin1String("QAbstractItemView");
120  list << QLatin1String("QWidget");
121 #ifndef QT_NO_SPLITTER
122  list << QLatin1String("QSplitter");
123  list << QLatin1String("QSplitterHandle");
124 #endif
125 #ifndef QT_NO_TEXTEDIT
126  list << QLatin1String("QTextEdit");
127 #endif
128  list << QLatin1String("QPlainTextEdit");
129  list << QLatin1String("QTipLabel");
130  list << QLatin1String("QFrame");
131  list << QLatin1String("QStackedWidget");
132  list << QLatin1String("QToolBox");
133  list << QLatin1String("QMdiArea");
134  list << QLatin1String("QMdiSubWindow");
135  list << QLatin1String("QWorkspace");
136  list << QLatin1String("QDialogButtonBox");
137 #ifndef QT_NO_DIAL
138  list << QLatin1String("QDial");
139 #endif
140 #ifndef QT_NO_RUBBERBAND
141  list << QLatin1String("QRubberBand");
142 #endif
143 #ifndef QT_NO_TEXTBROWSER
144  list << QLatin1String("QTextBrowser");
145 #endif
146 #ifndef QT_NO_SCROLLAREA
147  list << QLatin1String("QAbstractScrollArea");
148  list << QLatin1String("QScrollArea");
149 #endif
150 #ifndef QT_NO_CALENDARWIDGET
151  list << QLatin1String("QCalendarWidget");
152 #endif
153 
154 #ifndef QT_NO_DOCKWIDGET
155  list << QLatin1String("QDockWidget");
156 #endif
157  return list;
158 }
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QStringList class provides a list of strings.
Definition: qstringlist.h:66

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