Qt 4.8
Classes | Functions | Variables
qaccessibleobject.cpp File Reference
#include "qaccessibleobject.h"
#include "qapplication.h"
#include "qwidget.h"
#include "qpointer.h"
#include "qmetaobject.h"
#include "qvarlengtharray.h"

Go to the source code of this file.

Classes

class  QAccessibleObjectPrivate
 

Functions

static QWidgetList topLevelWidgets ()
 

Variables

static const char *const action_text [][5]
 

Function Documentation

◆ topLevelWidgets()

static QWidgetList topLevelWidgets ( )
static

Definition at line 218 of file qaccessibleobject.cpp.

Referenced by QApplication::alert(), alert_widget(), QAccessibleApplication::childAt(), QAccessibleApplication::childCount(), QAccessibleApplication::doAction(), QAccessibleApplication::indexOfChild(), QAccessibleApplication::navigate(), parseGeometry(), qt_mac_should_disable_menu(), QApplication::qwsSetCustomColors(), QAccessibleApplication::relationTo(), and QApplication::syncX().

219 {
220  QWidgetList list;
222  for (int i = 0; i < tlw.count(); ++i) {
223  QWidget *w = tlw.at(i);
224  if (!(w->windowType() == Qt::Popup) && !(w->windowType() == Qt::Desktop))
225  list.append(w);
226  }
227 
228  return list;
229 }
The QWidget class is the base class of all user interface objects.
Definition: qwidget.h:150
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
static QWidgetList topLevelWidgets()
Returns a list of the top-level widgets (windows) in the application.
Qt::WindowType windowType() const
Returns the window type of this widget.
Definition: qwidget.h:937
The QList class is a template class that provides lists.
Definition: qdatastream.h:62

Variable Documentation

◆ action_text

const char* const action_text[][5]
static
Initial value:
=
{
{ "Press", "", "", "", "Space" },
{ "SetFocus", "Passes focus to this widget", "", "", "" },
{ "Increase", "", "", "", "" },
{ "Decrease", "", "", "", "" },
{ "Accept", "", "", "", "" },
{ "Cancel", "", "", "", "" },
{ "Select", "", "", "", "" },
{ "ClearSelection", "", "", "", "" },
{ "RemoveSelection", "", "", "", "" },
{ "ExtendSelection", "", "", "", "" },
{ "AddToSelection", "", "", "", "" }
}

Definition at line 171 of file qaccessibleobject.cpp.

Referenced by QAccessibleObject::actionText().