Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/accessible/qaccessible.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||||||||||||||||||||||||||
2 | - | |||||||||||||||||||||||||||||||||||||
3 | - | |||||||||||||||||||||||||||||||||||||
4 | - | |||||||||||||||||||||||||||||||||||||
5 | QAccessibleInterface::~QAccessibleInterface() | - | ||||||||||||||||||||||||||||||||||||
6 | { | - | ||||||||||||||||||||||||||||||||||||
7 | } | - | ||||||||||||||||||||||||||||||||||||
8 | namespace { namespace Q_QGS_loader { typedef QFactoryLoader Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
never executed: }guard.store(QtGlobalStatic::Destroyed); never executed: }; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ("org.qt-project.Qt.QAccessibleFactoryInterface", QLatin1String("/accessible")))) : value ("org.qt-project.Qt.QAccessibleFactoryInterface", QLatin1String("/accessible")) { guard.store(QtGlobalStatic::Initialized); } } holder; returnend of block never executed: &holder.value;return &holder.value; never executed: } } } static QGlobalStatic<QFactoryLoader, Q_QGS_loader::innerFunction, Q_QGS_loader::guard> loader;return &holder.value; | 0 | ||||||||||||||||||||||||||||||||||||
9 | - | |||||||||||||||||||||||||||||||||||||
10 | typedef QHash<QString, QAccessiblePlugin*> QAccessiblePluginsHash; | - | ||||||||||||||||||||||||||||||||||||
11 | namespace { namespace Q_QGS_qAccessiblePlugins { typedef QAccessiblePluginsHash Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
never executed: }guard.store(QtGlobalStatic::Destroyed); never executed: }; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnend of block never executed: &holder.value;return &holder.value; never executed: } } } static QGlobalStatic<QAccessiblePluginsHash, Q_QGS_qAccessiblePlugins::innerFunction, Q_QGS_qAccessiblePlugins::guard> qAccessiblePlugins;return &holder.value; | 0 | ||||||||||||||||||||||||||||||||||||
12 | - | |||||||||||||||||||||||||||||||||||||
13 | - | |||||||||||||||||||||||||||||||||||||
14 | - | |||||||||||||||||||||||||||||||||||||
15 | namespace { namespace Q_QGS_qAccessibleFactories { typedef QList<QAccessible::InterfaceFactory> Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
never executed: }guard.store(QtGlobalStatic::Destroyed); never executed: }; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnend of block never executed: &holder.value;return &holder.value; never executed: } } } static QGlobalStatic<QList<QAccessible::InterfaceFactory>, Q_QGS_qAccessibleFactories::innerFunction, Q_QGS_qAccessibleFactories::guard> qAccessibleFactories;return &holder.value; | 0 | ||||||||||||||||||||||||||||||||||||
16 | namespace { namespace Q_QGS_qAccessibleActivationObservers { typedef QList<QAccessible::ActivationObserver *> Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
never executed: }guard.store(QtGlobalStatic::Destroyed); never executed: }; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnend of block never executed: &holder.value;return &holder.value; never executed: } } } static QGlobalStatic<QList<QAccessible::ActivationObserver *>, Q_QGS_qAccessibleActivationObservers::innerFunction, Q_QGS_qAccessibleActivationObservers::guard> qAccessibleActivationObservers;return &holder.value; | 0 | ||||||||||||||||||||||||||||||||||||
17 | - | |||||||||||||||||||||||||||||||||||||
18 | QAccessible::UpdateHandler QAccessible::updateHandler = 0; | - | ||||||||||||||||||||||||||||||||||||
19 | QAccessible::RootObjectHandler QAccessible::rootObjectHandler = 0; | - | ||||||||||||||||||||||||||||||||||||
20 | - | |||||||||||||||||||||||||||||||||||||
21 | static bool cleanupAdded = false; | - | ||||||||||||||||||||||||||||||||||||
22 | - | |||||||||||||||||||||||||||||||||||||
23 | static QPlatformAccessibility *platformAccessibility() | - | ||||||||||||||||||||||||||||||||||||
24 | { | - | ||||||||||||||||||||||||||||||||||||
25 | QPlatformIntegration *pfIntegration = QGuiApplicationPrivate::platformIntegration(); | - | ||||||||||||||||||||||||||||||||||||
26 | return never executed: pfIntegrationreturn pfIntegration ? pfIntegration->accessibility() : 0;
never executed: return pfIntegration ? pfIntegration->accessibility() : 0; | 0 | ||||||||||||||||||||||||||||||||||||
27 | } | - | ||||||||||||||||||||||||||||||||||||
28 | void QAccessible::cleanup() | - | ||||||||||||||||||||||||||||||||||||
29 | { | - | ||||||||||||||||||||||||||||||||||||
30 | if (QPlatformAccessibility *pfAccessibility = platformAccessibility()
| 0 | ||||||||||||||||||||||||||||||||||||
31 | pfAccessibility->cleanup(); never executed: pfAccessibility->cleanup(); | 0 | ||||||||||||||||||||||||||||||||||||
32 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
33 | - | |||||||||||||||||||||||||||||||||||||
34 | static void qAccessibleCleanup() | - | ||||||||||||||||||||||||||||||||||||
35 | { | - | ||||||||||||||||||||||||||||||||||||
36 | qAccessibleActivationObservers()->clear(); | - | ||||||||||||||||||||||||||||||||||||
37 | qAccessibleFactories()->clear(); | - | ||||||||||||||||||||||||||||||||||||
38 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
39 | void QAccessible::installFactory(InterfaceFactory factory) | - | ||||||||||||||||||||||||||||||||||||
40 | { | - | ||||||||||||||||||||||||||||||||||||
41 | if (!factory
| 0 | ||||||||||||||||||||||||||||||||||||
42 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||||||||
43 | - | |||||||||||||||||||||||||||||||||||||
44 | if (!cleanupAdded
| 0 | ||||||||||||||||||||||||||||||||||||
45 | qAddPostRoutine(qAccessibleCleanup); | - | ||||||||||||||||||||||||||||||||||||
46 | cleanupAdded = true; | - | ||||||||||||||||||||||||||||||||||||
47 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
48 | if (qAccessibleFactories()->contains(factory)
| 0 | ||||||||||||||||||||||||||||||||||||
49 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||||||||
50 | qAccessibleFactories()->append(factory); | - | ||||||||||||||||||||||||||||||||||||
51 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
52 | - | |||||||||||||||||||||||||||||||||||||
53 | - | |||||||||||||||||||||||||||||||||||||
54 | - | |||||||||||||||||||||||||||||||||||||
55 | - | |||||||||||||||||||||||||||||||||||||
56 | void QAccessible::removeFactory(InterfaceFactory factory) | - | ||||||||||||||||||||||||||||||||||||
57 | { | - | ||||||||||||||||||||||||||||||||||||
58 | qAccessibleFactories()->removeAll(factory); | - | ||||||||||||||||||||||||||||||||||||
59 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
60 | QAccessible::UpdateHandler QAccessible::installUpdateHandler(UpdateHandler handler) | - | ||||||||||||||||||||||||||||||||||||
61 | { | - | ||||||||||||||||||||||||||||||||||||
62 | UpdateHandler old = updateHandler; | - | ||||||||||||||||||||||||||||||||||||
63 | updateHandler = handler; | - | ||||||||||||||||||||||||||||||||||||
64 | return never executed: old;return old; never executed: return old; | 0 | ||||||||||||||||||||||||||||||||||||
65 | } | - | ||||||||||||||||||||||||||||||||||||
66 | - | |||||||||||||||||||||||||||||||||||||
67 | - | |||||||||||||||||||||||||||||||||||||
68 | - | |||||||||||||||||||||||||||||||||||||
69 | - | |||||||||||||||||||||||||||||||||||||
70 | - | |||||||||||||||||||||||||||||||||||||
71 | - | |||||||||||||||||||||||||||||||||||||
72 | - | |||||||||||||||||||||||||||||||||||||
73 | QAccessible::RootObjectHandler QAccessible::installRootObjectHandler(RootObjectHandler handler) | - | ||||||||||||||||||||||||||||||||||||
74 | { | - | ||||||||||||||||||||||||||||||||||||
75 | RootObjectHandler old = rootObjectHandler; | - | ||||||||||||||||||||||||||||||||||||
76 | rootObjectHandler = handler; | - | ||||||||||||||||||||||||||||||||||||
77 | return never executed: old;return old; never executed: return old; | 0 | ||||||||||||||||||||||||||||||||||||
78 | } | - | ||||||||||||||||||||||||||||||||||||
79 | QAccessible::ActivationObserver::~ActivationObserver() | - | ||||||||||||||||||||||||||||||||||||
80 | { | - | ||||||||||||||||||||||||||||||||||||
81 | - | |||||||||||||||||||||||||||||||||||||
82 | } | - | ||||||||||||||||||||||||||||||||||||
83 | - | |||||||||||||||||||||||||||||||||||||
84 | - | |||||||||||||||||||||||||||||||||||||
85 | - | |||||||||||||||||||||||||||||||||||||
86 | - | |||||||||||||||||||||||||||||||||||||
87 | - | |||||||||||||||||||||||||||||||||||||
88 | - | |||||||||||||||||||||||||||||||||||||
89 | void QAccessible::installActivationObserver(QAccessible::ActivationObserver *observer) | - | ||||||||||||||||||||||||||||||||||||
90 | { | - | ||||||||||||||||||||||||||||||||||||
91 | if (!observer
| 0 | ||||||||||||||||||||||||||||||||||||
92 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||||||||
93 | - | |||||||||||||||||||||||||||||||||||||
94 | if (!cleanupAdded
| 0 | ||||||||||||||||||||||||||||||||||||
95 | qAddPostRoutine(qAccessibleCleanup); | - | ||||||||||||||||||||||||||||||||||||
96 | cleanupAdded = true; | - | ||||||||||||||||||||||||||||||||||||
97 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
98 | if (qAccessibleActivationObservers()->contains(observer)
| 0 | ||||||||||||||||||||||||||||||||||||
99 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||||||||
100 | qAccessibleActivationObservers()->append(observer); | - | ||||||||||||||||||||||||||||||||||||
101 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
102 | - | |||||||||||||||||||||||||||||||||||||
103 | - | |||||||||||||||||||||||||||||||||||||
104 | - | |||||||||||||||||||||||||||||||||||||
105 | - | |||||||||||||||||||||||||||||||||||||
106 | - | |||||||||||||||||||||||||||||||||||||
107 | - | |||||||||||||||||||||||||||||||||||||
108 | - | |||||||||||||||||||||||||||||||||||||
109 | void QAccessible::removeActivationObserver(ActivationObserver *observer) | - | ||||||||||||||||||||||||||||||||||||
110 | { | - | ||||||||||||||||||||||||||||||||||||
111 | qAccessibleActivationObservers()->removeAll(observer); | - | ||||||||||||||||||||||||||||||||||||
112 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
113 | QAccessibleInterface *QAccessible::queryAccessibleInterface(QObject *object) | - | ||||||||||||||||||||||||||||||||||||
114 | { | - | ||||||||||||||||||||||||||||||||||||
115 | if (!object
| 0 | ||||||||||||||||||||||||||||||||||||
116 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||||||||||||||||||||||||||
117 | - | |||||||||||||||||||||||||||||||||||||
118 | if (Id id = QAccessibleCache::instance()->objectToId.value(object)
| 0 | ||||||||||||||||||||||||||||||||||||
119 | return never executed: QAccessibleCache::instance()->interfaceForId(id);return QAccessibleCache::instance()->interfaceForId(id); never executed: return QAccessibleCache::instance()->interfaceForId(id); | 0 | ||||||||||||||||||||||||||||||||||||
120 | - | |||||||||||||||||||||||||||||||||||||
121 | - | |||||||||||||||||||||||||||||||||||||
122 | - | |||||||||||||||||||||||||||||||||||||
123 | const QMetaObject *mo = object->metaObject(); | - | ||||||||||||||||||||||||||||||||||||
124 | while (mo
| 0 | ||||||||||||||||||||||||||||||||||||
125 | const QString cn = QLatin1String(mo->className()); | - | ||||||||||||||||||||||||||||||||||||
126 | - | |||||||||||||||||||||||||||||||||||||
127 | - | |||||||||||||||||||||||||||||||||||||
128 | for (int i = qAccessibleFactories()->count(); i > 0
| 0 | ||||||||||||||||||||||||||||||||||||
129 | InterfaceFactory factory = qAccessibleFactories()->at(i - 1); | - | ||||||||||||||||||||||||||||||||||||
130 | if (QAccessibleInterface *iface = factory(cn, object)
| 0 | ||||||||||||||||||||||||||||||||||||
131 | QAccessibleCache::instance()->insert(object, iface); | - | ||||||||||||||||||||||||||||||||||||
132 | ((!(QAccessibleCache::instance()->objectToId.contains(object))) ? qt_assert("QAccessibleCache::instance()->objectToId.contains(object)",__FILE__,683) : qt_noop()); | - | ||||||||||||||||||||||||||||||||||||
133 | return never executed: iface;return iface; never executed: return iface; | 0 | ||||||||||||||||||||||||||||||||||||
134 | } | - | ||||||||||||||||||||||||||||||||||||
135 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
136 | - | |||||||||||||||||||||||||||||||||||||
137 | - | |||||||||||||||||||||||||||||||||||||
138 | - | |||||||||||||||||||||||||||||||||||||
139 | if (!qAccessiblePlugins()->contains(cn)
| 0 | ||||||||||||||||||||||||||||||||||||
140 | QAccessiblePlugin *factory = 0; | - | ||||||||||||||||||||||||||||||||||||
141 | const int index = loader()->indexOf(cn); | - | ||||||||||||||||||||||||||||||||||||
142 | if (index != -1
| 0 | ||||||||||||||||||||||||||||||||||||
143 | factory = qobject_cast<QAccessiblePlugin *>(loader()->instance(index)); never executed: factory = qobject_cast<QAccessiblePlugin *>(loader()->instance(index)); | 0 | ||||||||||||||||||||||||||||||||||||
144 | qAccessiblePlugins()->insert(cn, factory); | - | ||||||||||||||||||||||||||||||||||||
145 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
146 | - | |||||||||||||||||||||||||||||||||||||
147 | - | |||||||||||||||||||||||||||||||||||||
148 | ((!(qAccessiblePlugins()->contains(cn))) ? qt_assert("qAccessiblePlugins()->contains(cn)",__FILE__,699) : qt_noop()); | - | ||||||||||||||||||||||||||||||||||||
149 | QAccessiblePlugin *factory = qAccessiblePlugins()->value(cn); | - | ||||||||||||||||||||||||||||||||||||
150 | if (factory
| 0 | ||||||||||||||||||||||||||||||||||||
151 | QAccessibleInterface *result = factory->create(cn, object); | - | ||||||||||||||||||||||||||||||||||||
152 | if (result
| 0 | ||||||||||||||||||||||||||||||||||||
153 | QAccessibleCache::instance()->insert(object, result); | - | ||||||||||||||||||||||||||||||||||||
154 | ((!(QAccessibleCache::instance()->objectToId.contains(object))) ? qt_assert("QAccessibleCache::instance()->objectToId.contains(object)",__FILE__,705) : qt_noop()); | - | ||||||||||||||||||||||||||||||||||||
155 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
156 | return never executed: result;return result; never executed: return result; | 0 | ||||||||||||||||||||||||||||||||||||
157 | } | - | ||||||||||||||||||||||||||||||||||||
158 | - | |||||||||||||||||||||||||||||||||||||
159 | mo = mo->superClass(); | - | ||||||||||||||||||||||||||||||||||||
160 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
161 | - | |||||||||||||||||||||||||||||||||||||
162 | if (object == (static_cast<QGuiApplication *>(QCoreApplication::instance()))
| 0 | ||||||||||||||||||||||||||||||||||||
163 | QAccessibleInterface *appInterface = new QAccessibleApplication; | - | ||||||||||||||||||||||||||||||||||||
164 | QAccessibleCache::instance()->insert(object, appInterface); | - | ||||||||||||||||||||||||||||||||||||
165 | ((!(QAccessibleCache::instance()->objectToId.contains((static_cast<QGuiApplication *>(QCoreApplication::instance()))))) ? qt_assert("QAccessibleCache::instance()->objectToId.contains(qApp)",__FILE__,716) : qt_noop()); | - | ||||||||||||||||||||||||||||||||||||
166 | return never executed: appInterface;return appInterface; never executed: return appInterface; | 0 | ||||||||||||||||||||||||||||||||||||
167 | } | - | ||||||||||||||||||||||||||||||||||||
168 | - | |||||||||||||||||||||||||||||||||||||
169 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||||||||||||||||||||||||||
170 | } | - | ||||||||||||||||||||||||||||||||||||
171 | QAccessible::Id QAccessible::registerAccessibleInterface(QAccessibleInterface *iface) | - | ||||||||||||||||||||||||||||||||||||
172 | { | - | ||||||||||||||||||||||||||||||||||||
173 | ((!(iface)) ? qt_assert("iface",__FILE__,739) : qt_noop()); | - | ||||||||||||||||||||||||||||||||||||
174 | return never executed: QAccessibleCache::instance()->insert(iface->object(), iface);return QAccessibleCache::instance()->insert(iface->object(), iface); never executed: return QAccessibleCache::instance()->insert(iface->object(), iface); | 0 | ||||||||||||||||||||||||||||||||||||
175 | } | - | ||||||||||||||||||||||||||||||||||||
176 | - | |||||||||||||||||||||||||||||||||||||
177 | - | |||||||||||||||||||||||||||||||||||||
178 | - | |||||||||||||||||||||||||||||||||||||
179 | - | |||||||||||||||||||||||||||||||||||||
180 | - | |||||||||||||||||||||||||||||||||||||
181 | - | |||||||||||||||||||||||||||||||||||||
182 | void QAccessible::deleteAccessibleInterface(Id id) | - | ||||||||||||||||||||||||||||||||||||
183 | { | - | ||||||||||||||||||||||||||||||||||||
184 | QAccessibleCache::instance()->deleteInterface(id); | - | ||||||||||||||||||||||||||||||||||||
185 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
186 | - | |||||||||||||||||||||||||||||||||||||
187 | - | |||||||||||||||||||||||||||||||||||||
188 | - | |||||||||||||||||||||||||||||||||||||
189 | - | |||||||||||||||||||||||||||||||||||||
190 | QAccessible::Id QAccessible::uniqueId(QAccessibleInterface *iface) | - | ||||||||||||||||||||||||||||||||||||
191 | { | - | ||||||||||||||||||||||||||||||||||||
192 | Id id = QAccessibleCache::instance()->idForInterface(iface); | - | ||||||||||||||||||||||||||||||||||||
193 | if (!id
| 0 | ||||||||||||||||||||||||||||||||||||
194 | id = registerAccessibleInterface(iface); never executed: id = registerAccessibleInterface(iface); | 0 | ||||||||||||||||||||||||||||||||||||
195 | return never executed: id;return id; never executed: return id; | 0 | ||||||||||||||||||||||||||||||||||||
196 | } | - | ||||||||||||||||||||||||||||||||||||
197 | - | |||||||||||||||||||||||||||||||||||||
198 | - | |||||||||||||||||||||||||||||||||||||
199 | - | |||||||||||||||||||||||||||||||||||||
200 | - | |||||||||||||||||||||||||||||||||||||
201 | - | |||||||||||||||||||||||||||||||||||||
202 | - | |||||||||||||||||||||||||||||||||||||
203 | QAccessibleInterface *QAccessible::accessibleInterface(Id id) | - | ||||||||||||||||||||||||||||||||||||
204 | { | - | ||||||||||||||||||||||||||||||||||||
205 | return never executed: QAccessibleCache::instance()->interfaceForId(id);return QAccessibleCache::instance()->interfaceForId(id); never executed: return QAccessibleCache::instance()->interfaceForId(id); | 0 | ||||||||||||||||||||||||||||||||||||
206 | } | - | ||||||||||||||||||||||||||||||||||||
207 | bool QAccessible::isActive() | - | ||||||||||||||||||||||||||||||||||||
208 | { | - | ||||||||||||||||||||||||||||||||||||
209 | if (QPlatformAccessibility *pfAccessibility = platformAccessibility()
| 0 | ||||||||||||||||||||||||||||||||||||
210 | return never executed: pfAccessibility->isActive();return pfAccessibility->isActive(); never executed: return pfAccessibility->isActive(); | 0 | ||||||||||||||||||||||||||||||||||||
211 | return never executed: false;return false; never executed: return false; | 0 | ||||||||||||||||||||||||||||||||||||
212 | } | - | ||||||||||||||||||||||||||||||||||||
213 | - | |||||||||||||||||||||||||||||||||||||
214 | - | |||||||||||||||||||||||||||||||||||||
215 | - | |||||||||||||||||||||||||||||||||||||
216 | - | |||||||||||||||||||||||||||||||||||||
217 | void QAccessible::setActive(bool active) | - | ||||||||||||||||||||||||||||||||||||
218 | { | - | ||||||||||||||||||||||||||||||||||||
219 | for (int i = 0; i < qAccessibleActivationObservers()->count()
| 0 | ||||||||||||||||||||||||||||||||||||
220 | qAccessibleActivationObservers()->at(i)->accessibilityActiveChanged(active); never executed: qAccessibleActivationObservers()->at(i)->accessibilityActiveChanged(active); | 0 | ||||||||||||||||||||||||||||||||||||
221 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
222 | void QAccessible::setRootObject(QObject *object) | - | ||||||||||||||||||||||||||||||||||||
223 | { | - | ||||||||||||||||||||||||||||||||||||
224 | if (rootObjectHandler
| 0 | ||||||||||||||||||||||||||||||||||||
225 | rootObjectHandler(object); | - | ||||||||||||||||||||||||||||||||||||
226 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||||||||
227 | } | - | ||||||||||||||||||||||||||||||||||||
228 | - | |||||||||||||||||||||||||||||||||||||
229 | if (QPlatformAccessibility *pfAccessibility = platformAccessibility()
| 0 | ||||||||||||||||||||||||||||||||||||
230 | pfAccessibility->setRootObject(object); never executed: pfAccessibility->setRootObject(object); | 0 | ||||||||||||||||||||||||||||||||||||
231 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
232 | void QAccessible::updateAccessibility(QAccessibleEvent *event) | - | ||||||||||||||||||||||||||||||||||||
233 | { | - | ||||||||||||||||||||||||||||||||||||
234 | - | |||||||||||||||||||||||||||||||||||||
235 | - | |||||||||||||||||||||||||||||||||||||
236 | - | |||||||||||||||||||||||||||||||||||||
237 | - | |||||||||||||||||||||||||||||||||||||
238 | - | |||||||||||||||||||||||||||||||||||||
239 | - | |||||||||||||||||||||||||||||||||||||
240 | QAccessibleInterface *iface = event->accessibleInterface(); | - | ||||||||||||||||||||||||||||||||||||
241 | if (isActive()
| 0 | ||||||||||||||||||||||||||||||||||||
242 | if (event->type() == QAccessible::TableModelChanged
| 0 | ||||||||||||||||||||||||||||||||||||
243 | if (iface->tableInterface()
| 0 | ||||||||||||||||||||||||||||||||||||
244 | iface->tableInterface()->modelChange(static_cast<QAccessibleTableModelChangeEvent*>(event)); never executed: iface->tableInterface()->modelChange(static_cast<QAccessibleTableModelChangeEvent*>(event)); | 0 | ||||||||||||||||||||||||||||||||||||
245 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
246 | - | |||||||||||||||||||||||||||||||||||||
247 | if (updateHandler
| 0 | ||||||||||||||||||||||||||||||||||||
248 | updateHandler(event); | - | ||||||||||||||||||||||||||||||||||||
249 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||||||||
250 | } | - | ||||||||||||||||||||||||||||||||||||
251 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
252 | - | |||||||||||||||||||||||||||||||||||||
253 | if (QPlatformAccessibility *pfAccessibility = platformAccessibility()
| 0 | ||||||||||||||||||||||||||||||||||||
254 | pfAccessibility->notifyAccessibilityUpdate(event); never executed: pfAccessibility->notifyAccessibilityUpdate(event); | 0 | ||||||||||||||||||||||||||||||||||||
255 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
256 | QPair< int, int > QAccessible::qAccessibleTextBoundaryHelper(const QTextCursor &offsetCursor, TextBoundaryType boundaryType) | - | ||||||||||||||||||||||||||||||||||||
257 | { | - | ||||||||||||||||||||||||||||||||||||
258 | ((!(!offsetCursor.isNull())) ? qt_assert("!offsetCursor.isNull()",__FILE__,890) : qt_noop()); | - | ||||||||||||||||||||||||||||||||||||
259 | - | |||||||||||||||||||||||||||||||||||||
260 | QTextCursor endCursor = offsetCursor; | - | ||||||||||||||||||||||||||||||||||||
261 | endCursor.movePosition(QTextCursor::End); | - | ||||||||||||||||||||||||||||||||||||
262 | int characterCount = endCursor.position(); | - | ||||||||||||||||||||||||||||||||||||
263 | - | |||||||||||||||||||||||||||||||||||||
264 | QPair<int, int> result; | - | ||||||||||||||||||||||||||||||||||||
265 | QTextCursor cursor = offsetCursor; | - | ||||||||||||||||||||||||||||||||||||
266 | switch (boundaryType) { | - | ||||||||||||||||||||||||||||||||||||
267 | case never executed: CharBoundary:case CharBoundary: never executed: case CharBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
268 | result.first = cursor.position(); | - | ||||||||||||||||||||||||||||||||||||
269 | cursor.movePosition(QTextCursor::NextCharacter, QTextCursor::KeepAnchor); | - | ||||||||||||||||||||||||||||||||||||
270 | result.second = cursor.position(); | - | ||||||||||||||||||||||||||||||||||||
271 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
272 | case never executed: WordBoundary:case WordBoundary: never executed: case WordBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
273 | cursor.movePosition(QTextCursor::StartOfWord, QTextCursor::MoveAnchor); | - | ||||||||||||||||||||||||||||||||||||
274 | result.first = cursor.position(); | - | ||||||||||||||||||||||||||||||||||||
275 | cursor.movePosition(QTextCursor::EndOfWord, QTextCursor::KeepAnchor); | - | ||||||||||||||||||||||||||||||||||||
276 | result.second = cursor.position(); | - | ||||||||||||||||||||||||||||||||||||
277 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
278 | case never executed: SentenceBoundary:case SentenceBoundary: never executed: {case SentenceBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
279 | - | |||||||||||||||||||||||||||||||||||||
280 | - | |||||||||||||||||||||||||||||||||||||
281 | - | |||||||||||||||||||||||||||||||||||||
282 | cursor.movePosition(QTextCursor::StartOfBlock, QTextCursor::MoveAnchor); | - | ||||||||||||||||||||||||||||||||||||
283 | result.first = cursor.position(); | - | ||||||||||||||||||||||||||||||||||||
284 | cursor.movePosition(QTextCursor::EndOfBlock, QTextCursor::KeepAnchor); | - | ||||||||||||||||||||||||||||||||||||
285 | result.second = cursor.position(); | - | ||||||||||||||||||||||||||||||||||||
286 | QString blockText = cursor.selectedText(); | - | ||||||||||||||||||||||||||||||||||||
287 | const int offsetWithinBlockText = offsetCursor.position() - result.first; | - | ||||||||||||||||||||||||||||||||||||
288 | QTextBoundaryFinder sentenceFinder(QTextBoundaryFinder::Sentence, blockText); | - | ||||||||||||||||||||||||||||||||||||
289 | sentenceFinder.setPosition(offsetWithinBlockText); | - | ||||||||||||||||||||||||||||||||||||
290 | int prevBoundary = offsetWithinBlockText; | - | ||||||||||||||||||||||||||||||||||||
291 | int nextBoundary = offsetWithinBlockText; | - | ||||||||||||||||||||||||||||||||||||
292 | if (!(sentenceFinder.boundaryReasons() & QTextBoundaryFinder::StartOfItem)
| 0 | ||||||||||||||||||||||||||||||||||||
293 | prevBoundary = sentenceFinder.toPreviousBoundary(); never executed: prevBoundary = sentenceFinder.toPreviousBoundary(); | 0 | ||||||||||||||||||||||||||||||||||||
294 | nextBoundary = sentenceFinder.toNextBoundary(); | - | ||||||||||||||||||||||||||||||||||||
295 | if (nextBoundary != -1
| 0 | ||||||||||||||||||||||||||||||||||||
296 | result.second = result.first + nextBoundary; never executed: result.second = result.first + nextBoundary; | 0 | ||||||||||||||||||||||||||||||||||||
297 | if (prevBoundary != -1
| 0 | ||||||||||||||||||||||||||||||||||||
298 | result.first += prevBoundary; never executed: result.first += prevBoundary; | 0 | ||||||||||||||||||||||||||||||||||||
299 | break; never executed: }break; | 0 | ||||||||||||||||||||||||||||||||||||
300 | case never executed: LineBoundary:case LineBoundary: never executed: case LineBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
301 | cursor.movePosition(QTextCursor::StartOfLine, QTextCursor::MoveAnchor); | - | ||||||||||||||||||||||||||||||||||||
302 | result.first = cursor.position(); | - | ||||||||||||||||||||||||||||||||||||
303 | cursor.movePosition(QTextCursor::EndOfLine, QTextCursor::KeepAnchor); | - | ||||||||||||||||||||||||||||||||||||
304 | result.second = cursor.position(); | - | ||||||||||||||||||||||||||||||||||||
305 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
306 | case never executed: ParagraphBoundary:case ParagraphBoundary: never executed: case ParagraphBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
307 | cursor.movePosition(QTextCursor::StartOfBlock, QTextCursor::MoveAnchor); | - | ||||||||||||||||||||||||||||||||||||
308 | result.first = cursor.position(); | - | ||||||||||||||||||||||||||||||||||||
309 | cursor.movePosition(QTextCursor::EndOfBlock, QTextCursor::KeepAnchor); | - | ||||||||||||||||||||||||||||||||||||
310 | result.second = cursor.position(); | - | ||||||||||||||||||||||||||||||||||||
311 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
312 | case never executed: NoBoundary:case NoBoundary: never executed: case NoBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
313 | result.first = 0; | - | ||||||||||||||||||||||||||||||||||||
314 | result.second = characterCount; | - | ||||||||||||||||||||||||||||||||||||
315 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
316 | } | - | ||||||||||||||||||||||||||||||||||||
317 | return never executed: result;return result; never executed: return result; | 0 | ||||||||||||||||||||||||||||||||||||
318 | } | - | ||||||||||||||||||||||||||||||||||||
319 | QVector<QPair<QAccessibleInterface*, QAccessible::Relation> > | - | ||||||||||||||||||||||||||||||||||||
320 | QAccessibleInterface::relations(QAccessible::Relation ) const | - | ||||||||||||||||||||||||||||||||||||
321 | { | - | ||||||||||||||||||||||||||||||||||||
322 | return never executed: QVector<QPair<QAccessibleInterface*, QAccessible::Relation> >();return QVector<QPair<QAccessibleInterface*, QAccessible::Relation> >(); never executed: return QVector<QPair<QAccessibleInterface*, QAccessible::Relation> >(); | 0 | ||||||||||||||||||||||||||||||||||||
323 | } | - | ||||||||||||||||||||||||||||||||||||
324 | - | |||||||||||||||||||||||||||||||||||||
325 | - | |||||||||||||||||||||||||||||||||||||
326 | - | |||||||||||||||||||||||||||||||||||||
327 | - | |||||||||||||||||||||||||||||||||||||
328 | - | |||||||||||||||||||||||||||||||||||||
329 | - | |||||||||||||||||||||||||||||||||||||
330 | QAccessibleInterface *QAccessibleInterface::focusChild() const | - | ||||||||||||||||||||||||||||||||||||
331 | { | - | ||||||||||||||||||||||||||||||||||||
332 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||||||||||||||||||||||||||
333 | } | - | ||||||||||||||||||||||||||||||||||||
334 | QColor QAccessibleInterface::foregroundColor() const | - | ||||||||||||||||||||||||||||||||||||
335 | { | - | ||||||||||||||||||||||||||||||||||||
336 | return never executed: QColor();return QColor(); never executed: return QColor(); | 0 | ||||||||||||||||||||||||||||||||||||
337 | } | - | ||||||||||||||||||||||||||||||||||||
338 | - | |||||||||||||||||||||||||||||||||||||
339 | - | |||||||||||||||||||||||||||||||||||||
340 | - | |||||||||||||||||||||||||||||||||||||
341 | - | |||||||||||||||||||||||||||||||||||||
342 | - | |||||||||||||||||||||||||||||||||||||
343 | - | |||||||||||||||||||||||||||||||||||||
344 | QColor QAccessibleInterface::backgroundColor() const | - | ||||||||||||||||||||||||||||||||||||
345 | { | - | ||||||||||||||||||||||||||||||||||||
346 | return never executed: QColor();return QColor(); never executed: return QColor(); | 0 | ||||||||||||||||||||||||||||||||||||
347 | } | - | ||||||||||||||||||||||||||||||||||||
348 | QAccessibleEvent::~QAccessibleEvent() | - | ||||||||||||||||||||||||||||||||||||
349 | { | - | ||||||||||||||||||||||||||||||||||||
350 | - | |||||||||||||||||||||||||||||||||||||
351 | } | - | ||||||||||||||||||||||||||||||||||||
352 | QAccessible::Id QAccessibleEvent::uniqueId() const | - | ||||||||||||||||||||||||||||||||||||
353 | { | - | ||||||||||||||||||||||||||||||||||||
354 | if (!m_object
| 0 | ||||||||||||||||||||||||||||||||||||
355 | return never executed: m_uniqueId;return m_uniqueId; never executed: return m_uniqueId; | 0 | ||||||||||||||||||||||||||||||||||||
356 | QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(m_object); | - | ||||||||||||||||||||||||||||||||||||
357 | if (!iface
| 0 | ||||||||||||||||||||||||||||||||||||
358 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||||||||||||||||||||||||||
359 | if (m_child != -1
| 0 | ||||||||||||||||||||||||||||||||||||
360 | iface = iface->child(m_child); never executed: iface = iface->child(m_child); | 0 | ||||||||||||||||||||||||||||||||||||
361 | return never executed: QAccessible::uniqueId(iface);return QAccessible::uniqueId(iface); never executed: return QAccessible::uniqueId(iface); | 0 | ||||||||||||||||||||||||||||||||||||
362 | } | - | ||||||||||||||||||||||||||||||||||||
363 | QAccessibleValueChangeEvent::~QAccessibleValueChangeEvent() | - | ||||||||||||||||||||||||||||||||||||
364 | { | - | ||||||||||||||||||||||||||||||||||||
365 | - | |||||||||||||||||||||||||||||||||||||
366 | } | - | ||||||||||||||||||||||||||||||||||||
367 | QAccessibleStateChangeEvent::~QAccessibleStateChangeEvent() | - | ||||||||||||||||||||||||||||||||||||
368 | { | - | ||||||||||||||||||||||||||||||||||||
369 | - | |||||||||||||||||||||||||||||||||||||
370 | } | - | ||||||||||||||||||||||||||||||||||||
371 | QAccessibleTableModelChangeEvent::~QAccessibleTableModelChangeEvent() | - | ||||||||||||||||||||||||||||||||||||
372 | { | - | ||||||||||||||||||||||||||||||||||||
373 | - | |||||||||||||||||||||||||||||||||||||
374 | } | - | ||||||||||||||||||||||||||||||||||||
375 | QAccessibleTextCursorEvent::~QAccessibleTextCursorEvent() | - | ||||||||||||||||||||||||||||||||||||
376 | { | - | ||||||||||||||||||||||||||||||||||||
377 | - | |||||||||||||||||||||||||||||||||||||
378 | } | - | ||||||||||||||||||||||||||||||||||||
379 | QAccessibleTextInsertEvent::~QAccessibleTextInsertEvent() | - | ||||||||||||||||||||||||||||||||||||
380 | { | - | ||||||||||||||||||||||||||||||||||||
381 | - | |||||||||||||||||||||||||||||||||||||
382 | } | - | ||||||||||||||||||||||||||||||||||||
383 | QAccessibleTextRemoveEvent::~QAccessibleTextRemoveEvent() | - | ||||||||||||||||||||||||||||||||||||
384 | { | - | ||||||||||||||||||||||||||||||||||||
385 | - | |||||||||||||||||||||||||||||||||||||
386 | } | - | ||||||||||||||||||||||||||||||||||||
387 | QAccessibleTextUpdateEvent::~QAccessibleTextUpdateEvent() | - | ||||||||||||||||||||||||||||||||||||
388 | { | - | ||||||||||||||||||||||||||||||||||||
389 | - | |||||||||||||||||||||||||||||||||||||
390 | } | - | ||||||||||||||||||||||||||||||||||||
391 | QAccessibleTextSelectionEvent::~QAccessibleTextSelectionEvent() | - | ||||||||||||||||||||||||||||||||||||
392 | { | - | ||||||||||||||||||||||||||||||||||||
393 | - | |||||||||||||||||||||||||||||||||||||
394 | } | - | ||||||||||||||||||||||||||||||||||||
395 | - | |||||||||||||||||||||||||||||||||||||
396 | - | |||||||||||||||||||||||||||||||||||||
397 | - | |||||||||||||||||||||||||||||||||||||
398 | - | |||||||||||||||||||||||||||||||||||||
399 | - | |||||||||||||||||||||||||||||||||||||
400 | - | |||||||||||||||||||||||||||||||||||||
401 | - | |||||||||||||||||||||||||||||||||||||
402 | QAccessibleInterface *QAccessibleEvent::accessibleInterface() const | - | ||||||||||||||||||||||||||||||||||||
403 | { | - | ||||||||||||||||||||||||||||||||||||
404 | if (m_object == 0
| 0 | ||||||||||||||||||||||||||||||||||||
405 | return never executed: QAccessible::accessibleInterface(m_uniqueId);return QAccessible::accessibleInterface(m_uniqueId); never executed: return QAccessible::accessibleInterface(m_uniqueId); | 0 | ||||||||||||||||||||||||||||||||||||
406 | - | |||||||||||||||||||||||||||||||||||||
407 | QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(m_object); | - | ||||||||||||||||||||||||||||||||||||
408 | if (!iface
| 0 | ||||||||||||||||||||||||||||||||||||
409 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||||||||||||||||||||||||||
410 | - | |||||||||||||||||||||||||||||||||||||
411 | if (m_child >= 0
| 0 | ||||||||||||||||||||||||||||||||||||
412 | QAccessibleInterface *child = iface->child(m_child); | - | ||||||||||||||||||||||||||||||||||||
413 | if (child
| 0 | ||||||||||||||||||||||||||||||||||||
414 | iface = child; | - | ||||||||||||||||||||||||||||||||||||
415 | } never executed: else {end of block | 0 | ||||||||||||||||||||||||||||||||||||
416 | QMessageLogger(__FILE__, 1769, __PRETTY_FUNCTION__).warning() << "Cannot creat accessible child interface for object: " << m_object << " index: " << m_child; | - | ||||||||||||||||||||||||||||||||||||
417 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
418 | } | - | ||||||||||||||||||||||||||||||||||||
419 | return never executed: iface;return iface; never executed: return iface; | 0 | ||||||||||||||||||||||||||||||||||||
420 | } | - | ||||||||||||||||||||||||||||||||||||
421 | QWindow *QAccessibleInterface::window() const | - | ||||||||||||||||||||||||||||||||||||
422 | { | - | ||||||||||||||||||||||||||||||||||||
423 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||||||||||||||||||||||||||
424 | } | - | ||||||||||||||||||||||||||||||||||||
425 | void QAccessibleInterface::virtual_hook(int , void * ) | - | ||||||||||||||||||||||||||||||||||||
426 | { | - | ||||||||||||||||||||||||||||||||||||
427 | } | - | ||||||||||||||||||||||||||||||||||||
428 | const char *qAccessibleRoleString(QAccessible::Role role) | - | ||||||||||||||||||||||||||||||||||||
429 | { | - | ||||||||||||||||||||||||||||||||||||
430 | if (role >= QAccessible::UserRole
| 0 | ||||||||||||||||||||||||||||||||||||
431 | role = QAccessible::UserRole; never executed: role = QAccessible::UserRole; | 0 | ||||||||||||||||||||||||||||||||||||
432 | static int roleEnum = QAccessible::staticMetaObject.indexOfEnumerator("Role"); | - | ||||||||||||||||||||||||||||||||||||
433 | return never executed: QAccessible::staticMetaObject.enumerator(roleEnum).valueToKey(role);return QAccessible::staticMetaObject.enumerator(roleEnum).valueToKey(role); never executed: return QAccessible::staticMetaObject.enumerator(roleEnum).valueToKey(role); | 0 | ||||||||||||||||||||||||||||||||||||
434 | } | - | ||||||||||||||||||||||||||||||||||||
435 | - | |||||||||||||||||||||||||||||||||||||
436 | - | |||||||||||||||||||||||||||||||||||||
437 | const char *qAccessibleEventString(QAccessible::Event event) | - | ||||||||||||||||||||||||||||||||||||
438 | { | - | ||||||||||||||||||||||||||||||||||||
439 | static int eventEnum = QAccessible::staticMetaObject.indexOfEnumerator("Event"); | - | ||||||||||||||||||||||||||||||||||||
440 | return never executed: QAccessible::staticMetaObject.enumerator(eventEnum).valueToKey(event);return QAccessible::staticMetaObject.enumerator(eventEnum).valueToKey(event); never executed: return QAccessible::staticMetaObject.enumerator(eventEnum).valueToKey(event); | 0 | ||||||||||||||||||||||||||||||||||||
441 | } | - | ||||||||||||||||||||||||||||||||||||
442 | - | |||||||||||||||||||||||||||||||||||||
443 | - | |||||||||||||||||||||||||||||||||||||
444 | bool operator==(const QAccessible::State &first, const QAccessible::State &second) | - | ||||||||||||||||||||||||||||||||||||
445 | { | - | ||||||||||||||||||||||||||||||||||||
446 | return never executed: memcmp(&first, &second, sizeof(QAccessible::State)) == 0;return memcmp(&first, &second, sizeof(QAccessible::State)) == 0; never executed: return memcmp(&first, &second, sizeof(QAccessible::State)) == 0; | 0 | ||||||||||||||||||||||||||||||||||||
447 | } | - | ||||||||||||||||||||||||||||||||||||
448 | - | |||||||||||||||||||||||||||||||||||||
449 | - | |||||||||||||||||||||||||||||||||||||
450 | - | |||||||||||||||||||||||||||||||||||||
451 | __attribute__((visibility("default"))) QDebug operator<<(QDebug d, const QAccessibleInterface *iface) | - | ||||||||||||||||||||||||||||||||||||
452 | { | - | ||||||||||||||||||||||||||||||||||||
453 | QDebugStateSaver saver(d); | - | ||||||||||||||||||||||||||||||||||||
454 | if (!iface
| 0 | ||||||||||||||||||||||||||||||||||||
455 | d << "QAccessibleInterface(null)"; | - | ||||||||||||||||||||||||||||||||||||
456 | return never executed: d;return d; never executed: return d; | 0 | ||||||||||||||||||||||||||||||||||||
457 | } | - | ||||||||||||||||||||||||||||||||||||
458 | d.nospace(); | - | ||||||||||||||||||||||||||||||||||||
459 | d << "QAccessibleInterface(" << hex << (const void *) iface << dec; | - | ||||||||||||||||||||||||||||||||||||
460 | if (iface->isValid()
| 0 | ||||||||||||||||||||||||||||||||||||
461 | d << " name=" << iface->text(QAccessible::Name) << ' '; | - | ||||||||||||||||||||||||||||||||||||
462 | d << "role=" << qAccessibleRoleString(iface->role()) << ' '; | - | ||||||||||||||||||||||||||||||||||||
463 | if (iface->childCount()
| 0 | ||||||||||||||||||||||||||||||||||||
464 | d << "childc=" << iface->childCount() << ' '; never executed: d << "childc=" << iface->childCount() << ' '; | 0 | ||||||||||||||||||||||||||||||||||||
465 | if (iface->object()
| 0 | ||||||||||||||||||||||||||||||||||||
466 | d << "obj=" << iface->object(); | - | ||||||||||||||||||||||||||||||||||||
467 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
468 | QStringList stateStrings; | - | ||||||||||||||||||||||||||||||||||||
469 | QAccessible::State st = iface->state(); | - | ||||||||||||||||||||||||||||||||||||
470 | if (st.focusable
| 0 | ||||||||||||||||||||||||||||||||||||
471 | stateStrings << QLatin1String("focusable"); never executed: stateStrings << QLatin1String("focusable"); | 0 | ||||||||||||||||||||||||||||||||||||
472 | if (st.focused
| 0 | ||||||||||||||||||||||||||||||||||||
473 | stateStrings << QLatin1String("focused"); never executed: stateStrings << QLatin1String("focused"); | 0 | ||||||||||||||||||||||||||||||||||||
474 | if (st.selected
| 0 | ||||||||||||||||||||||||||||||||||||
475 | stateStrings << QLatin1String("selected"); never executed: stateStrings << QLatin1String("selected"); | 0 | ||||||||||||||||||||||||||||||||||||
476 | if (st.invisible
| 0 | ||||||||||||||||||||||||||||||||||||
477 | stateStrings << QLatin1String("invisible"); never executed: stateStrings << QLatin1String("invisible"); | 0 | ||||||||||||||||||||||||||||||||||||
478 | - | |||||||||||||||||||||||||||||||||||||
479 | if (!stateStrings.isEmpty()
| 0 | ||||||||||||||||||||||||||||||||||||
480 | d << stateStrings.join(QLatin1Char('|')); never executed: d << stateStrings.join(QLatin1Char('|')); | 0 | ||||||||||||||||||||||||||||||||||||
481 | - | |||||||||||||||||||||||||||||||||||||
482 | if (!st.invisible
| 0 | ||||||||||||||||||||||||||||||||||||
483 | d << "rect=" << iface->rect(); never executed: d << "rect=" << iface->rect(); | 0 | ||||||||||||||||||||||||||||||||||||
484 | - | |||||||||||||||||||||||||||||||||||||
485 | } never executed: else {end of block | 0 | ||||||||||||||||||||||||||||||||||||
486 | d << " invalid"; | - | ||||||||||||||||||||||||||||||||||||
487 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
488 | d << ')'; | - | ||||||||||||||||||||||||||||||||||||
489 | return never executed: d;return d; never executed: return d; | 0 | ||||||||||||||||||||||||||||||||||||
490 | } | - | ||||||||||||||||||||||||||||||||||||
491 | - | |||||||||||||||||||||||||||||||||||||
492 | - | |||||||||||||||||||||||||||||||||||||
493 | QDebug operator<<(QDebug d, const QAccessibleEvent &ev) | - | ||||||||||||||||||||||||||||||||||||
494 | { | - | ||||||||||||||||||||||||||||||||||||
495 | QDebugStateSaver saver(d); | - | ||||||||||||||||||||||||||||||||||||
496 | d.nospace() << "QAccessibleEvent("; | - | ||||||||||||||||||||||||||||||||||||
497 | if (ev.object()
| 0 | ||||||||||||||||||||||||||||||||||||
498 | d.nospace() << "object=" << hex << ev.object() << dec; | - | ||||||||||||||||||||||||||||||||||||
499 | d.nospace() << "child=" << ev.child(); | - | ||||||||||||||||||||||||||||||||||||
500 | } never executed: else {end of block | 0 | ||||||||||||||||||||||||||||||||||||
501 | d.nospace() << "no object, uniqueId=" << ev.uniqueId(); | - | ||||||||||||||||||||||||||||||||||||
502 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
503 | d << " event=" << qAccessibleEventString(ev.type()); | - | ||||||||||||||||||||||||||||||||||||
504 | if (ev.type() == QAccessible::StateChanged
| 0 | ||||||||||||||||||||||||||||||||||||
505 | QAccessible::State changed = static_cast<const QAccessibleStateChangeEvent*>(&ev)->changedStates(); | - | ||||||||||||||||||||||||||||||||||||
506 | d << "State changed:"; | - | ||||||||||||||||||||||||||||||||||||
507 | if (changed.disabled
never executed: d << "disabled"; | 0 | ||||||||||||||||||||||||||||||||||||
508 | if (changed.selected
never executed: d << "selected"; | 0 | ||||||||||||||||||||||||||||||||||||
509 | if (changed.focusable
never executed: d << "focusable"; | 0 | ||||||||||||||||||||||||||||||||||||
510 | if (changed.focused
never executed: d << "focused"; | 0 | ||||||||||||||||||||||||||||||||||||
511 | if (changed.pressed
never executed: d << "pressed"; | 0 | ||||||||||||||||||||||||||||||||||||
512 | if (changed.checkable
never executed: d << "checkable"; | 0 | ||||||||||||||||||||||||||||||||||||
513 | if (changed.checked
never executed: d << "checked"; | 0 | ||||||||||||||||||||||||||||||||||||
514 | if (changed.checkStateMixed
never executed: d << "checkStateMixed"; | 0 | ||||||||||||||||||||||||||||||||||||
515 | if (changed.readOnly
never executed: d << "readOnly"; | 0 | ||||||||||||||||||||||||||||||||||||
516 | if (changed.hotTracked
never executed: d << "hotTracked"; | 0 | ||||||||||||||||||||||||||||||||||||
517 | if (changed.defaultButton
never executed: d << "defaultButton"; | 0 | ||||||||||||||||||||||||||||||||||||
518 | if (changed.expanded
never executed: d << "expanded"; | 0 | ||||||||||||||||||||||||||||||||||||
519 | if (changed.collapsed
never executed: d << "collapsed"; | 0 | ||||||||||||||||||||||||||||||||||||
520 | if (changed.busy
never executed: d << "busy"; | 0 | ||||||||||||||||||||||||||||||||||||
521 | if (changed.expandable
never executed: d << "expandable"; | 0 | ||||||||||||||||||||||||||||||||||||
522 | if (changed.marqueed
never executed: d << "marqueed"; | 0 | ||||||||||||||||||||||||||||||||||||
523 | if (changed.animated
never executed: d << "animated"; | 0 | ||||||||||||||||||||||||||||||||||||
524 | if (changed.invisible
never executed: d << "invisible"; | 0 | ||||||||||||||||||||||||||||||||||||
525 | if (changed.offscreen
never executed: d << "offscreen"; | 0 | ||||||||||||||||||||||||||||||||||||
526 | if (changed.sizeable
never executed: d << "sizeable"; | 0 | ||||||||||||||||||||||||||||||||||||
527 | if (changed.movable
never executed: d << "movable"; | 0 | ||||||||||||||||||||||||||||||||||||
528 | if (changed.selfVoicing
never executed: d << "selfVoicing"; | 0 | ||||||||||||||||||||||||||||||||||||
529 | if (changed.selectable
never executed: d << "selectable"; | 0 | ||||||||||||||||||||||||||||||||||||
530 | if (changed.linked
never executed: d << "linked"; | 0 | ||||||||||||||||||||||||||||||||||||
531 | if (changed.traversed
never executed: d << "traversed"; | 0 | ||||||||||||||||||||||||||||||||||||
532 | if (changed.multiSelectable
never executed: d << "multiSelectable"; | 0 | ||||||||||||||||||||||||||||||||||||
533 | if (changed.extSelectable
never executed: d << "extSelectable"; | 0 | ||||||||||||||||||||||||||||||||||||
534 | if (changed.passwordEdit
never executed: d << "passwordEdit"; | 0 | ||||||||||||||||||||||||||||||||||||
535 | if (changed.hasPopup
never executed: d << "hasPopup"; | 0 | ||||||||||||||||||||||||||||||||||||
536 | if (changed.modal
never executed: d << "modal"; | 0 | ||||||||||||||||||||||||||||||||||||
537 | - | |||||||||||||||||||||||||||||||||||||
538 | - | |||||||||||||||||||||||||||||||||||||
539 | - | |||||||||||||||||||||||||||||||||||||
540 | if (changed.active
never executed: d << "active"; | 0 | ||||||||||||||||||||||||||||||||||||
541 | if (changed.invalid
never executed: d << "invalid"; | 0 | ||||||||||||||||||||||||||||||||||||
542 | if (changed.editable
never executed: d << "editable"; | 0 | ||||||||||||||||||||||||||||||||||||
543 | if (changed.multiLine
never executed: d << "multiLine"; | 0 | ||||||||||||||||||||||||||||||||||||
544 | if (changed.selectableText
never executed: d << "selectableText"; | 0 | ||||||||||||||||||||||||||||||||||||
545 | if (changed.supportsAutoCompletion
never executed: d << "supportsAutoCompletion"; | 0 | ||||||||||||||||||||||||||||||||||||
546 | - | |||||||||||||||||||||||||||||||||||||
547 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
548 | d << ')'; | - | ||||||||||||||||||||||||||||||||||||
549 | return never executed: d;return d; never executed: return d; | 0 | ||||||||||||||||||||||||||||||||||||
550 | } | - | ||||||||||||||||||||||||||||||||||||
551 | QAccessibleTextInterface::~QAccessibleTextInterface() | - | ||||||||||||||||||||||||||||||||||||
552 | { | - | ||||||||||||||||||||||||||||||||||||
553 | - | |||||||||||||||||||||||||||||||||||||
554 | } | - | ||||||||||||||||||||||||||||||||||||
555 | static QString textLineBoundary(int beforeAtAfter, const QString &text, int offset, int *startOffset, int *endOffset) | - | ||||||||||||||||||||||||||||||||||||
556 | { | - | ||||||||||||||||||||||||||||||||||||
557 | ((!(beforeAtAfter >= -1 && beforeAtAfter <= 1)) ? qt_assert("beforeAtAfter >= -1 && beforeAtAfter <= 1",__FILE__,2056) : qt_noop()); | - | ||||||||||||||||||||||||||||||||||||
558 | ((!(*startOffset == -1 && *endOffset == -1)) ? qt_assert("*startOffset == -1 && *endOffset == -1",__FILE__,2057) : qt_noop()); | - | ||||||||||||||||||||||||||||||||||||
559 | int length = text.length(); | - | ||||||||||||||||||||||||||||||||||||
560 | ((!(offset >= 0 && offset <= length)) ? qt_assert("offset >= 0 && offset <= length",__FILE__,2059) : qt_noop()); | - | ||||||||||||||||||||||||||||||||||||
561 | - | |||||||||||||||||||||||||||||||||||||
562 | - | |||||||||||||||||||||||||||||||||||||
563 | if (beforeAtAfter == 1
| 0 | ||||||||||||||||||||||||||||||||||||
564 | offset = text.indexOf(QChar::LineFeed, qMin(offset, length - 1)); | - | ||||||||||||||||||||||||||||||||||||
565 | if (offset < 0
| 0 | ||||||||||||||||||||||||||||||||||||
566 | return never executed: QString();return QString(); never executed: return QString(); | 0 | ||||||||||||||||||||||||||||||||||||
567 | ++offset; | - | ||||||||||||||||||||||||||||||||||||
568 | } never executed: else if (beforeAtAfter == -1end of block
| 0 | ||||||||||||||||||||||||||||||||||||
569 | offset = text.lastIndexOf(QChar::LineFeed, qMax(offset - 1, 0)); | - | ||||||||||||||||||||||||||||||||||||
570 | if (offset < 0
| 0 | ||||||||||||||||||||||||||||||||||||
571 | return never executed: QString();return QString(); never executed: return QString(); | 0 | ||||||||||||||||||||||||||||||||||||
572 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
573 | - | |||||||||||||||||||||||||||||||||||||
574 | if (offset > 0
| 0 | ||||||||||||||||||||||||||||||||||||
575 | * never executed: startOffset = text.lastIndexOf(QChar::LineFeed, offset - 1);*startOffset = text.lastIndexOf(QChar::LineFeed, offset - 1); never executed: *startOffset = text.lastIndexOf(QChar::LineFeed, offset - 1); | 0 | ||||||||||||||||||||||||||||||||||||
576 | ++*startOffset; | - | ||||||||||||||||||||||||||||||||||||
577 | - | |||||||||||||||||||||||||||||||||||||
578 | *endOffset = text.indexOf(QChar::LineFeed, qMin(offset, length - 1)) + 1; | - | ||||||||||||||||||||||||||||||||||||
579 | if (*
| 0 | ||||||||||||||||||||||||||||||||||||
580 | * never executed: endOffset = length;*endOffset = length; never executed: *endOffset = length; | 0 | ||||||||||||||||||||||||||||||||||||
581 | - | |||||||||||||||||||||||||||||||||||||
582 | return never executed: text.mid(*startOffset, *endOffset - *startOffset);return text.mid(*startOffset, *endOffset - *startOffset); never executed: return text.mid(*startOffset, *endOffset - *startOffset); | 0 | ||||||||||||||||||||||||||||||||||||
583 | } | - | ||||||||||||||||||||||||||||||||||||
584 | QString QAccessibleTextInterface::textBeforeOffset(int offset, QAccessible::TextBoundaryType boundaryType, | - | ||||||||||||||||||||||||||||||||||||
585 | int *startOffset, int *endOffset) const | - | ||||||||||||||||||||||||||||||||||||
586 | { | - | ||||||||||||||||||||||||||||||||||||
587 | const QString txt = text(0, characterCount()); | - | ||||||||||||||||||||||||||||||||||||
588 | - | |||||||||||||||||||||||||||||||||||||
589 | if (offset == -1
| 0 | ||||||||||||||||||||||||||||||||||||
590 | offset = txt.length(); never executed: offset = txt.length(); | 0 | ||||||||||||||||||||||||||||||||||||
591 | - | |||||||||||||||||||||||||||||||||||||
592 | *startOffset = *endOffset = -1; | - | ||||||||||||||||||||||||||||||||||||
593 | if (txt.isEmpty()
| 0 | ||||||||||||||||||||||||||||||||||||
594 | return never executed: QString();return QString(); never executed: return QString(); | 0 | ||||||||||||||||||||||||||||||||||||
595 | - | |||||||||||||||||||||||||||||||||||||
596 | - | |||||||||||||||||||||||||||||||||||||
597 | QTextBoundaryFinder::BoundaryType type = QTextBoundaryFinder::Grapheme; | - | ||||||||||||||||||||||||||||||||||||
598 | switch (boundaryType) { | - | ||||||||||||||||||||||||||||||||||||
599 | case never executed: QAccessible::CharBoundary:case QAccessible::CharBoundary: never executed: case QAccessible::CharBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
600 | type = QTextBoundaryFinder::Grapheme; | - | ||||||||||||||||||||||||||||||||||||
601 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
602 | case never executed: QAccessible::WordBoundary:case QAccessible::WordBoundary: never executed: case QAccessible::WordBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
603 | type = QTextBoundaryFinder::Word; | - | ||||||||||||||||||||||||||||||||||||
604 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
605 | case never executed: QAccessible::SentenceBoundary:case QAccessible::SentenceBoundary: never executed: case QAccessible::SentenceBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
606 | type = QTextBoundaryFinder::Sentence; | - | ||||||||||||||||||||||||||||||||||||
607 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
608 | case never executed: QAccessible::LineBoundary:case QAccessible::LineBoundary: never executed: case QAccessible::LineBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
609 | case never executed: QAccessible::ParagraphBoundary:case QAccessible::ParagraphBoundary: never executed: case QAccessible::ParagraphBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
610 | - | |||||||||||||||||||||||||||||||||||||
611 | return never executed: textLineBoundary(-1, txt, offset, startOffset, endOffset);return textLineBoundary(-1, txt, offset, startOffset, endOffset); never executed: return textLineBoundary(-1, txt, offset, startOffset, endOffset); | 0 | ||||||||||||||||||||||||||||||||||||
612 | case never executed: QAccessible::NoBoundary:case QAccessible::NoBoundary: never executed: case QAccessible::NoBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
613 | - | |||||||||||||||||||||||||||||||||||||
614 | return never executed: QString();return QString(); never executed: return QString(); | 0 | ||||||||||||||||||||||||||||||||||||
615 | default never executed: :default: never executed: default: | 0 | ||||||||||||||||||||||||||||||||||||
616 | do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,2133) : qt_noop()); __builtin_unreachable(); } while (0); | - | ||||||||||||||||||||||||||||||||||||
617 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
618 | - | |||||||||||||||||||||||||||||||||||||
619 | - | |||||||||||||||||||||||||||||||||||||
620 | - | |||||||||||||||||||||||||||||||||||||
621 | QTextBoundaryFinder boundary(type, txt); | - | ||||||||||||||||||||||||||||||||||||
622 | boundary.setPosition(offset); | - | ||||||||||||||||||||||||||||||||||||
623 | - | |||||||||||||||||||||||||||||||||||||
624 | do { | - | ||||||||||||||||||||||||||||||||||||
625 | if ((
| 0 | ||||||||||||||||||||||||||||||||||||
626 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
627 | } never executed: while (boundary.toPreviousBoundary() > 0end of block
| 0 | ||||||||||||||||||||||||||||||||||||
628 | ((!(boundary.position() >= 0)) ? qt_assert("boundary.position() >= 0",__FILE__,2145) : qt_noop()); | - | ||||||||||||||||||||||||||||||||||||
629 | *endOffset = boundary.position(); | - | ||||||||||||||||||||||||||||||||||||
630 | - | |||||||||||||||||||||||||||||||||||||
631 | while (boundary.toPreviousBoundary() > 0
| 0 | ||||||||||||||||||||||||||||||||||||
632 | if ((
| 0 | ||||||||||||||||||||||||||||||||||||
633 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
634 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
635 | ((!(boundary.position() >= 0)) ? qt_assert("boundary.position() >= 0",__FILE__,2152) : qt_noop()); | - | ||||||||||||||||||||||||||||||||||||
636 | *startOffset = boundary.position(); | - | ||||||||||||||||||||||||||||||||||||
637 | - | |||||||||||||||||||||||||||||||||||||
638 | return never executed: txt.mid(*startOffset, *endOffset - *startOffset);return txt.mid(*startOffset, *endOffset - *startOffset); never executed: return txt.mid(*startOffset, *endOffset - *startOffset); | 0 | ||||||||||||||||||||||||||||||||||||
639 | } | - | ||||||||||||||||||||||||||||||||||||
640 | QString QAccessibleTextInterface::textAfterOffset(int offset, QAccessible::TextBoundaryType boundaryType, | - | ||||||||||||||||||||||||||||||||||||
641 | int *startOffset, int *endOffset) const | - | ||||||||||||||||||||||||||||||||||||
642 | { | - | ||||||||||||||||||||||||||||||||||||
643 | const QString txt = text(0, characterCount()); | - | ||||||||||||||||||||||||||||||||||||
644 | - | |||||||||||||||||||||||||||||||||||||
645 | if (offset == -1
| 0 | ||||||||||||||||||||||||||||||||||||
646 | offset = txt.length(); never executed: offset = txt.length(); | 0 | ||||||||||||||||||||||||||||||||||||
647 | - | |||||||||||||||||||||||||||||||||||||
648 | *startOffset = *endOffset = -1; | - | ||||||||||||||||||||||||||||||||||||
649 | if (txt.isEmpty()
| 0 | ||||||||||||||||||||||||||||||||||||
650 | return never executed: QString();return QString(); never executed: return QString(); | 0 | ||||||||||||||||||||||||||||||||||||
651 | - | |||||||||||||||||||||||||||||||||||||
652 | - | |||||||||||||||||||||||||||||||||||||
653 | QTextBoundaryFinder::BoundaryType type = QTextBoundaryFinder::Grapheme; | - | ||||||||||||||||||||||||||||||||||||
654 | switch (boundaryType) { | - | ||||||||||||||||||||||||||||||||||||
655 | case never executed: QAccessible::CharBoundary:case QAccessible::CharBoundary: never executed: case QAccessible::CharBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
656 | type = QTextBoundaryFinder::Grapheme; | - | ||||||||||||||||||||||||||||||||||||
657 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
658 | case never executed: QAccessible::WordBoundary:case QAccessible::WordBoundary: never executed: case QAccessible::WordBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
659 | type = QTextBoundaryFinder::Word; | - | ||||||||||||||||||||||||||||||||||||
660 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
661 | case never executed: QAccessible::SentenceBoundary:case QAccessible::SentenceBoundary: never executed: case QAccessible::SentenceBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
662 | type = QTextBoundaryFinder::Sentence; | - | ||||||||||||||||||||||||||||||||||||
663 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
664 | case never executed: QAccessible::LineBoundary:case QAccessible::LineBoundary: never executed: case QAccessible::LineBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
665 | case never executed: QAccessible::ParagraphBoundary:case QAccessible::ParagraphBoundary: never executed: case QAccessible::ParagraphBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
666 | - | |||||||||||||||||||||||||||||||||||||
667 | return never executed: textLineBoundary(1, txt, offset, startOffset, endOffset);return textLineBoundary(1, txt, offset, startOffset, endOffset); never executed: return textLineBoundary(1, txt, offset, startOffset, endOffset); | 0 | ||||||||||||||||||||||||||||||||||||
668 | case never executed: QAccessible::NoBoundary:case QAccessible::NoBoundary: never executed: case QAccessible::NoBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
669 | - | |||||||||||||||||||||||||||||||||||||
670 | return never executed: QString();return QString(); never executed: return QString(); | 0 | ||||||||||||||||||||||||||||||||||||
671 | default never executed: :default: never executed: default: | 0 | ||||||||||||||||||||||||||||||||||||
672 | do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,2207) : qt_noop()); __builtin_unreachable(); } while (0); | - | ||||||||||||||||||||||||||||||||||||
673 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
674 | - | |||||||||||||||||||||||||||||||||||||
675 | - | |||||||||||||||||||||||||||||||||||||
676 | - | |||||||||||||||||||||||||||||||||||||
677 | QTextBoundaryFinder boundary(type, txt); | - | ||||||||||||||||||||||||||||||||||||
678 | boundary.setPosition(offset); | - | ||||||||||||||||||||||||||||||||||||
679 | - | |||||||||||||||||||||||||||||||||||||
680 | while (true) { | - | ||||||||||||||||||||||||||||||||||||
681 | int toNext = boundary.toNextBoundary(); | - | ||||||||||||||||||||||||||||||||||||
682 | if ((
| 0 | ||||||||||||||||||||||||||||||||||||
683 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
684 | if (toNext < 0
| 0 | ||||||||||||||||||||||||||||||||||||
685 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
686 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
687 | ((!(boundary.position() <= txt.length())) ? qt_assert("boundary.position() <= txt.length()",__FILE__,2222) : qt_noop()); | - | ||||||||||||||||||||||||||||||||||||
688 | *startOffset = boundary.position(); | - | ||||||||||||||||||||||||||||||||||||
689 | - | |||||||||||||||||||||||||||||||||||||
690 | while (true) { | - | ||||||||||||||||||||||||||||||||||||
691 | int toNext = boundary.toNextBoundary(); | - | ||||||||||||||||||||||||||||||||||||
692 | if ((
| 0 | ||||||||||||||||||||||||||||||||||||
693 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
694 | if (toNext < 0
| 0 | ||||||||||||||||||||||||||||||||||||
695 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
696 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
697 | ((!(boundary.position() <= txt.length())) ? qt_assert("boundary.position() <= txt.length()",__FILE__,2232) : qt_noop()); | - | ||||||||||||||||||||||||||||||||||||
698 | *endOffset = boundary.position(); | - | ||||||||||||||||||||||||||||||||||||
699 | - | |||||||||||||||||||||||||||||||||||||
700 | if ((*
| 0 | ||||||||||||||||||||||||||||||||||||
701 | *endOffset = -1; | - | ||||||||||||||||||||||||||||||||||||
702 | *startOffset = -1; | - | ||||||||||||||||||||||||||||||||||||
703 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
704 | - | |||||||||||||||||||||||||||||||||||||
705 | return never executed: txt.mid(*startOffset, *endOffset - *startOffset);return txt.mid(*startOffset, *endOffset - *startOffset); never executed: return txt.mid(*startOffset, *endOffset - *startOffset); | 0 | ||||||||||||||||||||||||||||||||||||
706 | } | - | ||||||||||||||||||||||||||||||||||||
707 | QString QAccessibleTextInterface::textAtOffset(int offset, QAccessible::TextBoundaryType boundaryType, | - | ||||||||||||||||||||||||||||||||||||
708 | int *startOffset, int *endOffset) const | - | ||||||||||||||||||||||||||||||||||||
709 | { | - | ||||||||||||||||||||||||||||||||||||
710 | const QString txt = text(0, characterCount()); | - | ||||||||||||||||||||||||||||||||||||
711 | - | |||||||||||||||||||||||||||||||||||||
712 | if (offset == -1
| 0 | ||||||||||||||||||||||||||||||||||||
713 | offset = txt.length(); never executed: offset = txt.length(); | 0 | ||||||||||||||||||||||||||||||||||||
714 | - | |||||||||||||||||||||||||||||||||||||
715 | *startOffset = *endOffset = -1; | - | ||||||||||||||||||||||||||||||||||||
716 | if (txt.isEmpty()
| 0 | ||||||||||||||||||||||||||||||||||||
717 | return never executed: QString();return QString(); never executed: return QString(); | 0 | ||||||||||||||||||||||||||||||||||||
718 | - | |||||||||||||||||||||||||||||||||||||
719 | if (offset == txt.length()
| 0 | ||||||||||||||||||||||||||||||||||||
720 | return never executed: QString();return QString(); never executed: return QString(); | 0 | ||||||||||||||||||||||||||||||||||||
721 | - | |||||||||||||||||||||||||||||||||||||
722 | - | |||||||||||||||||||||||||||||||||||||
723 | QTextBoundaryFinder::BoundaryType type = QTextBoundaryFinder::Grapheme; | - | ||||||||||||||||||||||||||||||||||||
724 | switch (boundaryType) { | - | ||||||||||||||||||||||||||||||||||||
725 | case never executed: QAccessible::CharBoundary:case QAccessible::CharBoundary: never executed: case QAccessible::CharBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
726 | type = QTextBoundaryFinder::Grapheme; | - | ||||||||||||||||||||||||||||||||||||
727 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
728 | case never executed: QAccessible::WordBoundary:case QAccessible::WordBoundary: never executed: case QAccessible::WordBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
729 | type = QTextBoundaryFinder::Word; | - | ||||||||||||||||||||||||||||||||||||
730 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
731 | case never executed: QAccessible::SentenceBoundary:case QAccessible::SentenceBoundary: never executed: case QAccessible::SentenceBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
732 | type = QTextBoundaryFinder::Sentence; | - | ||||||||||||||||||||||||||||||||||||
733 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
734 | case never executed: QAccessible::LineBoundary:case QAccessible::LineBoundary: never executed: case QAccessible::LineBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
735 | case never executed: QAccessible::ParagraphBoundary:case QAccessible::ParagraphBoundary: never executed: case QAccessible::ParagraphBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
736 | - | |||||||||||||||||||||||||||||||||||||
737 | return never executed: textLineBoundary(0, txt, offset, startOffset, endOffset);return textLineBoundary(0, txt, offset, startOffset, endOffset); never executed: return textLineBoundary(0, txt, offset, startOffset, endOffset); | 0 | ||||||||||||||||||||||||||||||||||||
738 | case never executed: QAccessible::NoBoundary:case QAccessible::NoBoundary: never executed: case QAccessible::NoBoundary: | 0 | ||||||||||||||||||||||||||||||||||||
739 | *startOffset = 0; | - | ||||||||||||||||||||||||||||||||||||
740 | *endOffset = txt.length(); | - | ||||||||||||||||||||||||||||||||||||
741 | return never executed: txt;return txt; never executed: return txt; | 0 | ||||||||||||||||||||||||||||||||||||
742 | default never executed: :default: never executed: default: | 0 | ||||||||||||||||||||||||||||||||||||
743 | do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,2296) : qt_noop()); __builtin_unreachable(); } while (0); | - | ||||||||||||||||||||||||||||||||||||
744 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
745 | - | |||||||||||||||||||||||||||||||||||||
746 | - | |||||||||||||||||||||||||||||||||||||
747 | - | |||||||||||||||||||||||||||||||||||||
748 | QTextBoundaryFinder boundary(type, txt); | - | ||||||||||||||||||||||||||||||||||||
749 | boundary.setPosition(offset); | - | ||||||||||||||||||||||||||||||||||||
750 | - | |||||||||||||||||||||||||||||||||||||
751 | do { | - | ||||||||||||||||||||||||||||||||||||
752 | if ((
| 0 | ||||||||||||||||||||||||||||||||||||
753 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
754 | } never executed: while (boundary.toPreviousBoundary() > 0end of block
| 0 | ||||||||||||||||||||||||||||||||||||
755 | ((!(boundary.position() >= 0)) ? qt_assert("boundary.position() >= 0",__FILE__,2308) : qt_noop()); | - | ||||||||||||||||||||||||||||||||||||
756 | *startOffset = boundary.position(); | - | ||||||||||||||||||||||||||||||||||||
757 | - | |||||||||||||||||||||||||||||||||||||
758 | while (boundary.toNextBoundary() < txt.length()
| 0 | ||||||||||||||||||||||||||||||||||||
759 | if ((
| 0 | ||||||||||||||||||||||||||||||||||||
760 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
761 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
762 | ((!(boundary.position() <= txt.length())) ? qt_assert("boundary.position() <= txt.length()",__FILE__,2315) : qt_noop()); | - | ||||||||||||||||||||||||||||||||||||
763 | *endOffset = boundary.position(); | - | ||||||||||||||||||||||||||||||||||||
764 | - | |||||||||||||||||||||||||||||||||||||
765 | return never executed: txt.mid(*startOffset, *endOffset - *startOffset);return txt.mid(*startOffset, *endOffset - *startOffset); never executed: return txt.mid(*startOffset, *endOffset - *startOffset); | 0 | ||||||||||||||||||||||||||||||||||||
766 | } | - | ||||||||||||||||||||||||||||||||||||
767 | QAccessibleEditableTextInterface::~QAccessibleEditableTextInterface() | - | ||||||||||||||||||||||||||||||||||||
768 | { | - | ||||||||||||||||||||||||||||||||||||
769 | - | |||||||||||||||||||||||||||||||||||||
770 | } | - | ||||||||||||||||||||||||||||||||||||
771 | QAccessibleValueInterface::~QAccessibleValueInterface() | - | ||||||||||||||||||||||||||||||||||||
772 | { | - | ||||||||||||||||||||||||||||||||||||
773 | - | |||||||||||||||||||||||||||||||||||||
774 | } | - | ||||||||||||||||||||||||||||||||||||
775 | QAccessibleImageInterface::~QAccessibleImageInterface() | - | ||||||||||||||||||||||||||||||||||||
776 | { | - | ||||||||||||||||||||||||||||||||||||
777 | - | |||||||||||||||||||||||||||||||||||||
778 | } | - | ||||||||||||||||||||||||||||||||||||
779 | QAccessibleTableCellInterface::~QAccessibleTableCellInterface() | - | ||||||||||||||||||||||||||||||||||||
780 | { | - | ||||||||||||||||||||||||||||||||||||
781 | - | |||||||||||||||||||||||||||||||||||||
782 | } | - | ||||||||||||||||||||||||||||||||||||
783 | QAccessibleTableInterface::~QAccessibleTableInterface() | - | ||||||||||||||||||||||||||||||||||||
784 | { | - | ||||||||||||||||||||||||||||||||||||
785 | - | |||||||||||||||||||||||||||||||||||||
786 | } | - | ||||||||||||||||||||||||||||||||||||
787 | QAccessibleActionInterface::~QAccessibleActionInterface() | - | ||||||||||||||||||||||||||||||||||||
788 | { | - | ||||||||||||||||||||||||||||||||||||
789 | - | |||||||||||||||||||||||||||||||||||||
790 | } | - | ||||||||||||||||||||||||||||||||||||
791 | struct QAccessibleActionStrings | - | ||||||||||||||||||||||||||||||||||||
792 | { | - | ||||||||||||||||||||||||||||||||||||
793 | QAccessibleActionStrings() : | - | ||||||||||||||||||||||||||||||||||||
794 | pressAction(([]() -> QString { enum { Size = sizeof(u"" "Press")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Press" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())), | - | ||||||||||||||||||||||||||||||||||||
795 | increaseAction(([]() -> QString { enum { Size = sizeof(u"" "Increase")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Increase" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())), | - | ||||||||||||||||||||||||||||||||||||
796 | decreaseAction(([]() -> QString { enum { Size = sizeof(u"" "Decrease")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Decrease" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())), | - | ||||||||||||||||||||||||||||||||||||
797 | showMenuAction(([]() -> QString { enum { Size = sizeof(u"" "ShowMenu")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "ShowMenu" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())), | - | ||||||||||||||||||||||||||||||||||||
798 | setFocusAction(([]() -> QString { enum { Size = sizeof(u"" "SetFocus")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "SetFocus" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())), | - | ||||||||||||||||||||||||||||||||||||
799 | toggleAction(([]() -> QString { enum { Size = sizeof(u"" "Toggle")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Toggle" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())), | - | ||||||||||||||||||||||||||||||||||||
800 | scrollLeftAction(([]() -> QString { enum { Size = sizeof(u"" "Scroll Left")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Scroll Left" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())), | - | ||||||||||||||||||||||||||||||||||||
801 | scrollRightAction(([]() -> QString { enum { Size = sizeof(u"" "Scroll Right")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Scroll Right" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())), | - | ||||||||||||||||||||||||||||||||||||
802 | scrollUpAction(([]() -> QString { enum { Size = sizeof(u"" "Scroll Up")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Scroll Up" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())), | - | ||||||||||||||||||||||||||||||||||||
803 | scrollDownAction(([]() -> QString { enum { Size = sizeof(u"" "Scroll Down")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Scroll Down" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())), | - | ||||||||||||||||||||||||||||||||||||
804 | previousPageAction(([]() -> QString { enum { Size = sizeof(u"" "Previous Page")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Previous Page" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())), | - | ||||||||||||||||||||||||||||||||||||
805 | nextPageAction(([]() -> QString { enum { Size = sizeof(u"" "Next Page")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Next Page" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) | - | ||||||||||||||||||||||||||||||||||||
806 | {} never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
807 | - | |||||||||||||||||||||||||||||||||||||
808 | const QString pressAction; | - | ||||||||||||||||||||||||||||||||||||
809 | const QString increaseAction; | - | ||||||||||||||||||||||||||||||||||||
810 | const QString decreaseAction; | - | ||||||||||||||||||||||||||||||||||||
811 | const QString showMenuAction; | - | ||||||||||||||||||||||||||||||||||||
812 | const QString setFocusAction; | - | ||||||||||||||||||||||||||||||||||||
813 | const QString toggleAction; | - | ||||||||||||||||||||||||||||||||||||
814 | const QString scrollLeftAction; | - | ||||||||||||||||||||||||||||||||||||
815 | const QString scrollRightAction; | - | ||||||||||||||||||||||||||||||||||||
816 | const QString scrollUpAction; | - | ||||||||||||||||||||||||||||||||||||
817 | const QString scrollDownAction; | - | ||||||||||||||||||||||||||||||||||||
818 | const QString previousPageAction; | - | ||||||||||||||||||||||||||||||||||||
819 | const QString nextPageAction; | - | ||||||||||||||||||||||||||||||||||||
820 | - | |||||||||||||||||||||||||||||||||||||
821 | QString localizedDescription(const QString &actionName) | - | ||||||||||||||||||||||||||||||||||||
822 | { | - | ||||||||||||||||||||||||||||||||||||
823 | if (actionName == pressAction
| 0 | ||||||||||||||||||||||||||||||||||||
824 | return never executed: QAccessibleActionInterface::tr("Triggers the action");return QAccessibleActionInterface::tr("Triggers the action"); never executed: return QAccessibleActionInterface::tr("Triggers the action"); | 0 | ||||||||||||||||||||||||||||||||||||
825 | else if (actionName == increaseAction
| 0 | ||||||||||||||||||||||||||||||||||||
826 | return never executed: QAccessibleActionInterface::tr("Increase the value");return QAccessibleActionInterface::tr("Increase the value"); never executed: return QAccessibleActionInterface::tr("Increase the value"); | 0 | ||||||||||||||||||||||||||||||||||||
827 | else if (actionName == decreaseAction
| 0 | ||||||||||||||||||||||||||||||||||||
828 | return never executed: QAccessibleActionInterface::tr("Decrease the value");return QAccessibleActionInterface::tr("Decrease the value"); never executed: return QAccessibleActionInterface::tr("Decrease the value"); | 0 | ||||||||||||||||||||||||||||||||||||
829 | else if (actionName == showMenuAction
| 0 | ||||||||||||||||||||||||||||||||||||
830 | return never executed: QAccessibleActionInterface::tr("Shows the menu");return QAccessibleActionInterface::tr("Shows the menu"); never executed: return QAccessibleActionInterface::tr("Shows the menu"); | 0 | ||||||||||||||||||||||||||||||||||||
831 | else if (actionName == setFocusAction
| 0 | ||||||||||||||||||||||||||||||||||||
832 | return never executed: QAccessibleActionInterface::tr("Sets the focus");return QAccessibleActionInterface::tr("Sets the focus"); never executed: return QAccessibleActionInterface::tr("Sets the focus"); | 0 | ||||||||||||||||||||||||||||||||||||
833 | else if (actionName == toggleAction
| 0 | ||||||||||||||||||||||||||||||||||||
834 | return never executed: QAccessibleActionInterface::tr("Toggles the state");return QAccessibleActionInterface::tr("Toggles the state"); never executed: return QAccessibleActionInterface::tr("Toggles the state"); | 0 | ||||||||||||||||||||||||||||||||||||
835 | else if (actionName == scrollLeftAction
| 0 | ||||||||||||||||||||||||||||||||||||
836 | return never executed: QAccessibleActionInterface::tr("Scrolls to the left");return QAccessibleActionInterface::tr("Scrolls to the left"); never executed: return QAccessibleActionInterface::tr("Scrolls to the left"); | 0 | ||||||||||||||||||||||||||||||||||||
837 | else if (actionName == scrollRightAction
| 0 | ||||||||||||||||||||||||||||||||||||
838 | return never executed: QAccessibleActionInterface::tr("Scrolls to the right");return QAccessibleActionInterface::tr("Scrolls to the right"); never executed: return QAccessibleActionInterface::tr("Scrolls to the right"); | 0 | ||||||||||||||||||||||||||||||||||||
839 | else if (actionName == scrollUpAction
| 0 | ||||||||||||||||||||||||||||||||||||
840 | return never executed: QAccessibleActionInterface::tr("Scrolls up");return QAccessibleActionInterface::tr("Scrolls up"); never executed: return QAccessibleActionInterface::tr("Scrolls up"); | 0 | ||||||||||||||||||||||||||||||||||||
841 | else if (actionName == scrollDownAction
| 0 | ||||||||||||||||||||||||||||||||||||
842 | return never executed: QAccessibleActionInterface::tr("Scrolls down");return QAccessibleActionInterface::tr("Scrolls down"); never executed: return QAccessibleActionInterface::tr("Scrolls down"); | 0 | ||||||||||||||||||||||||||||||||||||
843 | else if (actionName == previousPageAction
| 0 | ||||||||||||||||||||||||||||||||||||
844 | return never executed: QAccessibleActionInterface::tr("Goes back a page");return QAccessibleActionInterface::tr("Goes back a page"); never executed: return QAccessibleActionInterface::tr("Goes back a page"); | 0 | ||||||||||||||||||||||||||||||||||||
845 | else if (actionName == nextPageAction
| 0 | ||||||||||||||||||||||||||||||||||||
846 | return never executed: QAccessibleActionInterface::tr("Goes to the next page");return QAccessibleActionInterface::tr("Goes to the next page"); never executed: return QAccessibleActionInterface::tr("Goes to the next page"); | 0 | ||||||||||||||||||||||||||||||||||||
847 | - | |||||||||||||||||||||||||||||||||||||
848 | - | |||||||||||||||||||||||||||||||||||||
849 | return never executed: QString();return QString(); never executed: return QString(); | 0 | ||||||||||||||||||||||||||||||||||||
850 | } | - | ||||||||||||||||||||||||||||||||||||
851 | }; | - | ||||||||||||||||||||||||||||||||||||
852 | - | |||||||||||||||||||||||||||||||||||||
853 | namespace { namespace Q_QGS_accessibleActionStrings { typedef QAccessibleActionStrings Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
never executed: }guard.store(QtGlobalStatic::Destroyed); never executed: }; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnend of block never executed: &holder.value;return &holder.value; never executed: } } } static QGlobalStatic<QAccessibleActionStrings, Q_QGS_accessibleActionStrings::innerFunction, Q_QGS_accessibleActionStrings::guard> accessibleActionStrings;return &holder.value; | 0 | ||||||||||||||||||||||||||||||||||||
854 | - | |||||||||||||||||||||||||||||||||||||
855 | QString QAccessibleActionInterface::localizedActionName(const QString &actionName) const | - | ||||||||||||||||||||||||||||||||||||
856 | { | - | ||||||||||||||||||||||||||||||||||||
857 | return never executed: QAccessibleActionInterface::tr(QString(actionName).toLocal8Bit().constData());return QAccessibleActionInterface::tr(QString(actionName).toLocal8Bit().constData()); never executed: return QAccessibleActionInterface::tr(QString(actionName).toLocal8Bit().constData()); | 0 | ||||||||||||||||||||||||||||||||||||
858 | } | - | ||||||||||||||||||||||||||||||||||||
859 | - | |||||||||||||||||||||||||||||||||||||
860 | QString QAccessibleActionInterface::localizedActionDescription(const QString &actionName) const | - | ||||||||||||||||||||||||||||||||||||
861 | { | - | ||||||||||||||||||||||||||||||||||||
862 | return never executed: accessibleActionStrings()->localizedDescription(actionName);return accessibleActionStrings()->localizedDescription(actionName); never executed: return accessibleActionStrings()->localizedDescription(actionName); | 0 | ||||||||||||||||||||||||||||||||||||
863 | } | - | ||||||||||||||||||||||||||||||||||||
864 | - | |||||||||||||||||||||||||||||||||||||
865 | - | |||||||||||||||||||||||||||||||||||||
866 | - | |||||||||||||||||||||||||||||||||||||
867 | - | |||||||||||||||||||||||||||||||||||||
868 | - | |||||||||||||||||||||||||||||||||||||
869 | const QString &QAccessibleActionInterface::pressAction() | - | ||||||||||||||||||||||||||||||||||||
870 | { | - | ||||||||||||||||||||||||||||||||||||
871 | return never executed: accessibleActionStrings()->pressAction;return accessibleActionStrings()->pressAction; never executed: return accessibleActionStrings()->pressAction; | 0 | ||||||||||||||||||||||||||||||||||||
872 | } | - | ||||||||||||||||||||||||||||||||||||
873 | - | |||||||||||||||||||||||||||||||||||||
874 | - | |||||||||||||||||||||||||||||||||||||
875 | - | |||||||||||||||||||||||||||||||||||||
876 | - | |||||||||||||||||||||||||||||||||||||
877 | - | |||||||||||||||||||||||||||||||||||||
878 | const QString &QAccessibleActionInterface::increaseAction() | - | ||||||||||||||||||||||||||||||||||||
879 | { | - | ||||||||||||||||||||||||||||||||||||
880 | return never executed: accessibleActionStrings()->increaseAction;return accessibleActionStrings()->increaseAction; never executed: return accessibleActionStrings()->increaseAction; | 0 | ||||||||||||||||||||||||||||||||||||
881 | } | - | ||||||||||||||||||||||||||||||||||||
882 | - | |||||||||||||||||||||||||||||||||||||
883 | - | |||||||||||||||||||||||||||||||||||||
884 | - | |||||||||||||||||||||||||||||||||||||
885 | - | |||||||||||||||||||||||||||||||||||||
886 | - | |||||||||||||||||||||||||||||||||||||
887 | const QString &QAccessibleActionInterface::decreaseAction() | - | ||||||||||||||||||||||||||||||||||||
888 | { | - | ||||||||||||||||||||||||||||||||||||
889 | return never executed: accessibleActionStrings()->decreaseAction;return accessibleActionStrings()->decreaseAction; never executed: return accessibleActionStrings()->decreaseAction; | 0 | ||||||||||||||||||||||||||||||||||||
890 | } | - | ||||||||||||||||||||||||||||||||||||
891 | - | |||||||||||||||||||||||||||||||||||||
892 | - | |||||||||||||||||||||||||||||||||||||
893 | - | |||||||||||||||||||||||||||||||||||||
894 | - | |||||||||||||||||||||||||||||||||||||
895 | - | |||||||||||||||||||||||||||||||||||||
896 | const QString &QAccessibleActionInterface::showMenuAction() | - | ||||||||||||||||||||||||||||||||||||
897 | { | - | ||||||||||||||||||||||||||||||||||||
898 | return never executed: accessibleActionStrings()->showMenuAction;return accessibleActionStrings()->showMenuAction; never executed: return accessibleActionStrings()->showMenuAction; | 0 | ||||||||||||||||||||||||||||||||||||
899 | } | - | ||||||||||||||||||||||||||||||||||||
900 | - | |||||||||||||||||||||||||||||||||||||
901 | - | |||||||||||||||||||||||||||||||||||||
902 | - | |||||||||||||||||||||||||||||||||||||
903 | - | |||||||||||||||||||||||||||||||||||||
904 | - | |||||||||||||||||||||||||||||||||||||
905 | const QString &QAccessibleActionInterface::setFocusAction() | - | ||||||||||||||||||||||||||||||||||||
906 | { | - | ||||||||||||||||||||||||||||||||||||
907 | return never executed: accessibleActionStrings()->setFocusAction;return accessibleActionStrings()->setFocusAction; never executed: return accessibleActionStrings()->setFocusAction; | 0 | ||||||||||||||||||||||||||||||||||||
908 | } | - | ||||||||||||||||||||||||||||||||||||
909 | - | |||||||||||||||||||||||||||||||||||||
910 | - | |||||||||||||||||||||||||||||||||||||
911 | - | |||||||||||||||||||||||||||||||||||||
912 | - | |||||||||||||||||||||||||||||||||||||
913 | - | |||||||||||||||||||||||||||||||||||||
914 | const QString &QAccessibleActionInterface::toggleAction() | - | ||||||||||||||||||||||||||||||||||||
915 | { | - | ||||||||||||||||||||||||||||||||||||
916 | return never executed: accessibleActionStrings()->toggleAction;return accessibleActionStrings()->toggleAction; never executed: return accessibleActionStrings()->toggleAction; | 0 | ||||||||||||||||||||||||||||||||||||
917 | } | - | ||||||||||||||||||||||||||||||||||||
918 | - | |||||||||||||||||||||||||||||||||||||
919 | - | |||||||||||||||||||||||||||||||||||||
920 | - | |||||||||||||||||||||||||||||||||||||
921 | - | |||||||||||||||||||||||||||||||||||||
922 | - | |||||||||||||||||||||||||||||||||||||
923 | QString QAccessibleActionInterface::scrollLeftAction() | - | ||||||||||||||||||||||||||||||||||||
924 | { | - | ||||||||||||||||||||||||||||||||||||
925 | return never executed: accessibleActionStrings()->scrollLeftAction;return accessibleActionStrings()->scrollLeftAction; never executed: return accessibleActionStrings()->scrollLeftAction; | 0 | ||||||||||||||||||||||||||||||||||||
926 | } | - | ||||||||||||||||||||||||||||||||||||
927 | - | |||||||||||||||||||||||||||||||||||||
928 | - | |||||||||||||||||||||||||||||||||||||
929 | - | |||||||||||||||||||||||||||||||||||||
930 | - | |||||||||||||||||||||||||||||||||||||
931 | - | |||||||||||||||||||||||||||||||||||||
932 | QString QAccessibleActionInterface::scrollRightAction() | - | ||||||||||||||||||||||||||||||||||||
933 | { | - | ||||||||||||||||||||||||||||||||||||
934 | return never executed: accessibleActionStrings()->scrollRightAction;return accessibleActionStrings()->scrollRightAction; never executed: return accessibleActionStrings()->scrollRightAction; | 0 | ||||||||||||||||||||||||||||||||||||
935 | } | - | ||||||||||||||||||||||||||||||||||||
936 | - | |||||||||||||||||||||||||||||||||||||
937 | - | |||||||||||||||||||||||||||||||||||||
938 | - | |||||||||||||||||||||||||||||||||||||
939 | - | |||||||||||||||||||||||||||||||||||||
940 | - | |||||||||||||||||||||||||||||||||||||
941 | QString QAccessibleActionInterface::scrollUpAction() | - | ||||||||||||||||||||||||||||||||||||
942 | { | - | ||||||||||||||||||||||||||||||||||||
943 | return never executed: accessibleActionStrings()->scrollUpAction;return accessibleActionStrings()->scrollUpAction; never executed: return accessibleActionStrings()->scrollUpAction; | 0 | ||||||||||||||||||||||||||||||||||||
944 | } | - | ||||||||||||||||||||||||||||||||||||
945 | - | |||||||||||||||||||||||||||||||||||||
946 | - | |||||||||||||||||||||||||||||||||||||
947 | - | |||||||||||||||||||||||||||||||||||||
948 | - | |||||||||||||||||||||||||||||||||||||
949 | - | |||||||||||||||||||||||||||||||||||||
950 | QString QAccessibleActionInterface::scrollDownAction() | - | ||||||||||||||||||||||||||||||||||||
951 | { | - | ||||||||||||||||||||||||||||||||||||
952 | return never executed: accessibleActionStrings()->scrollDownAction;return accessibleActionStrings()->scrollDownAction; never executed: return accessibleActionStrings()->scrollDownAction; | 0 | ||||||||||||||||||||||||||||||||||||
953 | } | - | ||||||||||||||||||||||||||||||||||||
954 | - | |||||||||||||||||||||||||||||||||||||
955 | - | |||||||||||||||||||||||||||||||||||||
956 | - | |||||||||||||||||||||||||||||||||||||
957 | - | |||||||||||||||||||||||||||||||||||||
958 | - | |||||||||||||||||||||||||||||||||||||
959 | QString QAccessibleActionInterface::previousPageAction() | - | ||||||||||||||||||||||||||||||||||||
960 | { | - | ||||||||||||||||||||||||||||||||||||
961 | return never executed: accessibleActionStrings()->previousPageAction;return accessibleActionStrings()->previousPageAction; never executed: return accessibleActionStrings()->previousPageAction; | 0 | ||||||||||||||||||||||||||||||||||||
962 | } | - | ||||||||||||||||||||||||||||||||||||
963 | - | |||||||||||||||||||||||||||||||||||||
964 | - | |||||||||||||||||||||||||||||||||||||
965 | - | |||||||||||||||||||||||||||||||||||||
966 | - | |||||||||||||||||||||||||||||||||||||
967 | - | |||||||||||||||||||||||||||||||||||||
968 | QString QAccessibleActionInterface::nextPageAction() | - | ||||||||||||||||||||||||||||||||||||
969 | { | - | ||||||||||||||||||||||||||||||||||||
970 | return never executed: accessibleActionStrings()->nextPageAction;return accessibleActionStrings()->nextPageAction; never executed: return accessibleActionStrings()->nextPageAction; | 0 | ||||||||||||||||||||||||||||||||||||
971 | } | - | ||||||||||||||||||||||||||||||||||||
972 | - | |||||||||||||||||||||||||||||||||||||
973 | - | |||||||||||||||||||||||||||||||||||||
974 | QString qAccessibleLocalizedActionDescription(const QString &actionName) | - | ||||||||||||||||||||||||||||||||||||
975 | { | - | ||||||||||||||||||||||||||||||||||||
976 | return never executed: accessibleActionStrings()->localizedDescription(actionName);return accessibleActionStrings()->localizedDescription(actionName); never executed: return accessibleActionStrings()->localizedDescription(actionName); | 0 | ||||||||||||||||||||||||||||||||||||
977 | } | - | ||||||||||||||||||||||||||||||||||||
978 | - | |||||||||||||||||||||||||||||||||||||
979 | - | |||||||||||||||||||||||||||||||||||||
980 | - | |||||||||||||||||||||||||||||||||||||
981 | - | |||||||||||||||||||||||||||||||||||||
Switch to Source code | Preprocessed file |