Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/.moc/moc_qqmlconnections_p.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | #pragma GCC diagnostic push | - |
4 | - | |
5 | - | |
6 | #pragma GCC diagnostic ignored "-Wdeprecated-declarations" | - |
7 | - | |
8 | struct qt_meta_stringdata_QQmlConnections_t { | - |
9 | QByteArrayData data[7]; | - |
10 | char stringdata0[82]; | - |
11 | }; | - |
12 | - | |
13 | - | |
14 | - | |
15 | - | |
16 | - | |
17 | static const qt_meta_stringdata_QQmlConnections_t qt_meta_stringdata_QQmlConnections = { | - |
18 | { | - |
19 | { { { -1 } }, 15, 0, 0, qptrdiff( | - |
20 | __builtin_offsetof ( | - |
21 | qt_meta_stringdata_QQmlConnections_t | - |
22 | , | - |
23 | stringdata0 | - |
24 | ) | - |
25 | + 0 - 0 * sizeof(QByteArrayData)) }, | - |
26 | { { { -1 } }, 13, 0, 0, qptrdiff( | - |
27 | __builtin_offsetof ( | - |
28 | qt_meta_stringdata_QQmlConnections_t | - |
29 | , | - |
30 | stringdata0 | - |
31 | ) | - |
32 | + 16 - 1 * sizeof(QByteArrayData)) }, | - |
33 | { { { -1 } }, 0, 0, 0, qptrdiff( | - |
34 | __builtin_offsetof ( | - |
35 | qt_meta_stringdata_QQmlConnections_t | - |
36 | , | - |
37 | stringdata0 | - |
38 | ) | - |
39 | + 30 - 2 * sizeof(QByteArrayData)) }, | - |
40 | { { { -1 } }, 14, 0, 0, qptrdiff( | - |
41 | __builtin_offsetof ( | - |
42 | qt_meta_stringdata_QQmlConnections_t | - |
43 | , | - |
44 | stringdata0 | - |
45 | ) | - |
46 | + 31 - 3 * sizeof(QByteArrayData)) }, | - |
47 | { { { -1 } }, 6, 0, 0, qptrdiff( | - |
48 | __builtin_offsetof ( | - |
49 | qt_meta_stringdata_QQmlConnections_t | - |
50 | , | - |
51 | stringdata0 | - |
52 | ) | - |
53 | + 46 - 4 * sizeof(QByteArrayData)) }, | - |
54 | { { { -1 } }, 7, 0, 0, qptrdiff( | - |
55 | __builtin_offsetof ( | - |
56 | qt_meta_stringdata_QQmlConnections_t | - |
57 | , | - |
58 | stringdata0 | - |
59 | ) | - |
60 | + 53 - 5 * sizeof(QByteArrayData)) }, | - |
61 | { { { -1 } }, 20, 0, 0, qptrdiff( | - |
62 | __builtin_offsetof ( | - |
63 | qt_meta_stringdata_QQmlConnections_t | - |
64 | , | - |
65 | stringdata0 | - |
66 | ) | - |
67 | + 61 - 6 * sizeof(QByteArrayData)) } | - |
68 | - | |
69 | }, | - |
70 | "QQmlConnections\0targetChanged\0\0" | - |
71 | "enabledChanged\0target\0enabled\0" | - |
72 | "ignoreUnknownSignals" | - |
73 | }; | - |
74 | - | |
75 | - | |
76 | static const uint qt_meta_data_QQmlConnections[] = { | - |
77 | - | |
78 | - | |
79 | 7, | - |
80 | 0, | - |
81 | 0, 0, | - |
82 | 2, 14, | - |
83 | 3, 28, | - |
84 | 0, 0, | - |
85 | 0, 0, | - |
86 | 0, | - |
87 | 2, | - |
88 | - | |
89 | - | |
90 | 1, 0, 26, 2, 0x06 , | - |
91 | 3, 0, 27, 2, 0x86 , | - |
92 | - | |
93 | - | |
94 | 0, | - |
95 | 1, | - |
96 | - | |
97 | - | |
98 | QMetaType::Void, | - |
99 | QMetaType::Void, | - |
100 | - | |
101 | - | |
102 | 4, QMetaType::QObjectStar, 0x00495103, | - |
103 | 5, QMetaType::Bool, 0x00495103, | - |
104 | 6, QMetaType::Bool, 0x00095103, | - |
105 | - | |
106 | - | |
107 | 0, | - |
108 | 1, | - |
109 | 0, | - |
110 | - | |
111 | 0 | - |
112 | }; | - |
113 | - | |
114 | void QQmlConnections::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | - |
115 | { | - |
116 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
117 | QQmlConnections *_t = static_cast<QQmlConnections *>(_o); | - |
118 | (void)_t; | - |
119 | switch (_id) { | - |
120 | case 0: _t->targetChanged(); break; | - |
121 | case 1: _t->enabledChanged(); break; | - |
122 | default: ; | - |
123 | } | - |
124 | } else if (_c == QMetaObject::IndexOfMethod) { | - |
125 | int *result = reinterpret_cast<int *>(_a[0]); | - |
126 | { | - |
127 | using _t = void (QQmlConnections::*)(); | - |
128 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlConnections::targetChanged)) { | - |
129 | *result = 0; | - |
130 | return; | - |
131 | } | - |
132 | } | - |
133 | { | - |
134 | using _t = void (QQmlConnections::*)(); | - |
135 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlConnections::enabledChanged)) { | - |
136 | *result = 1; | - |
137 | return; | - |
138 | } | - |
139 | } | - |
140 | } | - |
141 | - | |
142 | else if (_c == QMetaObject::ReadProperty) { | - |
143 | QQmlConnections *_t = static_cast<QQmlConnections *>(_o); | - |
144 | (void)_t; | - |
145 | void *_v = _a[0]; | - |
146 | switch (_id) { | - |
147 | case 0: *reinterpret_cast< QObject**>(_v) = _t->target(); break; | - |
148 | case 1: *reinterpret_cast< bool*>(_v) = _t->isEnabled(); break; | - |
149 | case 2: *reinterpret_cast< bool*>(_v) = _t->ignoreUnknownSignals(); break; | - |
150 | default: break; | - |
151 | } | - |
152 | } else if (_c == QMetaObject::WriteProperty) { | - |
153 | QQmlConnections *_t = static_cast<QQmlConnections *>(_o); | - |
154 | (void)_t; | - |
155 | void *_v = _a[0]; | - |
156 | switch (_id) { | - |
157 | case 0: _t->setTarget(*reinterpret_cast< QObject**>(_v)); break; | - |
158 | case 1: _t->setEnabled(*reinterpret_cast< bool*>(_v)); break; | - |
159 | case 2: _t->setIgnoreUnknownSignals(*reinterpret_cast< bool*>(_v)); break; | - |
160 | default: break; | - |
161 | } | - |
162 | } else if (_c == QMetaObject::ResetProperty) { | - |
163 | } | - |
164 | - | |
165 | (void)_a;; | - |
166 | } | - |
167 | - | |
168 | const QMetaObject QQmlConnections::staticMetaObject = { | - |
169 | { &QObject::staticMetaObject, qt_meta_stringdata_QQmlConnections.data, | - |
170 | qt_meta_data_QQmlConnections, qt_static_metacall, nullptr, nullptr} | - |
171 | }; | - |
172 | - | |
173 | - | |
174 | const QMetaObject *QQmlConnections::metaObject() const | - |
175 | { | - |
176 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | - |
177 | } | - |
178 | - | |
179 | void *QQmlConnections::qt_metacast(const char *_clname) | - |
180 | { | - |
181 | if (!_clname) return nullptr; | - |
182 | if (!strcmp(_clname, qt_meta_stringdata_QQmlConnections.stringdata0)) | - |
183 | return static_cast<void*>(this); | - |
184 | if (!strcmp(_clname, "QQmlParserStatus")) | - |
185 | return static_cast< QQmlParserStatus*>(this); | - |
186 | if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus")) | - |
187 | return static_cast< QQmlParserStatus*>(this); | - |
188 | return QObject::qt_metacast(_clname); | - |
189 | } | - |
190 | - | |
191 | int QQmlConnections::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | - |
192 | { | - |
193 | _id = QObject::qt_metacall(_c, _id, _a); | - |
194 | if (_id < 0) | - |
195 | return _id; | - |
196 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
197 | if (_id < 2) | - |
198 | qt_static_metacall(this, _c, _id, _a); | - |
199 | _id -= 2; | - |
200 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | - |
201 | if (_id < 2) | - |
202 | *reinterpret_cast<int*>(_a[0]) = -1; | - |
203 | _id -= 2; | - |
204 | } | - |
205 | - | |
206 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty | - |
207 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) { | - |
208 | qt_static_metacall(this, _c, _id, _a); | - |
209 | _id -= 3; | - |
210 | } else if (_c == QMetaObject::QueryPropertyDesignable) { | - |
211 | _id -= 3; | - |
212 | } else if (_c == QMetaObject::QueryPropertyScriptable) { | - |
213 | _id -= 3; | - |
214 | } else if (_c == QMetaObject::QueryPropertyStored) { | - |
215 | _id -= 3; | - |
216 | } else if (_c == QMetaObject::QueryPropertyEditable) { | - |
217 | _id -= 3; | - |
218 | } else if (_c == QMetaObject::QueryPropertyUser) { | - |
219 | _id -= 3; | - |
220 | } | - |
221 | - | |
222 | return _id; | - |
223 | } | - |
224 | - | |
225 | - | |
226 | void QQmlConnections::targetChanged() | - |
227 | { | - |
228 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); | - |
229 | } executed 128 times by 9 tests: end of block Executed by:
| 128 |
230 | - | |
231 | - | |
232 | void QQmlConnections::enabledChanged() | - |
233 | { | - |
234 | QMetaObject::activate(this, &staticMetaObject, 1, nullptr); | - |
235 | } executed 6 times by 1 test: end of block Executed by:
| 6 |
236 | - | |
237 | #pragma GCC diagnostic pop | - |
238 | - | |
239 | - | |
Switch to Source code | Preprocessed file |