OpenCoverage

moc_qquickfontmetrics_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qquickfontmetrics_p.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qquickfontmetrics_p.h'-
3**-
4** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.0)-
5**-
6** WARNING! All changes made in this file will be lost!-
7*****************************************************************************/-
8-
9#include "../util/qquickfontmetrics_p.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#if !defined(Q_MOC_OUTPUT_REVISION)-
13#error "The header file 'qquickfontmetrics_p.h' doesn't include <QObject>."-
14#elif Q_MOC_OUTPUT_REVISION != 67-
15#error "This file was generated using the moc from 5.12.0. It"-
16#error "cannot be used with the include files from this version of Qt."-
17#error "(The moc has changed too much.)"-
18#endif-
19-
20QT_BEGIN_MOC_NAMESPACE-
21QT_WARNING_PUSH-
22QT_WARNING_DISABLE_DEPRECATED-
23struct qt_meta_stringdata_QQuickFontMetrics_t {-
24 QByteArrayData data[27];-
25 char stringdata0[327];-
26};-
27#define QT_MOC_LITERAL(idx, ofs, len) \-
28 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \-
29 qptrdiff(offsetof(qt_meta_stringdata_QQuickFontMetrics_t, stringdata0) + ofs \-
30 - idx * sizeof(QByteArrayData)) \-
31 )-
32static const qt_meta_stringdata_QQuickFontMetrics_t qt_meta_stringdata_QQuickFontMetrics = {-
33 {-
34QT_MOC_LITERAL(0, 0, 17), // "QQuickFontMetrics"-
35QT_MOC_LITERAL(1, 18, 11), // "fontChanged"-
36QT_MOC_LITERAL(2, 30, 0), // ""-
37QT_MOC_LITERAL(3, 31, 4), // "font"-
38QT_MOC_LITERAL(4, 36, 12), // "advanceWidth"-
39QT_MOC_LITERAL(5, 49, 4), // "text"-
40QT_MOC_LITERAL(6, 54, 12), // "boundingRect"-
41QT_MOC_LITERAL(7, 67, 17), // "tightBoundingRect"-
42QT_MOC_LITERAL(8, 85, 10), // "elidedText"-
43QT_MOC_LITERAL(9, 96, 17), // "Qt::TextElideMode"-
44QT_MOC_LITERAL(10, 114, 4), // "mode"-
45QT_MOC_LITERAL(11, 119, 5), // "width"-
46QT_MOC_LITERAL(12, 125, 5), // "flags"-
47QT_MOC_LITERAL(13, 131, 6), // "ascent"-
48QT_MOC_LITERAL(14, 138, 7), // "descent"-
49QT_MOC_LITERAL(15, 146, 6), // "height"-
50QT_MOC_LITERAL(16, 153, 7), // "leading"-
51QT_MOC_LITERAL(17, 161, 11), // "lineSpacing"-
52QT_MOC_LITERAL(18, 173, 18), // "minimumLeftBearing"-
53QT_MOC_LITERAL(19, 192, 19), // "minimumRightBearing"-
54QT_MOC_LITERAL(20, 212, 21), // "maximumCharacterWidth"-
55QT_MOC_LITERAL(21, 234, 7), // "xHeight"-
56QT_MOC_LITERAL(22, 242, 21), // "averageCharacterWidth"-
57QT_MOC_LITERAL(23, 264, 17), // "underlinePosition"-
58QT_MOC_LITERAL(24, 282, 16), // "overlinePosition"-
59QT_MOC_LITERAL(25, 299, 17), // "strikeOutPosition"-
60QT_MOC_LITERAL(26, 317, 9) // "lineWidth"-
61-
62 },-
63 "QQuickFontMetrics\0fontChanged\0\0font\0"-
64 "advanceWidth\0text\0boundingRect\0"-
65 "tightBoundingRect\0elidedText\0"-
66 "Qt::TextElideMode\0mode\0width\0flags\0"-
67 "ascent\0descent\0height\0leading\0lineSpacing\0"-
68 "minimumLeftBearing\0minimumRightBearing\0"-
69 "maximumCharacterWidth\0xHeight\0"-
70 "averageCharacterWidth\0underlinePosition\0"-
71 "overlinePosition\0strikeOutPosition\0"-
72 "lineWidth"-
73};-
74#undef QT_MOC_LITERAL-
75-
76static const uint qt_meta_data_QQuickFontMetrics[] = {-
77-
78 // content:-
79 7, // revision-
80 0, // classname-
81 0, 0, // classinfo-
82 6, 14, // methods-
83 15, 72, // properties-
84 0, 0, // enums/sets-
85 0, 0, // constructors-
86 0, // flags-
87 1, // signalCount-
88-
89 // signals: name, argc, parameters, tag, flags-
90 1, 1, 44, 2, 0x06 /* Public */,-
91-
92 // methods: name, argc, parameters, tag, flags-
93 4, 1, 47, 2, 0x02 /* Public */,-
94 6, 1, 50, 2, 0x02 /* Public */,-
95 7, 1, 53, 2, 0x02 /* Public */,-
96 8, 4, 56, 2, 0x02 /* Public */,-
97 8, 3, 65, 2, 0x22 /* Public | MethodCloned */,-
98-
99 // signals: parameters-
100 QMetaType::Void, QMetaType::QFont, 3,-
101-
102 // methods: parameters-
103 QMetaType::QReal, QMetaType::QString, 5,-
104 QMetaType::QRectF, QMetaType::QString, 5,-
105 QMetaType::QRectF, QMetaType::QString, 5,-
106 QMetaType::QString, QMetaType::QString, 0x80000000 | 9, QMetaType::QReal, QMetaType::Int, 5, 10, 11, 12,-
107 QMetaType::QString, QMetaType::QString, 0x80000000 | 9, QMetaType::QReal, 5, 10, 11,-
108-
109 // properties: name, type, flags-
110 3, QMetaType::QFont, 0x00495103,-
111 13, QMetaType::QReal, 0x00495001,-
112 14, QMetaType::QReal, 0x00495001,-
113 15, QMetaType::QReal, 0x00495001,-
114 16, QMetaType::QReal, 0x00495001,-
115 17, QMetaType::QReal, 0x00495001,-
116 18, QMetaType::QReal, 0x00495001,-
117 19, QMetaType::QReal, 0x00495001,-
118 20, QMetaType::QReal, 0x00495001,-
119 21, QMetaType::QReal, 0x00495001,-
120 22, QMetaType::QReal, 0x00495001,-
121 23, QMetaType::QReal, 0x00495001,-
122 24, QMetaType::QReal, 0x00495001,-
123 25, QMetaType::QReal, 0x00495001,-
124 26, QMetaType::QReal, 0x00495001,-
125-
126 // properties: notify_signal_id-
127 0,-
128 0,-
129 0,-
130 0,-
131 0,-
132 0,-
133 0,-
134 0,-
135 0,-
136 0,-
137 0,-
138 0,-
139 0,-
140 0,-
141 0,-
142-
143 0 // eod-
144};-
145-
146void QQuickFontMetrics::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
147{-
148 if (_c == QMetaObject::InvokeMetaMethod) {-
149 QQuickFontMetrics *_t = static_cast<QQuickFontMetrics *>(_o);-
150 Q_UNUSED(_t)-
151 switch (_id) {-
152 case 0: _t->fontChanged((*reinterpret_cast< const QFont(*)>(_a[1]))); break;-
153 case 1: { qreal _r = _t->advanceWidth((*reinterpret_cast< const QString(*)>(_a[1])));-
154 if (_a[0]) *reinterpret_cast< qreal*>(_a[0]) = std::move(_r); } break;-
155 case 2: { QRectF _r = _t->boundingRect((*reinterpret_cast< const QString(*)>(_a[1])));-
156 if (_a[0]) *reinterpret_cast< QRectF*>(_a[0]) = std::move(_r); } break;-
157 case 3: { QRectF _r = _t->tightBoundingRect((*reinterpret_cast< const QString(*)>(_a[1])));-
158 if (_a[0]) *reinterpret_cast< QRectF*>(_a[0]) = std::move(_r); } break;-
159 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])));-
160 if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); } break;-
161 case 5: { QString _r = _t->elidedText((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< Qt::TextElideMode(*)>(_a[2])),(*reinterpret_cast< qreal(*)>(_a[3])));-
162 if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); } break;-
163 default: ;-
164 }-
165 } else if (_c == QMetaObject::IndexOfMethod) {-
166 int *result = reinterpret_cast<int *>(_a[0]);-
167 {-
168 using _t = void (QQuickFontMetrics::*)(const QFont & );-
169 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickFontMetrics::fontChanged)) {-
170 *result = 0;-
171 return;-
172 }-
173 }-
174 }-
175#ifndef QT_NO_PROPERTIES-
176 else if (_c == QMetaObject::ReadProperty) {-
177 QQuickFontMetrics *_t = static_cast<QQuickFontMetrics *>(_o);-
178 Q_UNUSED(_t)-
179 void *_v = _a[0];-
180 switch (_id) {-
181 case 0: *reinterpret_cast< QFont*>(_v) = _t->font(); break;-
182 case 1: *reinterpret_cast< qreal*>(_v) = _t->ascent(); break;-
183 case 2: *reinterpret_cast< qreal*>(_v) = _t->descent(); break;-
184 case 3: *reinterpret_cast< qreal*>(_v) = _t->height(); break;-
185 case 4: *reinterpret_cast< qreal*>(_v) = _t->leading(); break;-
186 case 5: *reinterpret_cast< qreal*>(_v) = _t->lineSpacing(); break;-
187 case 6: *reinterpret_cast< qreal*>(_v) = _t->minimumLeftBearing(); break;-
188 case 7: *reinterpret_cast< qreal*>(_v) = _t->minimumRightBearing(); break;-
189 case 8: *reinterpret_cast< qreal*>(_v) = _t->maximumCharacterWidth(); break;-
190 case 9: *reinterpret_cast< qreal*>(_v) = _t->xHeight(); break;-
191 case 10: *reinterpret_cast< qreal*>(_v) = _t->averageCharacterWidth(); break;-
192 case 11: *reinterpret_cast< qreal*>(_v) = _t->underlinePosition(); break;-
193 case 12: *reinterpret_cast< qreal*>(_v) = _t->overlinePosition(); break;-
194 case 13: *reinterpret_cast< qreal*>(_v) = _t->strikeOutPosition(); break;-
195 case 14: *reinterpret_cast< qreal*>(_v) = _t->lineWidth(); break;-
196 default: break;-
197 }-
198 } else if (_c == QMetaObject::WriteProperty) {-
199 QQuickFontMetrics *_t = static_cast<QQuickFontMetrics *>(_o);-
200 Q_UNUSED(_t)-
201 void *_v = _a[0];-
202 switch (_id) {-
203 case 0: _t->setFont(*reinterpret_cast< QFont*>(_v)); break;-
204 default: break;-
205 }-
206 } else if (_c == QMetaObject::ResetProperty) {-
207 }-
208#endif // QT_NO_PROPERTIES-
209}-
210-
211QT_INIT_METAOBJECT const QMetaObject QQuickFontMetrics::staticMetaObject = {-
212 { &QObject::staticMetaObject, qt_meta_stringdata_QQuickFontMetrics.data,-
213 qt_meta_data_QQuickFontMetrics, qt_static_metacall, nullptr, nullptr}-
214};-
215-
216-
217const QMetaObject *QQuickFontMetrics::metaObject() const-
218{-
219 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
220}-
221-
222void *QQuickFontMetrics::qt_metacast(const char *_clname)-
223{-
224 if (!_clname) return nullptr;-
225 if (!strcmp(_clname, qt_meta_stringdata_QQuickFontMetrics.stringdata0))-
226 return static_cast<void*>(this);-
227 return QObject::qt_metacast(_clname);-
228}-
229-
230int QQuickFontMetrics::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
231{-
232 _id = QObject::qt_metacall(_c, _id, _a);-
233 if (_id < 0)-
234 return _id;-
235 if (_c == QMetaObject::InvokeMetaMethod) {-
236 if (_id < 6)-
237 qt_static_metacall(this, _c, _id, _a);-
238 _id -= 6;-
239 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
240 if (_id < 6)-
241 *reinterpret_cast<int*>(_a[0]) = -1;-
242 _id -= 6;-
243 }-
244#ifndef QT_NO_PROPERTIES-
245 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
246 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
247 qt_static_metacall(this, _c, _id, _a);-
248 _id -= 15;-
249 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
250 _id -= 15;-
251 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
252 _id -= 15;-
253 } else if (_c == QMetaObject::QueryPropertyStored) {-
254 _id -= 15;-
255 } else if (_c == QMetaObject::QueryPropertyEditable) {-
256 _id -= 15;-
257 } else if (_c == QMetaObject::QueryPropertyUser) {-
258 _id -= 15;-
259 }-
260#endif // QT_NO_PROPERTIES-
261 return _id;-
262}-
263-
264// SIGNAL 0-
265void QQuickFontMetrics::fontChanged(const QFont & _t1)-
266{-
267 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
268 QMetaObject::activate(this, &staticMetaObject, 0, _a);-
269}
executed 20 times by 1 test: end of block
Executed by:
  • tst_quickfontmetrics
20
270QT_WARNING_POP-
271QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0