OpenCoverage

moc_qquicktextmetrics_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qquicktextmetrics_p.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qquicktextmetrics_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/qquicktextmetrics_p.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#if !defined(Q_MOC_OUTPUT_REVISION)-
13#error "The header file 'qquicktextmetrics_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_QQuickTextMetrics_t {-
24 QByteArrayData data[18];-
25 char stringdata0[202];-
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_QQuickTextMetrics_t, stringdata0) + ofs \-
30 - idx * sizeof(QByteArrayData)) \-
31 )-
32static const qt_meta_stringdata_QQuickTextMetrics_t qt_meta_stringdata_QQuickTextMetrics = {-
33 {-
34QT_MOC_LITERAL(0, 0, 17), // "QQuickTextMetrics"-
35QT_MOC_LITERAL(1, 18, 11), // "fontChanged"-
36QT_MOC_LITERAL(2, 30, 0), // ""-
37QT_MOC_LITERAL(3, 31, 11), // "textChanged"-
38QT_MOC_LITERAL(4, 43, 12), // "elideChanged"-
39QT_MOC_LITERAL(5, 56, 17), // "elideWidthChanged"-
40QT_MOC_LITERAL(6, 74, 14), // "metricsChanged"-
41QT_MOC_LITERAL(7, 89, 4), // "font"-
42QT_MOC_LITERAL(8, 94, 4), // "text"-
43QT_MOC_LITERAL(9, 99, 12), // "advanceWidth"-
44QT_MOC_LITERAL(10, 112, 12), // "boundingRect"-
45QT_MOC_LITERAL(11, 125, 5), // "width"-
46QT_MOC_LITERAL(12, 131, 6), // "height"-
47QT_MOC_LITERAL(13, 138, 17), // "tightBoundingRect"-
48QT_MOC_LITERAL(14, 156, 10), // "elidedText"-
49QT_MOC_LITERAL(15, 167, 5), // "elide"-
50QT_MOC_LITERAL(16, 173, 17), // "Qt::TextElideMode"-
51QT_MOC_LITERAL(17, 191, 10) // "elideWidth"-
52-
53 },-
54 "QQuickTextMetrics\0fontChanged\0\0"-
55 "textChanged\0elideChanged\0elideWidthChanged\0"-
56 "metricsChanged\0font\0text\0advanceWidth\0"-
57 "boundingRect\0width\0height\0tightBoundingRect\0"-
58 "elidedText\0elide\0Qt::TextElideMode\0"-
59 "elideWidth"-
60};-
61#undef QT_MOC_LITERAL-
62-
63static const uint qt_meta_data_QQuickTextMetrics[] = {-
64-
65 // content:-
66 7, // revision-
67 0, // classname-
68 0, 0, // classinfo-
69 5, 14, // methods-
70 10, 44, // properties-
71 0, 0, // enums/sets-
72 0, 0, // constructors-
73 0, // flags-
74 5, // signalCount-
75-
76 // signals: name, argc, parameters, tag, flags-
77 1, 0, 39, 2, 0x06 /* Public */,-
78 3, 0, 40, 2, 0x06 /* Public */,-
79 4, 0, 41, 2, 0x06 /* Public */,-
80 5, 0, 42, 2, 0x06 /* Public */,-
81 6, 0, 43, 2, 0x06 /* Public */,-
82-
83 // signals: parameters-
84 QMetaType::Void,-
85 QMetaType::Void,-
86 QMetaType::Void,-
87 QMetaType::Void,-
88 QMetaType::Void,-
89-
90 // properties: name, type, flags-
91 7, QMetaType::QFont, 0x00495903,-
92 8, QMetaType::QString, 0x00495903,-
93 9, QMetaType::QReal, 0x00495801,-
94 10, QMetaType::QRectF, 0x00495801,-
95 11, QMetaType::QReal, 0x00495801,-
96 12, QMetaType::QReal, 0x00495801,-
97 13, QMetaType::QRectF, 0x00495801,-
98 14, QMetaType::QString, 0x00495801,-
99 15, 0x80000000 | 16, 0x0049590b,-
100 17, QMetaType::QReal, 0x00495903,-
101-
102 // properties: notify_signal_id-
103 0,-
104 1,-
105 4,-
106 4,-
107 4,-
108 4,-
109 4,-
110 4,-
111 2,-
112 3,-
113-
114 0 // eod-
115};-
116-
117void QQuickTextMetrics::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
118{-
119 if (_c == QMetaObject::InvokeMetaMethod) {-
120 QQuickTextMetrics *_t = static_cast<QQuickTextMetrics *>(_o);-
121 Q_UNUSED(_t)-
122 switch (_id) {-
123 case 0: _t->fontChanged(); break;-
124 case 1: _t->textChanged(); break;-
125 case 2: _t->elideChanged(); break;-
126 case 3: _t->elideWidthChanged(); break;-
127 case 4: _t->metricsChanged(); break;-
128 default: ;-
129 }-
130 } else if (_c == QMetaObject::IndexOfMethod) {-
131 int *result = reinterpret_cast<int *>(_a[0]);-
132 {-
133 using _t = void (QQuickTextMetrics::*)();-
134 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTextMetrics::fontChanged)) {-
135 *result = 0;-
136 return;-
137 }-
138 }-
139 {-
140 using _t = void (QQuickTextMetrics::*)();-
141 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTextMetrics::textChanged)) {-
142 *result = 1;-
143 return;-
144 }-
145 }-
146 {-
147 using _t = void (QQuickTextMetrics::*)();-
148 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTextMetrics::elideChanged)) {-
149 *result = 2;-
150 return;-
151 }-
152 }-
153 {-
154 using _t = void (QQuickTextMetrics::*)();-
155 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTextMetrics::elideWidthChanged)) {-
156 *result = 3;-
157 return;-
158 }-
159 }-
160 {-
161 using _t = void (QQuickTextMetrics::*)();-
162 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTextMetrics::metricsChanged)) {-
163 *result = 4;-
164 return;-
165 }-
166 }-
167 }-
168#ifndef QT_NO_PROPERTIES-
169 else if (_c == QMetaObject::ReadProperty) {-
170 QQuickTextMetrics *_t = static_cast<QQuickTextMetrics *>(_o);-
171 Q_UNUSED(_t)-
172 void *_v = _a[0];-
173 switch (_id) {-
174 case 0: *reinterpret_cast< QFont*>(_v) = _t->font(); break;-
175 case 1: *reinterpret_cast< QString*>(_v) = _t->text(); break;-
176 case 2: *reinterpret_cast< qreal*>(_v) = _t->advanceWidth(); break;-
177 case 3: *reinterpret_cast< QRectF*>(_v) = _t->boundingRect(); break;-
178 case 4: *reinterpret_cast< qreal*>(_v) = _t->width(); break;-
179 case 5: *reinterpret_cast< qreal*>(_v) = _t->height(); break;-
180 case 6: *reinterpret_cast< QRectF*>(_v) = _t->tightBoundingRect(); break;-
181 case 7: *reinterpret_cast< QString*>(_v) = _t->elidedText(); break;-
182 case 8: *reinterpret_cast< Qt::TextElideMode*>(_v) = _t->elide(); break;-
183 case 9: *reinterpret_cast< qreal*>(_v) = _t->elideWidth(); break;-
184 default: break;-
185 }-
186 } else if (_c == QMetaObject::WriteProperty) {-
187 QQuickTextMetrics *_t = static_cast<QQuickTextMetrics *>(_o);-
188 Q_UNUSED(_t)-
189 void *_v = _a[0];-
190 switch (_id) {-
191 case 0: _t->setFont(*reinterpret_cast< QFont*>(_v)); break;-
192 case 1: _t->setText(*reinterpret_cast< QString*>(_v)); break;-
193 case 8: _t->setElide(*reinterpret_cast< Qt::TextElideMode*>(_v)); break;-
194 case 9: _t->setElideWidth(*reinterpret_cast< qreal*>(_v)); break;-
195 default: break;-
196 }-
197 } else if (_c == QMetaObject::ResetProperty) {-
198 }-
199#endif // QT_NO_PROPERTIES-
200 Q_UNUSED(_a);-
201}-
202-
203QT_INIT_METAOBJECT const QMetaObject QQuickTextMetrics::staticMetaObject = {-
204 { &QObject::staticMetaObject, qt_meta_stringdata_QQuickTextMetrics.data,-
205 qt_meta_data_QQuickTextMetrics, qt_static_metacall, nullptr, nullptr}-
206};-
207-
208-
209const QMetaObject *QQuickTextMetrics::metaObject() const-
210{-
211 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
212}-
213-
214void *QQuickTextMetrics::qt_metacast(const char *_clname)-
215{-
216 if (!_clname) return nullptr;-
217 if (!strcmp(_clname, qt_meta_stringdata_QQuickTextMetrics.stringdata0))-
218 return static_cast<void*>(this);-
219 return QObject::qt_metacast(_clname);-
220}-
221-
222int QQuickTextMetrics::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
223{-
224 _id = QObject::qt_metacall(_c, _id, _a);-
225 if (_id < 0)-
226 return _id;-
227 if (_c == QMetaObject::InvokeMetaMethod) {-
228 if (_id < 5)-
229 qt_static_metacall(this, _c, _id, _a);-
230 _id -= 5;-
231 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
232 if (_id < 5)-
233 *reinterpret_cast<int*>(_a[0]) = -1;-
234 _id -= 5;-
235 }-
236#ifndef QT_NO_PROPERTIES-
237 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
238 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
239 qt_static_metacall(this, _c, _id, _a);-
240 _id -= 10;-
241 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
242 _id -= 10;-
243 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
244 _id -= 10;-
245 } else if (_c == QMetaObject::QueryPropertyStored) {-
246 _id -= 10;-
247 } else if (_c == QMetaObject::QueryPropertyEditable) {-
248 _id -= 10;-
249 } else if (_c == QMetaObject::QueryPropertyUser) {-
250 _id -= 10;-
251 }-
252#endif // QT_NO_PROPERTIES-
253 return _id;-
254}-
255-
256// SIGNAL 0-
257void QQuickTextMetrics::fontChanged()-
258{-
259 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
260}
never executed: end of block
0
261-
262// SIGNAL 1-
263void QQuickTextMetrics::textChanged()-
264{-
265 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
266}
never executed: end of block
0
267-
268// SIGNAL 2-
269void QQuickTextMetrics::elideChanged()-
270{-
271 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);-
272}
never executed: end of block
0
273-
274// SIGNAL 3-
275void QQuickTextMetrics::elideWidthChanged()-
276{-
277 QMetaObject::activate(this, &staticMetaObject, 3, nullptr);-
278}
never executed: end of block
0
279-
280// SIGNAL 4-
281void QQuickTextMetrics::metricsChanged()-
282{-
283 QMetaObject::activate(this, &staticMetaObject, 4, nullptr);-
284}
never executed: end of block
0
285QT_WARNING_POP-
286QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0