/work/qtsvg/src/svg/.moc/moc_qsvgrenderer.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /**************************************************************************** |
2 | | ** Meta object code from reading C++ file 'qsvgrenderer.h' |
3 | | ** |
4 | | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.2) |
5 | | ** |
6 | | ** WARNING! All changes made in this file will be lost! |
7 | | *****************************************************************************/ |
8 | | |
9 | | #include <memory> |
10 | | #include "../../../../../src/qt/qtsvg/src/svg/qsvgrenderer.h" |
11 | | #include <QtCore/qbytearray.h> |
12 | | #include <QtCore/qmetatype.h> |
13 | | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | | #error "The header file 'qsvgrenderer.h' doesn't include <QObject>." |
15 | | #elif Q_MOC_OUTPUT_REVISION != 67 |
16 | | #error "This file was generated using the moc from 5.15.2. It" |
17 | | #error "cannot be used with the include files from this version of Qt." |
18 | | #error "(The moc has changed too much.)" |
19 | | #endif |
20 | | |
21 | | QT_BEGIN_MOC_NAMESPACE |
22 | | QT_WARNING_PUSH |
23 | | QT_WARNING_DISABLE_DEPRECATED |
24 | | struct qt_meta_stringdata_QSvgRenderer_t { |
25 | | QByteArrayData data[17]; |
26 | | char stringdata0[178]; |
27 | | }; |
28 | | #define QT_MOC_LITERAL(idx, ofs, len) \ |
29 | | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ |
30 | | qptrdiff(offsetof(qt_meta_stringdata_QSvgRenderer_t, stringdata0) + ofs \ |
31 | | - idx * sizeof(QByteArrayData)) \ |
32 | | ) |
33 | | static const qt_meta_stringdata_QSvgRenderer_t qt_meta_stringdata_QSvgRenderer = { |
34 | | { |
35 | | QT_MOC_LITERAL(0, 0, 12), // "QSvgRenderer" |
36 | | QT_MOC_LITERAL(1, 13, 13), // "repaintNeeded" |
37 | | QT_MOC_LITERAL(2, 27, 0), // "" |
38 | | QT_MOC_LITERAL(3, 28, 4), // "load" |
39 | | QT_MOC_LITERAL(4, 33, 8), // "filename" |
40 | | QT_MOC_LITERAL(5, 42, 8), // "contents" |
41 | | QT_MOC_LITERAL(6, 51, 17), // "QXmlStreamReader*" |
42 | | QT_MOC_LITERAL(7, 69, 6), // "render" |
43 | | QT_MOC_LITERAL(8, 76, 9), // "QPainter*" |
44 | | QT_MOC_LITERAL(9, 86, 1), // "p" |
45 | | QT_MOC_LITERAL(10, 88, 6), // "bounds" |
46 | | QT_MOC_LITERAL(11, 95, 9), // "elementId" |
47 | | QT_MOC_LITERAL(12, 105, 7), // "viewBox" |
48 | | QT_MOC_LITERAL(13, 113, 15), // "framesPerSecond" |
49 | | QT_MOC_LITERAL(14, 129, 12), // "currentFrame" |
50 | | QT_MOC_LITERAL(15, 142, 15), // "aspectRatioMode" |
51 | | QT_MOC_LITERAL(16, 158, 19) // "Qt::AspectRatioMode" |
52 | | |
53 | | }, |
54 | | "QSvgRenderer\0repaintNeeded\0\0load\0" |
55 | | "filename\0contents\0QXmlStreamReader*\0" |
56 | | "render\0QPainter*\0p\0bounds\0elementId\0" |
57 | | "viewBox\0framesPerSecond\0currentFrame\0" |
58 | | "aspectRatioMode\0Qt::AspectRatioMode" |
59 | | }; |
60 | | #undef QT_MOC_LITERAL |
61 | | |
62 | | static const uint qt_meta_data_QSvgRenderer[] = { |
63 | | |
64 | | // content: |
65 | | 8, // revision |
66 | | 0, // classname |
67 | | 0, 0, // classinfo |
68 | | 8, 14, // methods |
69 | | 4, 84, // properties |
70 | | 0, 0, // enums/sets |
71 | | 0, 0, // constructors |
72 | | 0, // flags |
73 | | 1, // signalCount |
74 | | |
75 | | // signals: name, argc, parameters, tag, flags |
76 | | 1, 0, 54, 2, 0x06 /* Public */, |
77 | | |
78 | | // slots: name, argc, parameters, tag, flags |
79 | | 3, 1, 55, 2, 0x0a /* Public */, |
80 | | 3, 1, 58, 2, 0x0a /* Public */, |
81 | | 3, 1, 61, 2, 0x0a /* Public */, |
82 | | 7, 1, 64, 2, 0x0a /* Public */, |
83 | | 7, 2, 67, 2, 0x0a /* Public */, |
84 | | 7, 3, 72, 2, 0x0a /* Public */, |
85 | | 7, 2, 79, 2, 0x2a /* Public | MethodCloned */, |
86 | | |
87 | | // signals: parameters |
88 | | QMetaType::Void, |
89 | | |
90 | | // slots: parameters |
91 | | QMetaType::Bool, QMetaType::QString, 4, |
92 | | QMetaType::Bool, QMetaType::QByteArray, 5, |
93 | | QMetaType::Bool, 0x80000000 | 6, 5, |
94 | | QMetaType::Void, 0x80000000 | 8, 9, |
95 | | QMetaType::Void, 0x80000000 | 8, QMetaType::QRectF, 9, 10, |
96 | | QMetaType::Void, 0x80000000 | 8, QMetaType::QString, QMetaType::QRectF, 9, 11, 10, |
97 | | QMetaType::Void, 0x80000000 | 8, QMetaType::QString, 9, 11, |
98 | | |
99 | | // properties: name, type, flags |
100 | | 12, QMetaType::QRectF, 0x00095103, |
101 | | 13, QMetaType::Int, 0x00095103, |
102 | | 14, QMetaType::Int, 0x00095103, |
103 | | 15, 0x80000000 | 16, 0x0009510b, |
104 | | |
105 | | 0 // eod |
106 | | }; |
107 | | |
108 | | void QSvgRenderer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
109 | 0 | { |
110 | 0 | if (_c == QMetaObject::InvokeMetaMethod) { |
111 | 0 | auto *_t = static_cast<QSvgRenderer *>(_o); |
112 | 0 | Q_UNUSED(_t) |
113 | 0 | switch (_id) { |
114 | 0 | case 0: _t->repaintNeeded(); break; |
115 | 0 | case 1: { bool _r = _t->load((*reinterpret_cast< const QString(*)>(_a[1]))); |
116 | 0 | if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break; |
117 | 0 | case 2: { bool _r = _t->load((*reinterpret_cast< const QByteArray(*)>(_a[1]))); |
118 | 0 | if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break; |
119 | 0 | case 3: { bool _r = _t->load((*reinterpret_cast< QXmlStreamReader*(*)>(_a[1]))); |
120 | 0 | if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break; |
121 | 0 | case 4: _t->render((*reinterpret_cast< QPainter*(*)>(_a[1]))); break; |
122 | 0 | case 5: _t->render((*reinterpret_cast< QPainter*(*)>(_a[1])),(*reinterpret_cast< const QRectF(*)>(_a[2]))); break; |
123 | 0 | case 6: _t->render((*reinterpret_cast< QPainter*(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QRectF(*)>(_a[3]))); break; |
124 | 0 | case 7: _t->render((*reinterpret_cast< QPainter*(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break; |
125 | 0 | default: ; |
126 | 0 | } |
127 | 0 | } else if (_c == QMetaObject::IndexOfMethod) { |
128 | 0 | int *result = reinterpret_cast<int *>(_a[0]); |
129 | 0 | { |
130 | 0 | using _t = void (QSvgRenderer::*)(); |
131 | 0 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QSvgRenderer::repaintNeeded)) { |
132 | 0 | *result = 0; |
133 | 0 | return; |
134 | 0 | } |
135 | 0 | } |
136 | 0 | } |
137 | 0 | #ifndef QT_NO_PROPERTIES |
138 | 0 | else if (_c == QMetaObject::ReadProperty) { |
139 | 0 | auto *_t = static_cast<QSvgRenderer *>(_o); |
140 | 0 | Q_UNUSED(_t) |
141 | 0 | void *_v = _a[0]; |
142 | 0 | switch (_id) { |
143 | 0 | case 0: *reinterpret_cast< QRectF*>(_v) = _t->viewBoxF(); break; |
144 | 0 | case 1: *reinterpret_cast< int*>(_v) = _t->framesPerSecond(); break; |
145 | 0 | case 2: *reinterpret_cast< int*>(_v) = _t->currentFrame(); break; |
146 | 0 | case 3: *reinterpret_cast< Qt::AspectRatioMode*>(_v) = _t->aspectRatioMode(); break; |
147 | 0 | default: break; |
148 | 0 | } |
149 | 0 | } else if (_c == QMetaObject::WriteProperty) { |
150 | 0 | auto *_t = static_cast<QSvgRenderer *>(_o); |
151 | 0 | Q_UNUSED(_t) |
152 | 0 | void *_v = _a[0]; |
153 | 0 | switch (_id) { |
154 | 0 | case 0: _t->setViewBox(*reinterpret_cast< QRectF*>(_v)); break; |
155 | 0 | case 1: _t->setFramesPerSecond(*reinterpret_cast< int*>(_v)); break; |
156 | 0 | case 2: _t->setCurrentFrame(*reinterpret_cast< int*>(_v)); break; |
157 | 0 | case 3: _t->setAspectRatioMode(*reinterpret_cast< Qt::AspectRatioMode*>(_v)); break; |
158 | 0 | default: break; |
159 | 0 | } |
160 | 0 | } else if (_c == QMetaObject::ResetProperty) { |
161 | 0 | } |
162 | 0 | #endif // QT_NO_PROPERTIES |
163 | 0 | } |
164 | | |
165 | | QT_INIT_METAOBJECT const QMetaObject QSvgRenderer::staticMetaObject = { { |
166 | | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
167 | | qt_meta_stringdata_QSvgRenderer.data, |
168 | | qt_meta_data_QSvgRenderer, |
169 | | qt_static_metacall, |
170 | | nullptr, |
171 | | nullptr |
172 | | } }; |
173 | | |
174 | | |
175 | | const QMetaObject *QSvgRenderer::metaObject() const |
176 | 0 | { |
177 | 0 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
178 | 0 | } |
179 | | |
180 | | void *QSvgRenderer::qt_metacast(const char *_clname) |
181 | 0 | { |
182 | 0 | if (!_clname) return nullptr; |
183 | 0 | if (!strcmp(_clname, qt_meta_stringdata_QSvgRenderer.stringdata0)) |
184 | 0 | return static_cast<void*>(this); |
185 | 0 | return QObject::qt_metacast(_clname); |
186 | 0 | } |
187 | | |
188 | | int QSvgRenderer::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
189 | 0 | { |
190 | 0 | _id = QObject::qt_metacall(_c, _id, _a); |
191 | 0 | if (_id < 0) |
192 | 0 | return _id; |
193 | 0 | if (_c == QMetaObject::InvokeMetaMethod) { |
194 | 0 | if (_id < 8) |
195 | 0 | qt_static_metacall(this, _c, _id, _a); |
196 | 0 | _id -= 8; |
197 | 0 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
198 | 0 | if (_id < 8) |
199 | 0 | *reinterpret_cast<int*>(_a[0]) = -1; |
200 | 0 | _id -= 8; |
201 | 0 | } |
202 | 0 | #ifndef QT_NO_PROPERTIES |
203 | 0 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
204 | 0 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) { |
205 | 0 | qt_static_metacall(this, _c, _id, _a); |
206 | 0 | _id -= 4; |
207 | 0 | } else if (_c == QMetaObject::QueryPropertyDesignable) { |
208 | 0 | _id -= 4; |
209 | 0 | } else if (_c == QMetaObject::QueryPropertyScriptable) { |
210 | 0 | _id -= 4; |
211 | 0 | } else if (_c == QMetaObject::QueryPropertyStored) { |
212 | 0 | _id -= 4; |
213 | 0 | } else if (_c == QMetaObject::QueryPropertyEditable) { |
214 | 0 | _id -= 4; |
215 | 0 | } else if (_c == QMetaObject::QueryPropertyUser) { |
216 | 0 | _id -= 4; |
217 | 0 | } |
218 | 0 | #endif // QT_NO_PROPERTIES |
219 | 0 | return _id; |
220 | 0 | } |
221 | | |
222 | | // SIGNAL 0 |
223 | | void QSvgRenderer::repaintNeeded() |
224 | 42.4k | { |
225 | 42.4k | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); |
226 | 42.4k | } |
227 | | QT_WARNING_POP |
228 | | QT_END_MOC_NAMESPACE |