qaccessiblewidget.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/widgets/accessible/qaccessiblewidget.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7static QList<QWidget*> childWidgets(const QWidget *widget)-
8{-
9 QList<QWidget*> widgets;-
10 for (QObject *o : widget->children()) {-
11 QWidget *w = qobject_cast<QWidget *>(o);-
12 if (w
wDescription
TRUEnever evaluated
FALSEnever evaluated
&& !w->isWindow()
!w->isWindow()Description
TRUEnever evaluated
FALSEnever evaluated
0
13 && !qobject_cast<QFocusFrame*>(w)
!qobject_cast<QFocusFrame*>(w)Description
TRUEnever evaluated
FALSEnever evaluated
0
14-
15 && !qobject_cast<QMenu*>(w)
!qobject_cast<QMenu*>(w)Description
TRUEnever evaluated
FALSEnever evaluated
0
16-
17 && w->objectName() != QLatin1String("qt_rubberband")
w->objectName(...t_rubberband")Description
TRUEnever evaluated
FALSEnever evaluated
0
18 && w->objectName() != QLatin1String("qt_spinbox_lineedit")
w->objectName(...box_lineedit")Description
TRUEnever evaluated
FALSEnever evaluated
)
0
19 widgets.append(w);
never executed: widgets.append(w);
0
20 }
never executed: end of block
0
21 return
never executed: return widgets;
widgets;
never executed: return widgets;
0
22}-
23-
24static QString buddyString(const QWidget *widget)-
25{-
26 if (!widget
!widgetDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
27 return
never executed: return QString();
QString();
never executed: return QString();
0
28 QWidget *parent = widget->parentWidget();-
29 if (!parent
!parentDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
30 return
never executed: return QString();
QString();
never executed: return QString();
0
31-
32 for (QObject *o : parent->children()) {-
33 QLabel *label = qobject_cast<QLabel*>(o);-
34 if (label
labelDescription
TRUEnever evaluated
FALSEnever evaluated
&& label->buddy() == widget
label->buddy() == widgetDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
35 return
never executed: return label->text();
label->text();
never executed: return label->text();
0
36 }
never executed: end of block
0
37-
38-
39-
40 QGroupBox *groupbox = qobject_cast<QGroupBox*>(parent);-
41 if (groupbox
groupboxDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
42 return
never executed: return groupbox->title();
groupbox->title();
never executed: return groupbox->title();
0
43-
44-
45 return
never executed: return QString();
QString();
never executed: return QString();
0
46}-
47-
48-
49-
50-
51static int qt_accAmpIndex(const QString &text)-
52{-
53-
54 if (text.isEmpty()
text.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
55 return
never executed: return -1;
-1;
never executed: return -1;
0
56-
57 int fa = 0;-
58 while ((
(fa = text.ind...'), fa)) != -1Description
TRUEnever evaluated
FALSEnever evaluated
fa = text.indexOf(QLatin1Char('&'), fa)) != -1
(fa = text.ind...'), fa)) != -1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
59 ++fa;-
60 if (fa < text.length()
fa < text.length()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
61-
62 if (text.at(fa) == QLatin1Char('&')
text.at(fa) ==...atin1Char('&')Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
63-
64 ++fa;-
65 continue;
never executed: continue;
0
66 } else {-
67 return
never executed: return fa - 1;
fa - 1;
never executed: return fa - 1;
0
68 break;
dead code: break;
-
69 }-
70 }-
71 }
never executed: end of block
0
72-
73 return
never executed: return -1;
-1;
never executed: return -1;
0
74-
75-
76-
77-
78}-
79-
80QString qt_accStripAmp(const QString &text)-
81{-
82 QString newText(text);-
83 int ampIndex = qt_accAmpIndex(newText);-
84 if (ampIndex != -1
ampIndex != -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
85 newText.remove(ampIndex, 1);
never executed: newText.remove(ampIndex, 1);
0
86-
87 return
never executed: return newText.replace(QLatin1String("&&"), QLatin1String("&"));
newText.replace(QLatin1String("&&"), QLatin1String("&"));
never executed: return newText.replace(QLatin1String("&&"), QLatin1String("&"));
0
88}-
89-
90QString qt_accHotKey(const QString &text)-
91{-
92 int ampIndex = qt_accAmpIndex(text);-
93 if (ampIndex != -1
ampIndex != -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
94 return
never executed: return QKeySequence(Qt::ALT).toString(QKeySequence::NativeText) + text.at(ampIndex + 1);
QKeySequence(Qt::ALT).toString(QKeySequence::NativeText) + text.at(ampIndex + 1);
never executed: return QKeySequence(Qt::ALT).toString(QKeySequence::NativeText) + text.at(ampIndex + 1);
0
95-
96 return
never executed: return QString();
QString();
never executed: return QString();
0
97}-
98-
99-
100class QAccessibleWidgetPrivate-
101{-
102public:-
103 QAccessibleWidgetPrivate()-
104 :role(QAccessible::Client)-
105 {}
never executed: end of block
0
106-
107 QAccessible::Role role;-
108 QString name;-
109 QStringList primarySignals;-
110};-
111QAccessibleWidget::QAccessibleWidget(QWidget *w, QAccessible::Role role, const QString &name)-
112: QAccessibleObject(w)-
113{-
114 ((!(widget())) ? qt_assert("widget()",__FILE__,196) : qt_noop());-
115 d = new QAccessibleWidgetPrivate();-
116 d->role = role;-
117 d->name = name;-
118}
never executed: end of block
0
119-
120-
121bool QAccessibleWidget::isValid() const-
122{-
123 if (!object()
!object()Description
TRUEnever evaluated
FALSEnever evaluated
|| static_cast<
static_cast<QW....in_destructorDescription
TRUEnever evaluated
FALSEnever evaluated
QWidget *>(object())->d_func()->data.in_destructor
static_cast<QW....in_destructorDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
124 return
never executed: return false;
false;
never executed: return false;
0
125 return
never executed: return QAccessibleObject::isValid();
QAccessibleObject::isValid();
never executed: return QAccessibleObject::isValid();
0
126}-
127-
128-
129QWindow *QAccessibleWidget::window() const-
130{-
131 const QWidget *w = widget();-
132 ((!(w)) ? qt_assert("w",__FILE__,214) : qt_noop());-
133 QWindow *result = w->windowHandle();-
134 if (!result
!resultDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
135 if (const
const QWidget ...ParentWidget()Description
TRUEnever evaluated
FALSEnever evaluated
QWidget *nativeParent = w->nativeParentWidget()
const QWidget ...ParentWidget()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
136 result = nativeParent->windowHandle();
never executed: result = nativeParent->windowHandle();
0
137 }
never executed: end of block
0
138 return
never executed: return result;
result;
never executed: return result;
0
139}-
140-
141-
142-
143-
144QAccessibleWidget::~QAccessibleWidget()-
145{-
146 delete d;-
147}
never executed: end of block
0
148-
149-
150-
151-
152QWidget *QAccessibleWidget::widget() const-
153{-
154 return
never executed: return qobject_cast<QWidget*>(object());
qobject_cast<QWidget*>(object());
never executed: return qobject_cast<QWidget*>(object());
0
155}-
156-
157-
158-
159-
160-
161QObject *QAccessibleWidget::parentObject() const-
162{-
163 QWidget *w = widget();-
164 if (!w
!wDescription
TRUEnever evaluated
FALSEnever evaluated
|| w->isWindow()
w->isWindow()Description
TRUEnever evaluated
FALSEnever evaluated
|| !w->parentWidget()
!w->parentWidget()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
165 return
never executed: return (static_cast<QApplication *>(QCoreApplication::instance()));
(static_cast<QApplication *>(QCoreApplication::instance()));
never executed: return (static_cast<QApplication *>(QCoreApplication::instance()));
0
166 return
never executed: return w->parent();
w->parent();
never executed: return w->parent();
0
167}-
168-
169-
170QRect QAccessibleWidget::rect() const-
171{-
172 QWidget *w = widget();-
173 if (!w->isVisible()
!w->isVisible()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
174 return
never executed: return QRect();
QRect();
never executed: return QRect();
0
175 QPoint wpos = w->mapToGlobal(QPoint(0, 0));-
176-
177 return
never executed: return QRect(wpos.x(), wpos.y(), w->width(), w->height());
QRect(wpos.x(), wpos.y(), w->width(), w->height());
never executed: return QRect(wpos.x(), wpos.y(), w->width(), w->height());
0
178}-
179-
180-
181-
182-
183class QACConnectionObject : public QObject-
184{-
185 inline QObjectPrivate* d_func() { return
never executed: return reinterpret_cast<QObjectPrivate *>(qGetPtrHelper(d_ptr));
reinterpret_cast<QObjectPrivate *>(qGetPtrHelper(d_ptr));
never executed: return reinterpret_cast<QObjectPrivate *>(qGetPtrHelper(d_ptr));
} inline const QObjectPrivate* d_func() const { return
never executed: return reinterpret_cast<const QObjectPrivate *>(qGetPtrHelper(d_ptr));
reinterpret_cast<const QObjectPrivate *>(qGetPtrHelper(d_ptr));
never executed: return reinterpret_cast<const QObjectPrivate *>(qGetPtrHelper(d_ptr));
} friend class QObjectPrivate;
0
186public:-
187 inline bool isSender(const QObject *receiver, const char *signal) const-
188 { return
never executed: return d_func()->isSender(receiver, signal);
d_func()->isSender(receiver, signal);
never executed: return d_func()->isSender(receiver, signal);
}
0
189 inline QObjectList receiverList(const char *signal) const-
190 { return
never executed: return d_func()->receiverList(signal);
d_func()->receiverList(signal);
never executed: return d_func()->receiverList(signal);
}
0
191 inline QObjectList senderList() const-
192 { return
never executed: return d_func()->senderList();
d_func()->senderList();
never executed: return d_func()->senderList();
}
0
193};-
194-
195-
196-
197-
198-
199-
200-
201void QAccessibleWidget::addControllingSignal(const QString &signal)-
202{-
203 QByteArray s = QMetaObject::normalizedSignature(signal.toLatin1());-
204 if (__builtin_expect(!!(object()->metaObject()->indexOfSignal(s) < 0), false)
__builtin_expe...) < 0), false)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
205 QMessageLogger(__FILE__, 288, __PRETTY_FUNCTION__).warning("Signal %s unknown in %s", s.constData(), object()->metaObject()->className());
never executed: QMessageLogger(__FILE__, 288, __PRETTY_FUNCTION__).warning("Signal %s unknown in %s", s.constData(), object()->metaObject()->className());
0
206 d->primarySignals << QLatin1String(s);-
207}
never executed: end of block
0
208-
209static inline bool isAncestor(const QObject *obj, const QObject *child)-
210{-
211 while (child
childDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
212 if (child == obj
child == objDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
213 return
never executed: return true;
true;
never executed: return true;
0
214 child = child->parent();-
215 }
never executed: end of block
0
216 return
never executed: return false;
false;
never executed: return false;
0
217}-
218-
219-
220QVector<QPair<QAccessibleInterface*, QAccessible::Relation> >-
221QAccessibleWidget::relations(QAccessible::Relation match ) const-
222{-
223 QVector<QPair<QAccessibleInterface*, QAccessible::Relation> > rels;-
224 if (match & QAccessible::Label
match & QAccessible::LabelDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
225 const QAccessible::Relation rel = QAccessible::Label;-
226 if (QWidget *parent = widget()->parentWidget()
QWidget *paren...parentWidget()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
227-
228-
229-
230-
231 const QList<QWidget*> kids = childWidgets(parent);-
232 for (QWidget *kid : kids) {-
233 if (QLabel *labelSibling = qobject_cast<QLabel*>(kid)
QLabel *labelS...<QLabel*>(kid)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
234 if (labelSibling->buddy() == widget()
labelSibling->...() == widget()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
235 QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(labelSibling);-
236 rels.append(qMakePair(iface, rel));-
237 }
never executed: end of block
0
238 }
never executed: end of block
0
239 }
never executed: end of block
0
240-
241-
242 QGroupBox *groupbox = qobject_cast<QGroupBox*>(parent);-
243 if (groupbox
groupboxDescription
TRUEnever evaluated
FALSEnever evaluated
&& !groupbox->title().isEmpty()
!groupbox->title().isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
244 QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(groupbox);-
245 rels.append(qMakePair(iface, rel));-
246 }
never executed: end of block
0
247-
248 }
never executed: end of block
0
249 }
never executed: end of block
0
250-
251 if (match & QAccessible::Controlled
match & QAcces...le::ControlledDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
252 QObjectList allReceivers;-
253 QACConnectionObject *connectionObject = (QACConnectionObject*)object();-
254 for (int sig = 0; sig < d->primarySignals.count()
sig < d->prima...ignals.count()Description
TRUEnever evaluated
FALSEnever evaluated
; ++sig) {
0
255 const QObjectList receivers = connectionObject->receiverList(d->primarySignals.at(sig).toLatin1());-
256 allReceivers += receivers;-
257 }
never executed: end of block
0
258-
259 allReceivers.removeAll(object());-
260-
261 for (int i = 0; i < allReceivers.count()
i < allReceivers.count()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
262 const QAccessible::Relation rel = QAccessible::Controlled;-
263 QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(allReceivers.at(i));-
264 if (iface
ifaceDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
265 rels.append(qMakePair(iface, rel));
never executed: rels.append(qMakePair(iface, rel));
0
266 }
never executed: end of block
0
267 }
never executed: end of block
0
268-
269 return
never executed: return rels;
rels;
never executed: return rels;
0
270}-
271-
272-
273QAccessibleInterface *QAccessibleWidget::parent() const-
274{-
275 return
never executed: return QAccessible::queryAccessibleInterface(parentObject());
QAccessible::queryAccessibleInterface(parentObject());
never executed: return QAccessible::queryAccessibleInterface(parentObject());
0
276}-
277-
278-
279QAccessibleInterface *QAccessibleWidget::child(int index) const-
280{-
281 ((!(widget())) ? qt_assert("widget()",__FILE__,364) : qt_noop());-
282 QWidgetList childList = childWidgets(widget());-
283 if (index >= 0
index >= 0Description
TRUEnever evaluated
FALSEnever evaluated
&& index < childList.size()
index < childList.size()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
284 return
never executed: return QAccessible::queryAccessibleInterface(childList.at(index));
QAccessible::queryAccessibleInterface(childList.at(index));
never executed: return QAccessible::queryAccessibleInterface(childList.at(index));
0
285 return
never executed: return 0;
0;
never executed: return 0;
0
286}-
287-
288-
289QAccessibleInterface *QAccessibleWidget::focusChild() const-
290{-
291 if (widget()->hasFocus()
widget()->hasFocus()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
292 return
never executed: return QAccessible::queryAccessibleInterface(object());
QAccessible::queryAccessibleInterface(object());
never executed: return QAccessible::queryAccessibleInterface(object());
0
293-
294 QWidget *fw = widget()->focusWidget();-
295 if (!fw
!fwDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
296 return
never executed: return 0;
0;
never executed: return 0;
0
297-
298 if (isAncestor(widget(), fw)
isAncestor(widget(), fw)Description
TRUEnever evaluated
FALSEnever evaluated
|| fw == widget()
fw == widget()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
299 return
never executed: return QAccessible::queryAccessibleInterface(fw);
QAccessible::queryAccessibleInterface(fw);
never executed: return QAccessible::queryAccessibleInterface(fw);
0
300 return
never executed: return 0;
0;
never executed: return 0;
0
301}-
302-
303-
304int QAccessibleWidget::childCount() const-
305{-
306 QWidgetList cl = childWidgets(widget());-
307 return
never executed: return cl.size();
cl.size();
never executed: return cl.size();
0
308}-
309-
310-
311int QAccessibleWidget::indexOfChild(const QAccessibleInterface *child) const-
312{-
313 if (!child
!childDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
314 return
never executed: return -1;
-1;
never executed: return -1;
0
315 QWidgetList cl = childWidgets(widget());-
316 return
never executed: return cl.indexOf(qobject_cast<QWidget *>(child->object()));
cl.indexOf(qobject_cast<QWidget *>(child->object()));
never executed: return cl.indexOf(qobject_cast<QWidget *>(child->object()));
0
317}-
318-
319-
320extern QString qt_setWindowTitle_helperHelper(const QString &, const QWidget*);-
321-
322-
323QString QAccessibleWidget::text(QAccessible::Text t) const-
324{-
325 QString str;-
326-
327 switch (t) {-
328 case
never executed: case QAccessible::Name:
QAccessible::Name:
never executed: case QAccessible::Name:
0
329 if (!d->name.isEmpty()
!d->name.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
330 str = d->name;-
331 }
never executed: end of block
else if (!widget()->accessibleName().isEmpty()
!widget()->acc...me().isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
332 str = widget()->accessibleName();-
333 }
never executed: end of block
else if (widget()->isWindow()
widget()->isWindow()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
334 if (widget()->isMinimized()
widget()->isMinimized()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
335 str = qt_setWindowTitle_helperHelper(widget()->windowIconText(), widget());
never executed: str = qt_setWindowTitle_helperHelper(widget()->windowIconText(), widget());
0
336 else-
337 str = qt_setWindowTitle_helperHelper(widget()->windowTitle(), widget());
never executed: str = qt_setWindowTitle_helperHelper(widget()->windowTitle(), widget());
0
338 } else {-
339 str = qt_accStripAmp(buddyString(widget()));-
340 }
never executed: end of block
0
341 break;
never executed: break;
0
342 case
never executed: case QAccessible::Description:
QAccessible::Description:
never executed: case QAccessible::Description:
0
343 str = widget()->accessibleDescription();-
344-
345 if (str.isEmpty()
str.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
346 str = widget()->toolTip();
never executed: str = widget()->toolTip();
0
347-
348 break;
never executed: break;
0
349 case
never executed: case QAccessible::Help:
QAccessible::Help:
never executed: case QAccessible::Help:
0
350-
351 str = widget()->whatsThis();-
352-
353 break;
never executed: break;
0
354 case
never executed: case QAccessible::Accelerator:
QAccessible::Accelerator:
never executed: case QAccessible::Accelerator:
0
355 str = qt_accHotKey(buddyString(widget()));-
356 break;
never executed: break;
0
357 case
never executed: case QAccessible::Value:
QAccessible::Value:
never executed: case QAccessible::Value:
0
358 break;
never executed: break;
0
359 default
never executed: default:
:
never executed: default:
0
360 break;
never executed: break;
0
361 }-
362 return
never executed: return str;
str;
never executed: return str;
0
363}-
364-
365-
366QStringList QAccessibleWidget::actionNames() const-
367{-
368 QStringList names;-
369 if (widget()->isEnabled()
widget()->isEnabled()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
370 if (widget()->focusPolicy() != Qt::NoFocus
widget()->focu...!= Qt::NoFocusDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
371 names << setFocusAction();
never executed: names << setFocusAction();
0
372 }
never executed: end of block
0
373 return
never executed: return names;
names;
never executed: return names;
0
374}-
375-
376-
377void QAccessibleWidget::doAction(const QString &actionName)-
378{-
379 if (!widget()->isEnabled()
!widget()->isEnabled()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
380 return;
never executed: return;
0
381-
382 if (actionName == setFocusAction()
actionName == setFocusAction()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
383 if (widget()->isWindow()
widget()->isWindow()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
384 widget()->activateWindow();
never executed: widget()->activateWindow();
0
385 widget()->setFocus();-
386 }
never executed: end of block
0
387}
never executed: end of block
0
388-
389-
390QStringList QAccessibleWidget::keyBindingsForAction(const QString & ) const-
391{-
392 return
never executed: return QStringList();
QStringList();
never executed: return QStringList();
0
393}-
394-
395-
396QAccessible::Role QAccessibleWidget::role() const-
397{-
398 return
never executed: return d->role;
d->role;
never executed: return d->role;
0
399}-
400-
401-
402QAccessible::State QAccessibleWidget::state() const-
403{-
404 QAccessible::State state;-
405-
406 QWidget *w = widget();-
407 if (w->testAttribute(Qt::WA_WState_Visible) == false
w->testAttribu...ible) == falseDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
408 state.invisible = true;
never executed: state.invisible = true;
0
409 if (w->focusPolicy() != Qt::NoFocus
w->focusPolicy...!= Qt::NoFocusDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
410 state.focusable = true;
never executed: state.focusable = true;
0
411 if (w->hasFocus()
w->hasFocus()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
412 state.focused = true;
never executed: state.focused = true;
0
413 if (!w->isEnabled()
!w->isEnabled()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
414 state.disabled = true;
never executed: state.disabled = true;
0
415 if (w->isWindow()
w->isWindow()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
416 if (w->windowFlags() & Qt::WindowSystemMenuHint
w->windowFlags...SystemMenuHintDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
417 state.movable = true;
never executed: state.movable = true;
0
418 if (w->minimumSize() != w->maximumSize()
w->minimumSize...>maximumSize()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
419 state.sizeable = true;
never executed: state.sizeable = true;
0
420 if (w->isActiveWindow()
w->isActiveWindow()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
421 state.active = true;
never executed: state.active = true;
0
422 }
never executed: end of block
0
423-
424 return
never executed: return state;
state;
never executed: return state;
0
425}-
426-
427-
428QColor QAccessibleWidget::foregroundColor() const-
429{-
430 return
never executed: return widget()->palette().color(widget()->foregroundRole());
widget()->palette().color(widget()->foregroundRole());
never executed: return widget()->palette().color(widget()->foregroundRole());
0
431}-
432-
433-
434QColor QAccessibleWidget::backgroundColor() const-
435{-
436 return
never executed: return widget()->palette().color(widget()->backgroundRole());
widget()->palette().color(widget()->backgroundRole());
never executed: return widget()->palette().color(widget()->backgroundRole());
0
437}-
438-
439-
440void *QAccessibleWidget::interface_cast(QAccessible::InterfaceType t)-
441{-
442 if (t == QAccessible::ActionInterface
t == QAccessib...ctionInterfaceDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
443 return
never executed: return static_cast<QAccessibleActionInterface*>(this);
static_cast<QAccessibleActionInterface*>(this);
never executed: return static_cast<QAccessibleActionInterface*>(this);
0
444 return
never executed: return 0;
0;
never executed: return 0;
0
445}-
446-
447-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9