| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/.moc/moc_qqmlcomponent.cpp |
| Source code | Switch to Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | /**************************************************************************** | - |
| 2 | ** Meta object code from reading C++ file 'qqmlcomponent.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 "../qml/qqmlcomponent.h" | - |
| 10 | #include <QtCore/qbytearray.h> | - |
| 11 | #include <QtCore/qmetatype.h> | - |
| 12 | #if !defined(Q_MOC_OUTPUT_REVISION) | - |
| 13 | #error "The header file 'qqmlcomponent.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 | - | |
| 20 | QT_BEGIN_MOC_NAMESPACE | - |
| 21 | QT_WARNING_PUSH | - |
| 22 | QT_WARNING_DISABLE_DEPRECATED | - |
| 23 | struct qt_meta_stringdata_QQmlComponent_t { | - |
| 24 | QByteArrayData data[24]; | - |
| 25 | char stringdata0[251]; | - |
| 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_QQmlComponent_t, stringdata0) + ofs \ | - |
| 30 | - idx * sizeof(QByteArrayData)) \ | - |
| 31 | ) | - |
| 32 | static const qt_meta_stringdata_QQmlComponent_t qt_meta_stringdata_QQmlComponent = { | - |
| 33 | { | - |
| 34 | QT_MOC_LITERAL(0, 0, 13), // "QQmlComponent" | - |
| 35 | QT_MOC_LITERAL(1, 14, 13), // "statusChanged" | - |
| 36 | QT_MOC_LITERAL(2, 28, 0), // "" | - |
| 37 | QT_MOC_LITERAL(3, 29, 21), // "QQmlComponent::Status" | - |
| 38 | QT_MOC_LITERAL(4, 51, 15), // "progressChanged" | - |
| 39 | QT_MOC_LITERAL(5, 67, 7), // "loadUrl" | - |
| 40 | QT_MOC_LITERAL(6, 75, 3), // "url" | - |
| 41 | QT_MOC_LITERAL(7, 79, 15), // "CompilationMode" | - |
| 42 | QT_MOC_LITERAL(8, 95, 4), // "mode" | - |
| 43 | QT_MOC_LITERAL(9, 100, 7), // "setData" | - |
| 44 | QT_MOC_LITERAL(10, 108, 7), // "baseUrl" | - |
| 45 | QT_MOC_LITERAL(11, 116, 11), // "errorString" | - |
| 46 | QT_MOC_LITERAL(12, 128, 12), // "createObject" | - |
| 47 | QT_MOC_LITERAL(13, 141, 15), // "QQmlV4Function*" | - |
| 48 | QT_MOC_LITERAL(14, 157, 14), // "incubateObject" | - |
| 49 | QT_MOC_LITERAL(15, 172, 8), // "progress" | - |
| 50 | QT_MOC_LITERAL(16, 181, 6), // "status" | - |
| 51 | QT_MOC_LITERAL(17, 188, 6), // "Status" | - |
| 52 | QT_MOC_LITERAL(18, 195, 17), // "PreferSynchronous" | - |
| 53 | QT_MOC_LITERAL(19, 213, 12), // "Asynchronous" | - |
| 54 | QT_MOC_LITERAL(20, 226, 4), // "Null" | - |
| 55 | QT_MOC_LITERAL(21, 231, 5), // "Ready" | - |
| 56 | QT_MOC_LITERAL(22, 237, 7), // "Loading" | - |
| 57 | QT_MOC_LITERAL(23, 245, 5) // "Error" | - |
| 58 | - | |
| 59 | }, | - |
| 60 | "QQmlComponent\0statusChanged\0\0" | - |
| 61 | "QQmlComponent::Status\0progressChanged\0" | - |
| 62 | "loadUrl\0url\0CompilationMode\0mode\0" | - |
| 63 | "setData\0baseUrl\0errorString\0createObject\0" | - |
| 64 | "QQmlV4Function*\0incubateObject\0progress\0" | - |
| 65 | "status\0Status\0PreferSynchronous\0" | - |
| 66 | "Asynchronous\0Null\0Ready\0Loading\0Error" | - |
| 67 | }; | - |
| 68 | #undef QT_MOC_LITERAL | - |
| 69 | - | |
| 70 | static const uint qt_meta_data_QQmlComponent[] = { | - |
| 71 | - | |
| 72 | // content: | - |
| 73 | 7, // revision | - |
| 74 | 0, // classname | - |
| 75 | 0, 0, // classinfo | - |
| 76 | 8, 14, // methods | - |
| 77 | 3, 80, // properties | - |
| 78 | 2, 92, // enums/sets | - |
| 79 | 0, 0, // constructors | - |
| 80 | 0, // flags | - |
| 81 | 2, // signalCount | - |
| 82 | - | |
| 83 | // signals: name, argc, parameters, tag, flags | - |
| 84 | 1, 1, 54, 2, 0x06 /* Public */, | - |
| 85 | 4, 1, 57, 2, 0x06 /* Public */, | - |
| 86 | - | |
| 87 | // slots: name, argc, parameters, tag, flags | - |
| 88 | 5, 1, 60, 2, 0x0a /* Public */, | - |
| 89 | 5, 2, 63, 2, 0x0a /* Public */, | - |
| 90 | 9, 2, 68, 2, 0x0a /* Public */, | - |
| 91 | - | |
| 92 | // methods: name, argc, parameters, tag, flags | - |
| 93 | 11, 0, 73, 2, 0x02 /* Public */, | - |
| 94 | 12, 1, 74, 2, 0x01 /* Protected */, | - |
| 95 | 14, 1, 77, 2, 0x01 /* Protected */, | - |
| 96 | - | |
| 97 | // signals: parameters | - |
| 98 | QMetaType::Void, 0x80000000 | 3, 2, | - |
| 99 | QMetaType::Void, QMetaType::QReal, 2, | - |
| 100 | - | |
| 101 | // slots: parameters | - |
| 102 | QMetaType::Void, QMetaType::QUrl, 6, | - |
| 103 | QMetaType::Void, QMetaType::QUrl, 0x80000000 | 7, 6, 8, | - |
| 104 | QMetaType::Void, QMetaType::QByteArray, QMetaType::QUrl, 2, 10, | - |
| 105 | - | |
| 106 | // methods: parameters | - |
| 107 | QMetaType::QString, | - |
| 108 | QMetaType::Void, 0x80000000 | 13, 2, | - |
| 109 | QMetaType::Void, 0x80000000 | 13, 2, | - |
| 110 | - | |
| 111 | // properties: name, type, flags | - |
| 112 | 15, QMetaType::QReal, 0x00495001, | - |
| 113 | 16, 0x80000000 | 17, 0x00495009, | - |
| 114 | 6, QMetaType::QUrl, 0x00095401, | - |
| 115 | - | |
| 116 | // properties: notify_signal_id | - |
| 117 | 1, | - |
| 118 | 0, | - |
| 119 | 0, | - |
| 120 | - | |
| 121 | // enums: name, flags, count, data | - |
| 122 | 7, 0x0, 2, 100, | - |
| 123 | 17, 0x0, 4, 104, | - |
| 124 | - | |
| 125 | // enum data: key, value | - |
| 126 | 18, uint(QQmlComponent::PreferSynchronous), | - |
| 127 | 19, uint(QQmlComponent::Asynchronous), | - |
| 128 | 20, uint(QQmlComponent::Null), | - |
| 129 | 21, uint(QQmlComponent::Ready), | - |
| 130 | 22, uint(QQmlComponent::Loading), | - |
| 131 | 23, uint(QQmlComponent::Error), | - |
| 132 | - | |
| 133 | 0 // eod | - |
| 134 | }; | - |
| 135 | - | |
| 136 | void QQmlComponent::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | - |
| 137 | { | - |
| 138 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
| 139 | QQmlComponent *_t = static_cast<QQmlComponent *>(_o); | - |
| 140 | Q_UNUSED(_t) | - |
| 141 | switch (_id) { | - |
| 142 | case 0: _t->statusChanged((*reinterpret_cast< QQmlComponent::Status(*)>(_a[1]))); break; | - |
| 143 | case 1: _t->progressChanged((*reinterpret_cast< qreal(*)>(_a[1]))); break; | - |
| 144 | case 2: _t->loadUrl((*reinterpret_cast< const QUrl(*)>(_a[1]))); break; | - |
| 145 | case 3: _t->loadUrl((*reinterpret_cast< const QUrl(*)>(_a[1])),(*reinterpret_cast< CompilationMode(*)>(_a[2]))); break; | - |
| 146 | case 4: _t->setData((*reinterpret_cast< const QByteArray(*)>(_a[1])),(*reinterpret_cast< const QUrl(*)>(_a[2]))); break; | - |
| 147 | case 5: { QString _r = _t->errorString(); | - |
| 148 | if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); } break; | - |
| 149 | case 6: _t->createObject((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break; | - |
| 150 | case 7: _t->incubateObject((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break; | - |
| 151 | default: ; | - |
| 152 | } | - |
| 153 | } else if (_c == QMetaObject::IndexOfMethod) { | - |
| 154 | int *result = reinterpret_cast<int *>(_a[0]); | - |
| 155 | { | - |
| 156 | using _t = void (QQmlComponent::*)(QQmlComponent::Status ); | - |
| 157 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlComponent::statusChanged)) { | - |
| 158 | *result = 0; | - |
| 159 | return; | - |
| 160 | } | - |
| 161 | } | - |
| 162 | { | - |
| 163 | using _t = void (QQmlComponent::*)(qreal ); | - |
| 164 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlComponent::progressChanged)) { | - |
| 165 | *result = 1; | - |
| 166 | return; | - |
| 167 | } | - |
| 168 | } | - |
| 169 | } | - |
| 170 | #ifndef QT_NO_PROPERTIES | - |
| 171 | else if (_c == QMetaObject::ReadProperty) { | - |
| 172 | QQmlComponent *_t = static_cast<QQmlComponent *>(_o); | - |
| 173 | Q_UNUSED(_t) | - |
| 174 | void *_v = _a[0]; | - |
| 175 | switch (_id) { | - |
| 176 | case 0: *reinterpret_cast< qreal*>(_v) = _t->progress(); break; | - |
| 177 | case 1: *reinterpret_cast< Status*>(_v) = _t->status(); break; | - |
| 178 | case 2: *reinterpret_cast< QUrl*>(_v) = _t->url(); break; | - |
| 179 | default: break; | - |
| 180 | } | - |
| 181 | } else if (_c == QMetaObject::WriteProperty) { | - |
| 182 | } else if (_c == QMetaObject::ResetProperty) { | - |
| 183 | } | - |
| 184 | #endif // QT_NO_PROPERTIES | - |
| 185 | } | - |
| 186 | - | |
| 187 | QT_INIT_METAOBJECT const QMetaObject QQmlComponent::staticMetaObject = { | - |
| 188 | { &QObject::staticMetaObject, qt_meta_stringdata_QQmlComponent.data, | - |
| 189 | qt_meta_data_QQmlComponent, qt_static_metacall, nullptr, nullptr} | - |
| 190 | }; | - |
| 191 | - | |
| 192 | - | |
| 193 | const QMetaObject *QQmlComponent::metaObject() const | - |
| 194 | { | - |
| 195 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | - |
| 196 | } | - |
| 197 | - | |
| 198 | void *QQmlComponent::qt_metacast(const char *_clname) | - |
| 199 | { | - |
| 200 | if (!_clname) return nullptr; | - |
| 201 | if (!strcmp(_clname, qt_meta_stringdata_QQmlComponent.stringdata0)) | - |
| 202 | return static_cast<void*>(this); | - |
| 203 | return QObject::qt_metacast(_clname); | - |
| 204 | } | - |
| 205 | - | |
| 206 | int QQmlComponent::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | - |
| 207 | { | - |
| 208 | _id = QObject::qt_metacall(_c, _id, _a); | - |
| 209 | if (_id < 0) | - |
| 210 | return _id; | - |
| 211 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
| 212 | if (_id < 8) | - |
| 213 | qt_static_metacall(this, _c, _id, _a); | - |
| 214 | _id -= 8; | - |
| 215 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | - |
| 216 | if (_id < 8) | - |
| 217 | *reinterpret_cast<int*>(_a[0]) = -1; | - |
| 218 | _id -= 8; | - |
| 219 | } | - |
| 220 | #ifndef QT_NO_PROPERTIES | - |
| 221 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty | - |
| 222 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) { | - |
| 223 | qt_static_metacall(this, _c, _id, _a); | - |
| 224 | _id -= 3; | - |
| 225 | } else if (_c == QMetaObject::QueryPropertyDesignable) { | - |
| 226 | _id -= 3; | - |
| 227 | } else if (_c == QMetaObject::QueryPropertyScriptable) { | - |
| 228 | _id -= 3; | - |
| 229 | } else if (_c == QMetaObject::QueryPropertyStored) { | - |
| 230 | _id -= 3; | - |
| 231 | } else if (_c == QMetaObject::QueryPropertyEditable) { | - |
| 232 | _id -= 3; | - |
| 233 | } else if (_c == QMetaObject::QueryPropertyUser) { | - |
| 234 | _id -= 3; | - |
| 235 | } | - |
| 236 | #endif // QT_NO_PROPERTIES | - |
| 237 | return _id; | - |
| 238 | } | - |
| 239 | - | |
| 240 | // SIGNAL 0 | - |
| 241 | void QQmlComponent::statusChanged(QQmlComponent::Status _t1) | - |
| 242 | { | - |
| 243 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) }; | - |
| 244 | QMetaObject::activate(this, &staticMetaObject, 0, _a); | - |
| 245 | } executed 58510 times by 141 tests: end of blockExecuted by:
| 58510 |
| 246 | - | |
| 247 | // SIGNAL 1 | - |
| 248 | void QQmlComponent::progressChanged(qreal _t1) | - |
| 249 | { | - |
| 250 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) }; | - |
| 251 | QMetaObject::activate(this, &staticMetaObject, 1, _a); | - |
| 252 | } executed 58490 times by 141 tests: end of blockExecuted by:
| 58490 |
| 253 | QT_WARNING_POP | - |
| 254 | QT_END_MOC_NAMESPACE | - |
| Source code | Switch to Preprocessed file |