46 #include <QtGui/QAction> 49 #ifndef QT_NO_ACCESSIBILITY 96 if (!child && tx.
size())
106 #ifndef QT_NO_SHORTCUT 190 if (relation ==
Self || entry == 0) {
205 if (qobject_cast<QMenu*>(parent) || qobject_cast<QMenuBar*>(parent)) {
242 #ifndef QT_NO_MENUBAR 272 if (
rect(i).contains(x,y))
286 if (relation ==
Self || entry == 0) {
406 #endif // QT_NO_MENUBAR 419 if (
rect(i).contains(x,y))
432 if (text ==
Name && child == 0) {
461 }
else if (
QMenu *menu = qobject_cast<QMenu*>(
owner())){
507 if (relation ==
Self || entry == 0) {
540 index += (relation ==
Down ? +1 : -1);
573 #ifndef QT_NO_MENUBAR 574 if (
QMenuBar *menuBar = qobject_cast<QMenuBar*>(own)) {
575 rect = menuBar->actionGeometry(
m_action);
579 #endif // QT_NO_MENUBAR 580 if (
QMenu *menu = qobject_cast<QMenu*>(own)) {
581 rect = menu->actionGeometry(
m_action);
585 }
else if (child == 1) {
630 if (
QMenu *menu = qobject_cast<QMenu*>(own)) {
631 if (menu->activeAction() ==
m_action)
633 #ifndef QT_NO_MENUBAR 634 }
else if (
QMenuBar *menuBar = qobject_cast<QMenuBar*>(own)) {
635 if (menuBar->activeAction() ==
m_action)
645 }
else if (child == 1) {
663 }
else if (child == 1) {
672 #ifndef QT_NO_SHORTCUT 718 #ifndef QT_NO_SHORTCUT 742 #endif // QT_NO_ACCESSIBILITY The QVariant class acts like a union for the most common Qt data types.
bool isSeparator() const
Returns true if this action is a separator action; otherwise it returns false.
T qobject_cast(QObject *object)
virtual int indexOfChild(const QAccessibleInterface *) const =0
Returns the 1-based index of the object child in this object's children list, or -1 if child is not a...
#define QT_END_NAMESPACE
This macro expands to.
QKeySequence shortcut
the action's primary shortcut key
QObject * object() const
Returns a pointer to the QObject this interface implementation provides information for...
virtual State state(int child) const =0
Returns the current state of the object, or of the object's child if child is not 0...
#define at(className, varName)
Role
This enum defines the role of an accessible object.
QString text
the action's descriptive text
virtual int styleHint(StyleHint stylehint, const QStyleOption *opt=0, const QWidget *widget=0, QStyleHintReturn *returnData=0) const =0
Returns an integer representing the specified style hint for the given widget described by the provid...
QRect translated(int dx, int dy) const
Returns a copy of the rectangle that is translated dx along the x axis and dy along the y axis...
int width() const
Returns the width of the rectangle.
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
long ASN1_INTEGER_get ASN1_INTEGER * a
int count(const T &t) const
Returns the number of occurrences of value in the list.
int height() const
Returns the height of the rectangle.
The QString class provides a Unicode character string.
virtual QObject * object() const =0
Returns a pointer to the QObject this interface implementation provides information for...
The QObject class is the base class of all Qt objects.
void append(const T &t)
Inserts value at the end of the list.
#define QT_BEGIN_NAMESPACE
This macro expands to.
void trigger()
This is a convenience slot that calls activate(Trigger).
int size() const
Returns the number of characters in this string.
virtual int navigate(RelationFlag relation, int index, QAccessibleInterface **iface) const =0
Navigates from this object to an object that has a relationship relation to this object, and returns the respective object in target.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
RelationFlag
This enum type defines bit flags that can be combined to indicate the relationship between two access...
Method
This enum describes the possible types of methods that can be invoked on an accessible object...
const T & at(int i) const
Returns the item at index position i in the list.
The QStringList class provides a list of strings.
const char * styleHint(const QFontDef &request)
QString toString(SequenceFormat format=PortableText) const
Return a string representation of the key sequence, based on format.
T value(int i) const
Returns the value at index position i in the list.
The State element defines configurations of objects and properties.
bool isEmpty() const
Returns true if the key sequence is empty; otherwise returns false.
static QAccessibleInterface * queryAccessibleInterface(QObject *)
If a QAccessibleInterface implementation exists for the given object, this function returns a pointer...
virtual Role role(int child) const =0
Returns the role of the object, or of the object's child if child is not 0.
QMenu * menu() const
Returns the menu contained by this action.
The QKeySequence class encapsulates a key sequence as used by shortcuts.
int indexOf(const T &t, int from=0) const
Returns the index position of the first occurrence of value in the list, searching forward from index...
int y() const
Returns the y-coordinate of the rectangle's top edge.
The QAccessibleInterface class defines an interface that exposes information about accessible objects...
int x() const
Returns the x-coordinate of the rectangle's left edge.
The QPoint class defines a point in the plane using integer precision.
QString whatsThis
the action's "What's This?" help text
The QRect class defines a rectangle in the plane using integer precision.
int y() const
Returns the y coordinate of this point.
int x() const
Returns the x coordinate of this point.
Text
This enum specifies string information that an accessible object returns.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
The QAction class provides an abstract user interface action that can be inserted into widgets...
The Text item allows you to add formatted text to a scene.