Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | QAccessibleInterface *qAccessibleFactory(const QString &classname, QObject *object) | - |
8 | { | - |
9 | QAccessibleInterface *iface = 0; | - |
10 | if (!objectTRUE | never evaluated | FALSE | never evaluated |
|| !object->isWidgetType()TRUE | never evaluated | FALSE | never 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_destructorTRUE | never evaluated | FALSE | never 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")TRUE | never evaluated | FALSE | never evaluated |
) { | - |
25 | if (widget->objectName() == QLatin1String("qt_spinbox_lineedit")TRUE | never evaluated | FALSE | never 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")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
32 | iface = new QAccessibleComboBox(widget); | - |
33 | | - |
34 | | - |
35 | } never executed: end of block else if (classname == QLatin1String("QAbstractSpinBox")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
36 | iface = new QAccessibleAbstractSpinBox(widget); | - |
37 | } never executed: end of block else if (classname == QLatin1String("QSpinBox")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
38 | iface = new QAccessibleSpinBox(widget); | - |
39 | } never executed: end of block else if (classname == QLatin1String("QDoubleSpinBox")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
40 | iface = new QAccessibleDoubleSpinBox(widget); | - |
41 | | - |
42 | | - |
43 | } never executed: end of block else if (classname == QLatin1String("QScrollBar")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
44 | iface = new QAccessibleScrollBar(widget); | - |
45 | | - |
46 | } never executed: end of block else if (classname == QLatin1String("QAbstractSlider")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
47 | iface = new QAccessibleAbstractSlider(widget); | - |
48 | | - |
49 | } never executed: end of block else if (classname == QLatin1String("QSlider")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
50 | iface = new QAccessibleSlider(widget); | - |
51 | | - |
52 | | - |
53 | } never executed: end of block else if (classname == QLatin1String("QToolButton")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
54 | iface = new QAccessibleToolButton(widget); | - |
55 | | - |
56 | } never executed: end of block else if (classname == QLatin1String("QCheckBox")TRUE | never evaluated | FALSE | never evaluated |
| 0 |
57 | || classname == QLatin1String("QRadioButton")TRUE | never evaluated | FALSE | never evaluated |
| 0 |
58 | || classname == QLatin1String("QPushButton")TRUE | never evaluated | FALSE | never evaluated |
| 0 |
59 | || classname == QLatin1String("QAbstractButton")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
60 | iface = new QAccessibleButton(widget); | - |
61 | } never executed: end of block else if (classname == QLatin1String("QDialog")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
62 | iface = new QAccessibleWidget(widget, QAccessible::Dialog); | - |
63 | } never executed: end of block else if (classname == QLatin1String("QMessageBox")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
64 | iface = new QAccessibleWidget(widget, QAccessible::AlertMessage); | - |
65 | | - |
66 | } never executed: end of block else if (classname == QLatin1String("QMainWindow")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
67 | iface = new QAccessibleMainWindow(widget); | - |
68 | | - |
69 | } never executed: end of block else if (classname == QLatin1String("QLabel")TRUE | never evaluated | FALSE | never evaluated |
|| classname == QLatin1String("QLCDNumber")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
70 | iface = new QAccessibleDisplay(widget); | - |
71 | | - |
72 | } never executed: end of block else if (classname == QLatin1String("QGroupBox")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
73 | iface = new QAccessibleGroupBox(widget); | - |
74 | | - |
75 | } never executed: end of block else if (classname == QLatin1String("QStatusBar")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
76 | iface = new QAccessibleDisplay(widget); | - |
77 | | - |
78 | } never executed: end of block else if (classname == QLatin1String("QProgressBar")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
79 | iface = new QAccessibleProgressBar(widget); | - |
80 | | - |
81 | } never executed: end of block else if (classname == QLatin1String("QToolBar")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
82 | iface = new QAccessibleWidget(widget, QAccessible::ToolBar, widget->windowTitle()); | - |
83 | | - |
84 | } never executed: end of block else if (classname == QLatin1String("QMenuBar")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
85 | iface = new QAccessibleMenuBar(widget); | - |
86 | | - |
87 | | - |
88 | } never executed: end of block else if (classname == QLatin1String("QMenu")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
89 | iface = new QAccessibleMenu(widget); | - |
90 | | - |
91 | | - |
92 | } never executed: end of block else if (classname == QLatin1String("QTreeView")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
93 | iface = new QAccessibleTree(widget); | - |
94 | } never executed: end of block else if (classname == QLatin1String("QTableView")TRUE | never evaluated | FALSE | never evaluated |
|| classname == QLatin1String("QListView")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
95 | iface = new QAccessibleTable(widget); | - |
96 | | - |
97 | | - |
98 | | - |
99 | } never executed: end of block else if (classname == QLatin1String("QTabBar")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
100 | iface = new QAccessibleTabBar(widget); | - |
101 | | - |
102 | } never executed: end of block else if (classname == QLatin1String("QSizeGrip")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
103 | iface = new QAccessibleWidget(widget, QAccessible::Grip); | - |
104 | | - |
105 | } never executed: end of block else if (classname == QLatin1String("QSplitter")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
106 | iface = new QAccessibleWidget(widget, QAccessible::Splitter); | - |
107 | } never executed: end of block else if (classname == QLatin1String("QSplitterHandle")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
108 | iface = new QAccessibleWidget(widget, QAccessible::Grip); | - |
109 | | - |
110 | | - |
111 | } never executed: end of block else if (classname == QLatin1String("QTextEdit")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
112 | iface = new QAccessibleTextEdit(widget); | - |
113 | } never executed: end of block else if (classname == QLatin1String("QPlainTextEdit")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
114 | iface = new QAccessiblePlainTextEdit(widget); | - |
115 | | - |
116 | } never executed: end of block else if (classname == QLatin1String("QTipLabel")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
117 | iface = new QAccessibleDisplay(widget, QAccessible::ToolTip); | - |
118 | } never executed: end of block else if (classname == QLatin1String("QFrame")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
119 | iface = new QAccessibleWidget(widget, QAccessible::Border); | - |
120 | | - |
121 | } never executed: end of block else if (classname == QLatin1String("QStackedWidget")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
122 | iface = new QAccessibleStackedWidget(widget); | - |
123 | | - |
124 | | - |
125 | } never executed: end of block else if (classname == QLatin1String("QToolBox")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
126 | iface = new QAccessibleToolBox(widget); | - |
127 | | - |
128 | | - |
129 | } never executed: end of block else if (classname == QLatin1String("QMdiArea")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
130 | iface = new QAccessibleMdiArea(widget); | - |
131 | } never executed: end of block else if (classname == QLatin1String("QMdiSubWindow")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
132 | iface = new QAccessibleMdiSubWindow(widget); | - |
133 | | - |
134 | } never executed: end of block else if (classname == QLatin1String("QDialogButtonBox")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
135 | iface = new QAccessibleDialogButtonBox(widget); | - |
136 | | - |
137 | } never executed: end of block else if (classname == QLatin1String("QDial")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
138 | iface = new QAccessibleDial(widget); | - |
139 | | - |
140 | | - |
141 | } never executed: end of block else if (classname == QLatin1String("QRubberBand")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
142 | iface = new QAccessibleWidget(widget, QAccessible::Border); | - |
143 | | - |
144 | | - |
145 | } never executed: end of block else if (classname == QLatin1String("QTextBrowser")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
146 | iface = new QAccessibleTextBrowser(widget); | - |
147 | | - |
148 | | - |
149 | } never executed: end of block else if (classname == QLatin1String("QAbstractScrollArea")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
150 | iface = new QAccessibleAbstractScrollArea(widget); | - |
151 | } never executed: end of block else if (classname == QLatin1String("QScrollArea")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
152 | iface = new QAccessibleScrollArea(widget); | - |
153 | | - |
154 | | - |
155 | } never executed: end of block else if (classname == QLatin1String("QCalendarWidget")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
156 | iface = new QAccessibleCalendarWidget(widget); | - |
157 | | - |
158 | | - |
159 | } never executed: end of block else if (classname == QLatin1String("QDockWidget")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
160 | iface = new QAccessibleDockWidget(widget); | - |
161 | | - |
162 | | - |
163 | } never executed: end of block else if (classname == QLatin1String("QDesktopScreenWidget")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
164 | iface = 0; | - |
165 | } never executed: end of block else if (classname == QLatin1String("QWidget")TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
166 | iface = new QAccessibleWidget(widget); | - |
167 | } never executed: end of block else if (classname == QLatin1String("QWindowContainer")TRUE | never evaluated | FALSE | never 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 | | - |
| | |