summaryrefslogtreecommitdiffstats
path: root/src/gui/accessible/qaccessible_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/accessible/qaccessible_base.h')
-rw-r--r--src/gui/accessible/qaccessible_base.h34
1 files changed, 27 insertions, 7 deletions
diff --git a/src/gui/accessible/qaccessible_base.h b/src/gui/accessible/qaccessible_base.h
index 5a4c999029..9f9ffefbf7 100644
--- a/src/gui/accessible/qaccessible_base.h
+++ b/src/gui/accessible/qaccessible_base.h
@@ -1,19 +1,17 @@
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
-
-#ifndef QT_NO_ACCESSIBILITY
#ifndef QACCESSIBLE_BASE_H
#define QACCESSIBLE_BASE_H
+#include <QtGui/qtguiglobal.h>
+#if QT_CONFIG(accessibility)
#if 0
// QAccessible class is handled in qaccessible.h
#pragma qt_sync_stop_processing
#endif
-#include <QtCore/qglobal.h>
-#include <QtGui/qtguiglobal.h>
#include <QtCore/qobjectdefs.h>
#include <cstring> // memset, memcmp
@@ -103,8 +101,11 @@ public:
HelpChanged = 0x80A0,
DefaultActionChanged = 0x80B0,
AcceleratorChanged = 0x80C0,
+ Announcement = 0x80D0,
+ IdentifierChanged = 0x80E0,
- InvalidEvent
+ // was declared after AcceleratorChanged, without explicit value
+ InvalidEvent = AcceleratorChanged + 1,
};
Q_ENUM(Event)
@@ -325,6 +326,7 @@ public:
Help,
Accelerator,
DebugDescription,
+ Identifier,
UserText = 0x0000ffff
};
@@ -333,6 +335,10 @@ public:
Labelled = 0x00000002,
Controller = 0x00000004,
Controlled = 0x00000008,
+ DescriptionFor = 0x00000010,
+ Described = 0x00000020,
+ FlowsFrom = 0x00000040,
+ FlowsTo = 0x00000080,
AllRelations = 0xffffffff
};
Q_DECLARE_FLAGS(Relation, RelationFlag)
@@ -346,7 +352,9 @@ public:
ImageInterface,
TableInterface,
TableCellInterface,
- HyperlinkInterface
+ HyperlinkInterface,
+ SelectionInterface,
+ AttributesInterface,
};
enum TextBoundaryType {
@@ -358,6 +366,18 @@ public:
NoBoundary
};
+ enum class Attribute {
+ Custom,
+ Level,
+ };
+ Q_ENUM(Attribute)
+
+ enum class AnnouncementPoliteness {
+ Polite,
+ Assertive,
+ };
+ Q_ENUM(AnnouncementPoliteness)
+
typedef QAccessibleInterface*(*InterfaceFactory)(const QString &key, QObject*);
typedef void(*UpdateHandler)(QAccessibleEvent *event);
typedef void(*RootObjectHandler)(QObject*);
@@ -407,5 +427,5 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(QAccessible::Relation)
QT_END_NAMESPACE
-#endif // QACCESSIBLE_BASE_H
#endif // QT_CONFIG(accessibility)
+#endif // QACCESSIBLE_BASE_H