qaccessiblewidgetfactory.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/widgets/accessible/qaccessiblewidgetfactory.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7QAccessibleInterface *qAccessibleFactory(const QString &classname, QObject *object)-
8{-
9 QAccessibleInterface *iface = 0;-
10 if (!object
!objectDescription
TRUEnever evaluated
FALSEnever evaluated
|| !object->isWidgetType()
!object->isWidgetType()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
11 return
never executed: return iface;
iface;
never executed: return iface;
0
12-
13 QWidget *widget = static_cast<QWidget*>(object);-
14-
15-
16-
17-
18-
19 if (QWidgetPrivate::get(widget)->data.in_destructor
QWidgetPrivate....in_destructorDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
20 return
never executed: return iface;
iface;
never executed: return iface;
0
21-
22 if (false) {
dead code: { }
-
23-
24 }
dead code: { }
else if (classname == QLatin1String("QLineEdit")
classname == Q...g("QLineEdit")Description
TRUEnever evaluated
FALSEnever evaluated
) {
-
25 if (widget->objectName() == QLatin1String("qt_spinbox_lineedit")
widget->object...box_lineedit")Description
TRUEnever evaluated
FALSEnever evaluated
)
0
26 iface = 0;
never executed: iface = 0;
0
27 else-
28 iface = new QAccessibleLineEdit(widget);
never executed: iface = new QAccessibleLineEdit(widget);
0
29-
30-
31 } else if (classname == QLatin1String("QComboBox")
classname == Q...g("QComboBox")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
32 iface = new QAccessibleComboBox(widget);-
33-
34-
35 }
never executed: end of block
else if (classname == QLatin1String("QAbstractSpinBox")
classname == Q...tractSpinBox")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
36 iface = new QAccessibleAbstractSpinBox(widget);-
37 }
never executed: end of block
else if (classname == QLatin1String("QSpinBox")
classname == Q...ng("QSpinBox")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
38 iface = new QAccessibleSpinBox(widget);-
39 }
never executed: end of block
else if (classname == QLatin1String("QDoubleSpinBox")
classname == Q...oubleSpinBox")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
40 iface = new QAccessibleDoubleSpinBox(widget);-
41-
42-
43 }
never executed: end of block
else if (classname == QLatin1String("QScrollBar")
classname == Q...("QScrollBar")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
44 iface = new QAccessibleScrollBar(widget);-
45-
46 }
never executed: end of block
else if (classname == QLatin1String("QAbstractSlider")
classname == Q...stractSlider")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
47 iface = new QAccessibleAbstractSlider(widget);-
48-
49 }
never executed: end of block
else if (classname == QLatin1String("QSlider")
classname == Q...ing("QSlider")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
50 iface = new QAccessibleSlider(widget);-
51-
52-
53 }
never executed: end of block
else if (classname == QLatin1String("QToolButton")
classname == Q..."QToolButton")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
54 iface = new QAccessibleToolButton(widget);-
55-
56 }
never executed: end of block
else if (classname == QLatin1String("QCheckBox")
classname == Q...g("QCheckBox")Description
TRUEnever evaluated
FALSEnever evaluated
0
57 || classname == QLatin1String("QRadioButton")
classname == Q...QRadioButton")Description
TRUEnever evaluated
FALSEnever evaluated
0
58 || classname == QLatin1String("QPushButton")
classname == Q..."QPushButton")Description
TRUEnever evaluated
FALSEnever evaluated
0
59 || classname == QLatin1String("QAbstractButton")
classname == Q...stractButton")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
60 iface = new QAccessibleButton(widget);-
61 }
never executed: end of block
else if (classname == QLatin1String("QDialog")
classname == Q...ing("QDialog")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
62 iface = new QAccessibleWidget(widget, QAccessible::Dialog);-
63 }
never executed: end of block
else if (classname == QLatin1String("QMessageBox")
classname == Q..."QMessageBox")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
64 iface = new QAccessibleWidget(widget, QAccessible::AlertMessage);-
65-
66 }
never executed: end of block
else if (classname == QLatin1String("QMainWindow")
classname == Q..."QMainWindow")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
67 iface = new QAccessibleMainWindow(widget);-
68-
69 }
never executed: end of block
else if (classname == QLatin1String("QLabel")
classname == Q...ring("QLabel")Description
TRUEnever evaluated
FALSEnever evaluated
|| classname == QLatin1String("QLCDNumber")
classname == Q...("QLCDNumber")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
70 iface = new QAccessibleDisplay(widget);-
71-
72 }
never executed: end of block
else if (classname == QLatin1String("QGroupBox")
classname == Q...g("QGroupBox")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
73 iface = new QAccessibleGroupBox(widget);-
74-
75 }
never executed: end of block
else if (classname == QLatin1String("QStatusBar")
classname == Q...("QStatusBar")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
76 iface = new QAccessibleDisplay(widget);-
77-
78 }
never executed: end of block
else if (classname == QLatin1String("QProgressBar")
classname == Q...QProgressBar")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
79 iface = new QAccessibleProgressBar(widget);-
80-
81 }
never executed: end of block
else if (classname == QLatin1String("QToolBar")
classname == Q...ng("QToolBar")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
82 iface = new QAccessibleWidget(widget, QAccessible::ToolBar, widget->windowTitle());-
83-
84 }
never executed: end of block
else if (classname == QLatin1String("QMenuBar")
classname == Q...ng("QMenuBar")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
85 iface = new QAccessibleMenuBar(widget);-
86-
87-
88 }
never executed: end of block
else if (classname == QLatin1String("QMenu")
classname == Q...tring("QMenu")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
89 iface = new QAccessibleMenu(widget);-
90-
91-
92 }
never executed: end of block
else if (classname == QLatin1String("QTreeView")
classname == Q...g("QTreeView")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
93 iface = new QAccessibleTree(widget);-
94 }
never executed: end of block
else if (classname == QLatin1String("QTableView")
classname == Q...("QTableView")Description
TRUEnever evaluated
FALSEnever evaluated
|| classname == QLatin1String("QListView")
classname == Q...g("QListView")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
95 iface = new QAccessibleTable(widget);-
96-
97-
98-
99 }
never executed: end of block
else if (classname == QLatin1String("QTabBar")
classname == Q...ing("QTabBar")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
100 iface = new QAccessibleTabBar(widget);-
101-
102 }
never executed: end of block
else if (classname == QLatin1String("QSizeGrip")
classname == Q...g("QSizeGrip")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
103 iface = new QAccessibleWidget(widget, QAccessible::Grip);-
104-
105 }
never executed: end of block
else if (classname == QLatin1String("QSplitter")
classname == Q...g("QSplitter")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
106 iface = new QAccessibleWidget(widget, QAccessible::Splitter);-
107 }
never executed: end of block
else if (classname == QLatin1String("QSplitterHandle")
classname == Q...litterHandle")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
108 iface = new QAccessibleWidget(widget, QAccessible::Grip);-
109-
110-
111 }
never executed: end of block
else if (classname == QLatin1String("QTextEdit")
classname == Q...g("QTextEdit")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
112 iface = new QAccessibleTextEdit(widget);-
113 }
never executed: end of block
else if (classname == QLatin1String("QPlainTextEdit")
classname == Q...lainTextEdit")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
114 iface = new QAccessiblePlainTextEdit(widget);-
115-
116 }
never executed: end of block
else if (classname == QLatin1String("QTipLabel")
classname == Q...g("QTipLabel")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
117 iface = new QAccessibleDisplay(widget, QAccessible::ToolTip);-
118 }
never executed: end of block
else if (classname == QLatin1String("QFrame")
classname == Q...ring("QFrame")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
119 iface = new QAccessibleWidget(widget, QAccessible::Border);-
120-
121 }
never executed: end of block
else if (classname == QLatin1String("QStackedWidget")
classname == Q...tackedWidget")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
122 iface = new QAccessibleStackedWidget(widget);-
123-
124-
125 }
never executed: end of block
else if (classname == QLatin1String("QToolBox")
classname == Q...ng("QToolBox")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
126 iface = new QAccessibleToolBox(widget);-
127-
128-
129 }
never executed: end of block
else if (classname == QLatin1String("QMdiArea")
classname == Q...ng("QMdiArea")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
130 iface = new QAccessibleMdiArea(widget);-
131 }
never executed: end of block
else if (classname == QLatin1String("QMdiSubWindow")
classname == Q...MdiSubWindow")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
132 iface = new QAccessibleMdiSubWindow(widget);-
133-
134 }
never executed: end of block
else if (classname == QLatin1String("QDialogButtonBox")
classname == Q...logButtonBox")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
135 iface = new QAccessibleDialogButtonBox(widget);-
136-
137 }
never executed: end of block
else if (classname == QLatin1String("QDial")
classname == Q...tring("QDial")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
138 iface = new QAccessibleDial(widget);-
139-
140-
141 }
never executed: end of block
else if (classname == QLatin1String("QRubberBand")
classname == Q..."QRubberBand")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
142 iface = new QAccessibleWidget(widget, QAccessible::Border);-
143-
144-
145 }
never executed: end of block
else if (classname == QLatin1String("QTextBrowser")
classname == Q...QTextBrowser")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
146 iface = new QAccessibleTextBrowser(widget);-
147-
148-
149 }
never executed: end of block
else if (classname == QLatin1String("QAbstractScrollArea")
classname == Q...ctScrollArea")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
150 iface = new QAccessibleAbstractScrollArea(widget);-
151 }
never executed: end of block
else if (classname == QLatin1String("QScrollArea")
classname == Q..."QScrollArea")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
152 iface = new QAccessibleScrollArea(widget);-
153-
154-
155 }
never executed: end of block
else if (classname == QLatin1String("QCalendarWidget")
classname == Q...lendarWidget")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
156 iface = new QAccessibleCalendarWidget(widget);-
157-
158-
159 }
never executed: end of block
else if (classname == QLatin1String("QDockWidget")
classname == Q..."QDockWidget")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
160 iface = new QAccessibleDockWidget(widget);-
161-
162-
163 }
never executed: end of block
else if (classname == QLatin1String("QDesktopScreenWidget")
classname == Q...ScreenWidget")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
164 iface = 0;-
165 }
never executed: end of block
else if (classname == QLatin1String("QWidget")
classname == Q...ing("QWidget")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
166 iface = new QAccessibleWidget(widget);-
167 }
never executed: end of block
else if (classname == QLatin1String("QWindowContainer")
classname == Q...dowContainer")Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
168 iface = new QAccessibleWindowContainer(widget);-
169 }
never executed: end of block
0
170-
171 return
never executed: return iface;
iface;
never executed: return iface;
0
172}-
173-
174-
Switch to Source codePreprocessed file

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