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_QQuickFontMetrics_t { | - |
9 | QByteArrayData data[27]; | - |
10 | char stringdata0[327]; | - |
11 | }; | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | static const qt_meta_stringdata_QQuickFontMetrics_t qt_meta_stringdata_QQuickFontMetrics = { | - |
18 | { | - |
19 | { { { -1 } }, 17, 0, 0, qptrdiff( | - |
20 | __builtin_offsetof ( | - |
21 | qt_meta_stringdata_QQuickFontMetrics_t | - |
22 | , | - |
23 | stringdata0 | - |
24 | ) | - |
25 | + 0 - 0 * sizeof(QByteArrayData)) }, | - |
26 | { { { -1 } }, 11, 0, 0, qptrdiff( | - |
27 | __builtin_offsetof ( | - |
28 | qt_meta_stringdata_QQuickFontMetrics_t | - |
29 | , | - |
30 | stringdata0 | - |
31 | ) | - |
32 | + 18 - 1 * sizeof(QByteArrayData)) }, | - |
33 | { { { -1 } }, 0, 0, 0, qptrdiff( | - |
34 | __builtin_offsetof ( | - |
35 | qt_meta_stringdata_QQuickFontMetrics_t | - |
36 | , | - |
37 | stringdata0 | - |
38 | ) | - |
39 | + 30 - 2 * sizeof(QByteArrayData)) }, | - |
40 | { { { -1 } }, 4, 0, 0, qptrdiff( | - |
41 | __builtin_offsetof ( | - |
42 | qt_meta_stringdata_QQuickFontMetrics_t | - |
43 | , | - |
44 | stringdata0 | - |
45 | ) | - |
46 | + 31 - 3 * sizeof(QByteArrayData)) }, | - |
47 | { { { -1 } }, 12, 0, 0, qptrdiff( | - |
48 | __builtin_offsetof ( | - |
49 | qt_meta_stringdata_QQuickFontMetrics_t | - |
50 | , | - |
51 | stringdata0 | - |
52 | ) | - |
53 | + 36 - 4 * sizeof(QByteArrayData)) }, | - |
54 | { { { -1 } }, 4, 0, 0, qptrdiff( | - |
55 | __builtin_offsetof ( | - |
56 | qt_meta_stringdata_QQuickFontMetrics_t | - |
57 | , | - |
58 | stringdata0 | - |
59 | ) | - |
60 | + 49 - 5 * sizeof(QByteArrayData)) }, | - |
61 | { { { -1 } }, 12, 0, 0, qptrdiff( | - |
62 | __builtin_offsetof ( | - |
63 | qt_meta_stringdata_QQuickFontMetrics_t | - |
64 | , | - |
65 | stringdata0 | - |
66 | ) | - |
67 | + 54 - 6 * sizeof(QByteArrayData)) }, | - |
68 | { { { -1 } }, 17, 0, 0, qptrdiff( | - |
69 | __builtin_offsetof ( | - |
70 | qt_meta_stringdata_QQuickFontMetrics_t | - |
71 | , | - |
72 | stringdata0 | - |
73 | ) | - |
74 | + 67 - 7 * sizeof(QByteArrayData)) }, | - |
75 | { { { -1 } }, 10, 0, 0, qptrdiff( | - |
76 | __builtin_offsetof ( | - |
77 | qt_meta_stringdata_QQuickFontMetrics_t | - |
78 | , | - |
79 | stringdata0 | - |
80 | ) | - |
81 | + 85 - 8 * sizeof(QByteArrayData)) }, | - |
82 | { { { -1 } }, 17, 0, 0, qptrdiff( | - |
83 | __builtin_offsetof ( | - |
84 | qt_meta_stringdata_QQuickFontMetrics_t | - |
85 | , | - |
86 | stringdata0 | - |
87 | ) | - |
88 | + 96 - 9 * sizeof(QByteArrayData)) }, | - |
89 | { { { -1 } }, 4, 0, 0, qptrdiff( | - |
90 | __builtin_offsetof ( | - |
91 | qt_meta_stringdata_QQuickFontMetrics_t | - |
92 | , | - |
93 | stringdata0 | - |
94 | ) | - |
95 | + 114 - 10 * sizeof(QByteArrayData)) }, | - |
96 | { { { -1 } }, 5, 0, 0, qptrdiff( | - |
97 | __builtin_offsetof ( | - |
98 | qt_meta_stringdata_QQuickFontMetrics_t | - |
99 | , | - |
100 | stringdata0 | - |
101 | ) | - |
102 | + 119 - 11 * sizeof(QByteArrayData)) }, | - |
103 | { { { -1 } }, 5, 0, 0, qptrdiff( | - |
104 | __builtin_offsetof ( | - |
105 | qt_meta_stringdata_QQuickFontMetrics_t | - |
106 | , | - |
107 | stringdata0 | - |
108 | ) | - |
109 | + 125 - 12 * sizeof(QByteArrayData)) }, | - |
110 | { { { -1 } }, 6, 0, 0, qptrdiff( | - |
111 | __builtin_offsetof ( | - |
112 | qt_meta_stringdata_QQuickFontMetrics_t | - |
113 | , | - |
114 | stringdata0 | - |
115 | ) | - |
116 | + 131 - 13 * sizeof(QByteArrayData)) }, | - |
117 | { { { -1 } }, 7, 0, 0, qptrdiff( | - |
118 | __builtin_offsetof ( | - |
119 | qt_meta_stringdata_QQuickFontMetrics_t | - |
120 | , | - |
121 | stringdata0 | - |
122 | ) | - |
123 | + 138 - 14 * sizeof(QByteArrayData)) }, | - |
124 | { { { -1 } }, 6, 0, 0, qptrdiff( | - |
125 | __builtin_offsetof ( | - |
126 | qt_meta_stringdata_QQuickFontMetrics_t | - |
127 | , | - |
128 | stringdata0 | - |
129 | ) | - |
130 | + 146 - 15 * sizeof(QByteArrayData)) }, | - |
131 | { { { -1 } }, 7, 0, 0, qptrdiff( | - |
132 | __builtin_offsetof ( | - |
133 | qt_meta_stringdata_QQuickFontMetrics_t | - |
134 | , | - |
135 | stringdata0 | - |
136 | ) | - |
137 | + 153 - 16 * sizeof(QByteArrayData)) }, | - |
138 | { { { -1 } }, 11, 0, 0, qptrdiff( | - |
139 | __builtin_offsetof ( | - |
140 | qt_meta_stringdata_QQuickFontMetrics_t | - |
141 | , | - |
142 | stringdata0 | - |
143 | ) | - |
144 | + 161 - 17 * sizeof(QByteArrayData)) }, | - |
145 | { { { -1 } }, 18, 0, 0, qptrdiff( | - |
146 | __builtin_offsetof ( | - |
147 | qt_meta_stringdata_QQuickFontMetrics_t | - |
148 | , | - |
149 | stringdata0 | - |
150 | ) | - |
151 | + 173 - 18 * sizeof(QByteArrayData)) }, | - |
152 | { { { -1 } }, 19, 0, 0, qptrdiff( | - |
153 | __builtin_offsetof ( | - |
154 | qt_meta_stringdata_QQuickFontMetrics_t | - |
155 | , | - |
156 | stringdata0 | - |
157 | ) | - |
158 | + 192 - 19 * sizeof(QByteArrayData)) }, | - |
159 | { { { -1 } }, 21, 0, 0, qptrdiff( | - |
160 | __builtin_offsetof ( | - |
161 | qt_meta_stringdata_QQuickFontMetrics_t | - |
162 | , | - |
163 | stringdata0 | - |
164 | ) | - |
165 | + 212 - 20 * sizeof(QByteArrayData)) }, | - |
166 | { { { -1 } }, 7, 0, 0, qptrdiff( | - |
167 | __builtin_offsetof ( | - |
168 | qt_meta_stringdata_QQuickFontMetrics_t | - |
169 | , | - |
170 | stringdata0 | - |
171 | ) | - |
172 | + 234 - 21 * sizeof(QByteArrayData)) }, | - |
173 | { { { -1 } }, 21, 0, 0, qptrdiff( | - |
174 | __builtin_offsetof ( | - |
175 | qt_meta_stringdata_QQuickFontMetrics_t | - |
176 | , | - |
177 | stringdata0 | - |
178 | ) | - |
179 | + 242 - 22 * sizeof(QByteArrayData)) }, | - |
180 | { { { -1 } }, 17, 0, 0, qptrdiff( | - |
181 | __builtin_offsetof ( | - |
182 | qt_meta_stringdata_QQuickFontMetrics_t | - |
183 | , | - |
184 | stringdata0 | - |
185 | ) | - |
186 | + 264 - 23 * sizeof(QByteArrayData)) }, | - |
187 | { { { -1 } }, 16, 0, 0, qptrdiff( | - |
188 | __builtin_offsetof ( | - |
189 | qt_meta_stringdata_QQuickFontMetrics_t | - |
190 | , | - |
191 | stringdata0 | - |
192 | ) | - |
193 | + 282 - 24 * sizeof(QByteArrayData)) }, | - |
194 | { { { -1 } }, 17, 0, 0, qptrdiff( | - |
195 | __builtin_offsetof ( | - |
196 | qt_meta_stringdata_QQuickFontMetrics_t | - |
197 | , | - |
198 | stringdata0 | - |
199 | ) | - |
200 | + 299 - 25 * sizeof(QByteArrayData)) }, | - |
201 | { { { -1 } }, 9, 0, 0, qptrdiff( | - |
202 | __builtin_offsetof ( | - |
203 | qt_meta_stringdata_QQuickFontMetrics_t | - |
204 | , | - |
205 | stringdata0 | - |
206 | ) | - |
207 | + 317 - 26 * sizeof(QByteArrayData)) } | - |
208 | | - |
209 | }, | - |
210 | "QQuickFontMetrics\0fontChanged\0\0font\0" | - |
211 | "advanceWidth\0text\0boundingRect\0" | - |
212 | "tightBoundingRect\0elidedText\0" | - |
213 | "Qt::TextElideMode\0mode\0width\0flags\0" | - |
214 | "ascent\0descent\0height\0leading\0lineSpacing\0" | - |
215 | "minimumLeftBearing\0minimumRightBearing\0" | - |
216 | "maximumCharacterWidth\0xHeight\0" | - |
217 | "averageCharacterWidth\0underlinePosition\0" | - |
218 | "overlinePosition\0strikeOutPosition\0" | - |
219 | "lineWidth" | - |
220 | }; | - |
221 | | - |
222 | | - |
223 | static const uint qt_meta_data_QQuickFontMetrics[] = { | - |
224 | | - |
225 | | - |
226 | 7, | - |
227 | 0, | - |
228 | 0, 0, | - |
229 | 6, 14, | - |
230 | 15, 72, | - |
231 | 0, 0, | - |
232 | 0, 0, | - |
233 | 0, | - |
234 | 1, | - |
235 | | - |
236 | | - |
237 | 1, 1, 44, 2, 0x06 , | - |
238 | | - |
239 | | - |
240 | 4, 1, 47, 2, 0x02 , | - |
241 | 6, 1, 50, 2, 0x02 , | - |
242 | 7, 1, 53, 2, 0x02 , | - |
243 | 8, 4, 56, 2, 0x02 , | - |
244 | 8, 3, 65, 2, 0x22 , | - |
245 | | - |
246 | | - |
247 | QMetaType::Void, QMetaType::QFont, 3, | - |
248 | | - |
249 | | - |
250 | QMetaType::QReal, QMetaType::QString, 5, | - |
251 | QMetaType::QRectF, QMetaType::QString, 5, | - |
252 | QMetaType::QRectF, QMetaType::QString, 5, | - |
253 | QMetaType::QString, QMetaType::QString, 0x80000000 | 9, QMetaType::QReal, QMetaType::Int, 5, 10, 11, 12, | - |
254 | QMetaType::QString, QMetaType::QString, 0x80000000 | 9, QMetaType::QReal, 5, 10, 11, | - |
255 | | - |
256 | | - |
257 | 3, QMetaType::QFont, 0x00495103, | - |
258 | 13, QMetaType::QReal, 0x00495001, | - |
259 | 14, QMetaType::QReal, 0x00495001, | - |
260 | 15, QMetaType::QReal, 0x00495001, | - |
261 | 16, QMetaType::QReal, 0x00495001, | - |
262 | 17, QMetaType::QReal, 0x00495001, | - |
263 | 18, QMetaType::QReal, 0x00495001, | - |
264 | 19, QMetaType::QReal, 0x00495001, | - |
265 | 20, QMetaType::QReal, 0x00495001, | - |
266 | 21, QMetaType::QReal, 0x00495001, | - |
267 | 22, QMetaType::QReal, 0x00495001, | - |
268 | 23, QMetaType::QReal, 0x00495001, | - |
269 | 24, QMetaType::QReal, 0x00495001, | - |
270 | 25, QMetaType::QReal, 0x00495001, | - |
271 | 26, QMetaType::QReal, 0x00495001, | - |
272 | | - |
273 | | - |
274 | 0, | - |
275 | 0, | - |
276 | 0, | - |
277 | 0, | - |
278 | 0, | - |
279 | 0, | - |
280 | 0, | - |
281 | 0, | - |
282 | 0, | - |
283 | 0, | - |
284 | 0, | - |
285 | 0, | - |
286 | 0, | - |
287 | 0, | - |
288 | 0, | - |
289 | | - |
290 | 0 | - |
291 | }; | - |
292 | | - |
293 | void QQuickFontMetrics::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | - |
294 | { | - |
295 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
296 | QQuickFontMetrics *_t = static_cast<QQuickFontMetrics *>(_o); | - |
297 | (void)_t; | - |
298 | switch (_id) { | - |
299 | case 0: _t->fontChanged((*reinterpret_cast< const QFont(*)>(_a[1]))); break; | - |
300 | case 1: { qreal _r = _t->advanceWidth((*reinterpret_cast< const QString(*)>(_a[1]))); | - |
301 | if (_a[0]) *reinterpret_cast< qreal*>(_a[0]) = std::move(_r); } break; | - |
302 | case 2: { QRectF _r = _t->boundingRect((*reinterpret_cast< const QString(*)>(_a[1]))); | - |
303 | if (_a[0]) *reinterpret_cast< QRectF*>(_a[0]) = std::move(_r); } break; | - |
304 | case 3: { QRectF _r = _t->tightBoundingRect((*reinterpret_cast< const QString(*)>(_a[1]))); | - |
305 | if (_a[0]) *reinterpret_cast< QRectF*>(_a[0]) = std::move(_r); } break; | - |
306 | case 4: { QString _r = _t->elidedText((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< Qt::TextElideMode(*)>(_a[2])),(*reinterpret_cast< qreal(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4]))); | - |
307 | if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); } break; | - |
308 | case 5: { QString _r = _t->elidedText((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< Qt::TextElideMode(*)>(_a[2])),(*reinterpret_cast< qreal(*)>(_a[3]))); | - |
309 | if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); } break; | - |
310 | default: ; | - |
311 | } | - |
312 | } else if (_c == QMetaObject::IndexOfMethod) { | - |
313 | int *result = reinterpret_cast<int *>(_a[0]); | - |
314 | { | - |
315 | using _t = void (QQuickFontMetrics::*)(const QFont & ); | - |
316 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickFontMetrics::fontChanged)) { | - |
317 | *result = 0; | - |
318 | return; | - |
319 | } | - |
320 | } | - |
321 | } | - |
322 | | - |
323 | else if (_c == QMetaObject::ReadProperty) { | - |
324 | QQuickFontMetrics *_t = static_cast<QQuickFontMetrics *>(_o); | - |
325 | (void)_t; | - |
326 | void *_v = _a[0]; | - |
327 | switch (_id) { | - |
328 | case 0: *reinterpret_cast< QFont*>(_v) = _t->font(); break; | - |
329 | case 1: *reinterpret_cast< qreal*>(_v) = _t->ascent(); break; | - |
330 | case 2: *reinterpret_cast< qreal*>(_v) = _t->descent(); break; | - |
331 | case 3: *reinterpret_cast< qreal*>(_v) = _t->height(); break; | - |
332 | case 4: *reinterpret_cast< qreal*>(_v) = _t->leading(); break; | - |
333 | case 5: *reinterpret_cast< qreal*>(_v) = _t->lineSpacing(); break; | - |
334 | case 6: *reinterpret_cast< qreal*>(_v) = _t->minimumLeftBearing(); break; | - |
335 | case 7: *reinterpret_cast< qreal*>(_v) = _t->minimumRightBearing(); break; | - |
336 | case 8: *reinterpret_cast< qreal*>(_v) = _t->maximumCharacterWidth(); break; | - |
337 | case 9: *reinterpret_cast< qreal*>(_v) = _t->xHeight(); break; | - |
338 | case 10: *reinterpret_cast< qreal*>(_v) = _t->averageCharacterWidth(); break; | - |
339 | case 11: *reinterpret_cast< qreal*>(_v) = _t->underlinePosition(); break; | - |
340 | case 12: *reinterpret_cast< qreal*>(_v) = _t->overlinePosition(); break; | - |
341 | case 13: *reinterpret_cast< qreal*>(_v) = _t->strikeOutPosition(); break; | - |
342 | case 14: *reinterpret_cast< qreal*>(_v) = _t->lineWidth(); break; | - |
343 | default: break; | - |
344 | } | - |
345 | } else if (_c == QMetaObject::WriteProperty) { | - |
346 | QQuickFontMetrics *_t = static_cast<QQuickFontMetrics *>(_o); | - |
347 | (void)_t; | - |
348 | void *_v = _a[0]; | - |
349 | switch (_id) { | - |
350 | case 0: _t->setFont(*reinterpret_cast< QFont*>(_v)); break; | - |
351 | default: break; | - |
352 | } | - |
353 | } else if (_c == QMetaObject::ResetProperty) { | - |
354 | } | - |
355 | | - |
356 | } | - |
357 | | - |
358 | const QMetaObject QQuickFontMetrics::staticMetaObject = { | - |
359 | { &QObject::staticMetaObject, qt_meta_stringdata_QQuickFontMetrics.data, | - |
360 | qt_meta_data_QQuickFontMetrics, qt_static_metacall, nullptr, nullptr} | - |
361 | }; | - |
362 | | - |
363 | | - |
364 | const QMetaObject *QQuickFontMetrics::metaObject() const | - |
365 | { | - |
366 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | - |
367 | } | - |
368 | | - |
369 | void *QQuickFontMetrics::qt_metacast(const char *_clname) | - |
370 | { | - |
371 | if (!_clname) return nullptr; | - |
372 | if (!strcmp(_clname, qt_meta_stringdata_QQuickFontMetrics.stringdata0)) | - |
373 | return static_cast<void*>(this); | - |
374 | return QObject::qt_metacast(_clname); | - |
375 | } | - |
376 | | - |
377 | int QQuickFontMetrics::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | - |
378 | { | - |
379 | _id = QObject::qt_metacall(_c, _id, _a); | - |
380 | if (_id < 0) | - |
381 | return _id; | - |
382 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
383 | if (_id < 6) | - |
384 | qt_static_metacall(this, _c, _id, _a); | - |
385 | _id -= 6; | - |
386 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | - |
387 | if (_id < 6) | - |
388 | *reinterpret_cast<int*>(_a[0]) = -1; | - |
389 | _id -= 6; | - |
390 | } | - |
391 | | - |
392 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty | - |
393 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) { | - |
394 | qt_static_metacall(this, _c, _id, _a); | - |
395 | _id -= 15; | - |
396 | } else if (_c == QMetaObject::QueryPropertyDesignable) { | - |
397 | _id -= 15; | - |
398 | } else if (_c == QMetaObject::QueryPropertyScriptable) { | - |
399 | _id -= 15; | - |
400 | } else if (_c == QMetaObject::QueryPropertyStored) { | - |
401 | _id -= 15; | - |
402 | } else if (_c == QMetaObject::QueryPropertyEditable) { | - |
403 | _id -= 15; | - |
404 | } else if (_c == QMetaObject::QueryPropertyUser) { | - |
405 | _id -= 15; | - |
406 | } | - |
407 | | - |
408 | return _id; | - |
409 | } | - |
410 | | - |
411 | | - |
412 | void QQuickFontMetrics::fontChanged(const QFont & _t1) | - |
413 | { | - |
414 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) }; | - |
415 | QMetaObject::activate(this, &staticMetaObject, 0, _a); | - |
416 | }executed 20 times by 1 test: end of block | 20 |
417 | | - |
418 | #pragma GCC diagnostic pop | - |
419 | | - |
420 | | - |
| | |