| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | #include "../items/qquickitemgrabresult.h" | - |
| 10 | #include <QtCore/qbytearray.h> | - |
| 11 | #include <QtCore/qmetatype.h> | - |
| 12 | #if !defined(Q_MOC_OUTPUT_REVISION) | - |
| 13 | #error "The header file 'qquickitemgrabresult.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_QQuickItemGrabResult_t { | - |
| 24 | QByteArrayData data[9]; | - |
| 25 | char stringdata0[71]; | - |
| 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_QQuickItemGrabResult_t, stringdata0) + ofs \ | - |
| 30 | - idx * sizeof(QByteArrayData)) \ | - |
| 31 | ) | - |
| 32 | static const qt_meta_stringdata_QQuickItemGrabResult_t qt_meta_stringdata_QQuickItemGrabResult = { | - |
| 33 | { | - |
| 34 | QT_MOC_LITERAL(0, 0, 20), | - |
| 35 | QT_MOC_LITERAL(1, 21, 5), | - |
| 36 | QT_MOC_LITERAL(2, 27, 0), | - |
| 37 | QT_MOC_LITERAL(3, 28, 5), | - |
| 38 | QT_MOC_LITERAL(4, 34, 6), | - |
| 39 | QT_MOC_LITERAL(5, 41, 10), | - |
| 40 | QT_MOC_LITERAL(6, 52, 8), | - |
| 41 | QT_MOC_LITERAL(7, 61, 5), | - |
| 42 | QT_MOC_LITERAL(8, 67, 3) | - |
| 43 | | - |
| 44 | }, | - |
| 45 | "QQuickItemGrabResult\0ready\0\0setup\0" | - |
| 46 | "render\0saveToFile\0fileName\0image\0url" | - |
| 47 | }; | - |
| 48 | #undef QT_MOC_LITERAL | - |
| 49 | | - |
| 50 | static const uint qt_meta_data_QQuickItemGrabResult[] = { | - |
| 51 | | - |
| 52 | | - |
| 53 | 7, | - |
| 54 | 0, | - |
| 55 | 0, 0, | - |
| 56 | 5, 14, | - |
| 57 | 2, 48, | - |
| 58 | 0, 0, | - |
| 59 | 0, 0, | - |
| 60 | 0, | - |
| 61 | 1, | - |
| 62 | | - |
| 63 | | - |
| 64 | 1, 0, 39, 2, 0x06 , | - |
| 65 | | - |
| 66 | | - |
| 67 | 3, 0, 40, 2, 0x08 , | - |
| 68 | 4, 0, 41, 2, 0x08 , | - |
| 69 | | - |
| 70 | | - |
| 71 | 5, 1, 42, 2, 0x02 , | - |
| 72 | 5, 1, 45, 2, 0x02 , | - |
| 73 | | - |
| 74 | | - |
| 75 | QMetaType::Void, | - |
| 76 | | - |
| 77 | | - |
| 78 | QMetaType::Void, | - |
| 79 | QMetaType::Void, | - |
| 80 | | - |
| 81 | | - |
| 82 | QMetaType::Bool, QMetaType::QString, 6, | - |
| 83 | QMetaType::Bool, QMetaType::QString, 6, | - |
| 84 | | - |
| 85 | | - |
| 86 | 7, QMetaType::QImage, 0x00095401, | - |
| 87 | 8, QMetaType::QUrl, 0x00095401, | - |
| 88 | | - |
| 89 | 0 | - |
| 90 | }; | - |
| 91 | | - |
| 92 | void QQuickItemGrabResult::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | - |
| 93 | { | - |
| 94 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
| 95 | QQuickItemGrabResult *_t = static_cast<QQuickItemGrabResult *>(_o); | - |
| 96 | Q_UNUSED(_t) | - |
| 97 | switch (_id) { | - |
| 98 | case 0: _t->ready(); break; | - |
| 99 | case 1: _t->setup(); break; | - |
| 100 | case 2: _t->render(); break; | - |
| 101 | case 3: { bool _r = _t->saveToFile((*reinterpret_cast< const QString(*)>(_a[1]))); | - |
| 102 | if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break; | - |
| 103 | case 4: { bool _r = _t->saveToFile((*reinterpret_cast< const QString(*)>(_a[1]))); | - |
| 104 | if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break; | - |
| 105 | default: ; | - |
| 106 | } | - |
| 107 | } else if (_c == QMetaObject::IndexOfMethod) { | - |
| 108 | int *result = reinterpret_cast<int *>(_a[0]); | - |
| 109 | { | - |
| 110 | using _t = void (QQuickItemGrabResult::*)(); | - |
| 111 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickItemGrabResult::ready)) { | - |
| 112 | *result = 0; | - |
| 113 | return; | - |
| 114 | } | - |
| 115 | } | - |
| 116 | } | - |
| 117 | #ifndef QT_NO_PROPERTIES | - |
| 118 | else if (_c == QMetaObject::ReadProperty) { | - |
| 119 | QQuickItemGrabResult *_t = static_cast<QQuickItemGrabResult *>(_o); | - |
| 120 | Q_UNUSED(_t) | - |
| 121 | void *_v = _a[0]; | - |
| 122 | switch (_id) { | - |
| 123 | case 0: *reinterpret_cast< QImage*>(_v) = _t->image(); break; | - |
| 124 | case 1: *reinterpret_cast< QUrl*>(_v) = _t->url(); break; | - |
| 125 | default: break; | - |
| 126 | } | - |
| 127 | } else if (_c == QMetaObject::WriteProperty) { | - |
| 128 | } else if (_c == QMetaObject::ResetProperty) { | - |
| 129 | } | - |
| 130 | #endif // QT_NO_PROPERTIES | - |
| 131 | } | - |
| 132 | | - |
| 133 | QT_INIT_METAOBJECT const QMetaObject QQuickItemGrabResult::staticMetaObject = { | - |
| 134 | { &QObject::staticMetaObject, qt_meta_stringdata_QQuickItemGrabResult.data, | - |
| 135 | qt_meta_data_QQuickItemGrabResult, qt_static_metacall, nullptr, nullptr} | - |
| 136 | }; | - |
| 137 | | - |
| 138 | | - |
| 139 | const QMetaObject *QQuickItemGrabResult::metaObject() const | - |
| 140 | { | - |
| 141 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | - |
| 142 | } | - |
| 143 | | - |
| 144 | void *QQuickItemGrabResult::qt_metacast(const char *_clname) | - |
| 145 | { | - |
| 146 | if (!_clname) return nullptr; | - |
| 147 | if (!strcmp(_clname, qt_meta_stringdata_QQuickItemGrabResult.stringdata0)) | - |
| 148 | return static_cast<void*>(this); | - |
| 149 | return QObject::qt_metacast(_clname); | - |
| 150 | } | - |
| 151 | | - |
| 152 | int QQuickItemGrabResult::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | - |
| 153 | { | - |
| 154 | _id = QObject::qt_metacall(_c, _id, _a); | - |
| 155 | if (_id < 0) | - |
| 156 | return _id; | - |
| 157 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
| 158 | if (_id < 5) | - |
| 159 | qt_static_metacall(this, _c, _id, _a); | - |
| 160 | _id -= 5; | - |
| 161 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | - |
| 162 | if (_id < 5) | - |
| 163 | *reinterpret_cast<int*>(_a[0]) = -1; | - |
| 164 | _id -= 5; | - |
| 165 | } | - |
| 166 | #ifndef QT_NO_PROPERTIES | - |
| 167 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty | - |
| 168 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) { | - |
| 169 | qt_static_metacall(this, _c, _id, _a); | - |
| 170 | _id -= 2; | - |
| 171 | } else if (_c == QMetaObject::QueryPropertyDesignable) { | - |
| 172 | _id -= 2; | - |
| 173 | } else if (_c == QMetaObject::QueryPropertyScriptable) { | - |
| 174 | _id -= 2; | - |
| 175 | } else if (_c == QMetaObject::QueryPropertyStored) { | - |
| 176 | _id -= 2; | - |
| 177 | } else if (_c == QMetaObject::QueryPropertyEditable) { | - |
| 178 | _id -= 2; | - |
| 179 | } else if (_c == QMetaObject::QueryPropertyUser) { | - |
| 180 | _id -= 2; | - |
| 181 | } | - |
| 182 | #endif // QT_NO_PROPERTIES | - |
| 183 | return _id; | - |
| 184 | } | - |
| 185 | | - |
| 186 | | - |
| 187 | void QQuickItemGrabResult::ready() | - |
| 188 | { | - |
| 189 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); | - |
| 190 | }executed 6 times by 2 tests: end of blockExecuted by:- tst_qquickitem2
- tst_qquicktext
| 6 |
| 191 | QT_WARNING_POP | - |
| 192 | QT_END_MOC_NAMESPACE | - |
| | |