Qt 4.8
Static Public Functions | List of all members
IsWindowAndNotDrawerOrSheetTest Struct Reference

Static Public Functions

static bool test (const QAInterface &interface)
 

Detailed Description

Definition at line 1618 of file qaccessible_mac.mm.

Functions

◆ test()

static bool IsWindowAndNotDrawerOrSheetTest::test ( const QAInterface interface)
inlinestatic

Definition at line 1620 of file qaccessible_mac.mm.

1621  {
1622  QWidget * const widget = qobject_cast<QWidget*>(interface.object());
1623  return (interface.role() == QAccessible::Window &&
1624  widget && widget->isWindow() &&
1625  !qt_mac_is_macdrawer(widget) &&
1626  !qt_mac_is_macsheet(widget));
1627  }
T qobject_cast(QObject *object)
Definition: qobject.h:375
QPointer< QWidget > widget
bool qt_mac_is_macsheet(const QWidget *w)
Definition: qwidget_mac.mm:295
bool isWindow() const
Returns true if the widget is an independent window, otherwise returns false.
Definition: qwidget.h:945
The QWidget class is the base class of all user interface objects.
Definition: qwidget.h:150
QObject * object() const
Role role() const
bool qt_mac_is_macdrawer(const QWidget *w)
Definition: qwidget_mac.mm:306

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