| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | #include "../types/qqmllistmodel_p.h" | - |
| 10 | #include <QtCore/qbytearray.h> | - |
| 11 | #include <QtCore/qmetatype.h> | - |
| 12 | #if !defined(Q_MOC_OUTPUT_REVISION) | - |
| 13 | #error "The header file 'qqmllistmodel_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 | | - |
| 20 | QT_BEGIN_MOC_NAMESPACE | - |
| 21 | QT_WARNING_PUSH | - |
| 22 | QT_WARNING_DISABLE_DEPRECATED | - |
| 23 | struct qt_meta_stringdata_QQmlListModel_t { | - |
| 24 | QByteArrayData data[22]; | - |
| 25 | char stringdata0[167]; | - |
| 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_QQmlListModel_t, stringdata0) + ofs \ | - |
| 30 | - idx * sizeof(QByteArrayData)) \ | - |
| 31 | ) | - |
| 32 | static const qt_meta_stringdata_QQmlListModel_t qt_meta_stringdata_QQmlListModel = { | - |
| 33 | { | - |
| 34 | QT_MOC_LITERAL(0, 0, 13), | - |
| 35 | QT_MOC_LITERAL(1, 14, 12), | - |
| 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, 15), | - |
| 40 | QT_MOC_LITERAL(6, 57, 4), | - |
| 41 | QT_MOC_LITERAL(7, 62, 6), | - |
| 42 | QT_MOC_LITERAL(8, 69, 6), | - |
| 43 | QT_MOC_LITERAL(9, 76, 3), | - |
| 44 | QT_MOC_LITERAL(10, 80, 12), | - |
| 45 | QT_MOC_LITERAL(11, 93, 5), | - |
| 46 | QT_MOC_LITERAL(12, 99, 3), | - |
| 47 | QT_MOC_LITERAL(13, 103, 11), | - |
| 48 | QT_MOC_LITERAL(14, 115, 8), | - |
| 49 | QT_MOC_LITERAL(15, 124, 5), | - |
| 50 | QT_MOC_LITERAL(16, 130, 4), | - |
| 51 | QT_MOC_LITERAL(17, 135, 4), | - |
| 52 | QT_MOC_LITERAL(18, 140, 2), | - |
| 53 | QT_MOC_LITERAL(19, 143, 5), | - |
| 54 | QT_MOC_LITERAL(20, 149, 4), | - |
| 55 | QT_MOC_LITERAL(21, 154, 12) | - |
| 56 | | - |
| 57 | }, | - |
| 58 | "QQmlListModel\0countChanged\0\0clear\0" | - |
| 59 | "remove\0QQmlV4Function*\0args\0append\0" | - |
| 60 | "insert\0get\0QQmlV4Handle\0index\0set\0" | - |
| 61 | "setProperty\0property\0value\0move\0from\0" | - |
| 62 | "to\0count\0sync\0dynamicRoles" | - |
| 63 | }; | - |
| 64 | #undef QT_MOC_LITERAL | - |
| 65 | | - |
| 66 | static const uint qt_meta_data_QQmlListModel[] = { | - |
| 67 | | - |
| 68 | | - |
| 69 | 7, | - |
| 70 | 0, | - |
| 71 | 0, 0, | - |
| 72 | 10, 14, | - |
| 73 | 2, 98, | - |
| 74 | 0, 0, | - |
| 75 | 0, 0, | - |
| 76 | 0, | - |
| 77 | 1, | - |
| 78 | | - |
| 79 | | - |
| 80 | 1, 0, 64, 2, 0x06 , | - |
| 81 | | - |
| 82 | | - |
| 83 | 3, 0, 65, 2, 0x02 , | - |
| 84 | 4, 1, 66, 2, 0x02 , | - |
| 85 | 7, 1, 69, 2, 0x02 , | - |
| 86 | 8, 1, 72, 2, 0x02 , | - |
| 87 | 9, 1, 75, 2, 0x02 , | - |
| 88 | 12, 2, 78, 2, 0x02 , | - |
| 89 | 13, 3, 83, 2, 0x02 , | - |
| 90 | 16, 3, 90, 2, 0x02 , | - |
| 91 | 20, 0, 97, 2, 0x02 , | - |
| 92 | | - |
| 93 | | - |
| 94 | QMetaType::Void, | - |
| 95 | | - |
| 96 | | - |
| 97 | QMetaType::Void, | - |
| 98 | QMetaType::Void, 0x80000000 | 5, 6, | - |
| 99 | QMetaType::Void, 0x80000000 | 5, 6, | - |
| 100 | QMetaType::Void, 0x80000000 | 5, 6, | - |
| 101 | 0x80000000 | 10, QMetaType::Int, 11, | - |
| 102 | QMetaType::Void, QMetaType::Int, 0x80000000 | 10, 11, 2, | - |
| 103 | QMetaType::Void, QMetaType::Int, QMetaType::QString, QMetaType::QVariant, 11, 14, 15, | - |
| 104 | QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 17, 18, 19, | - |
| 105 | QMetaType::Void, | - |
| 106 | | - |
| 107 | | - |
| 108 | 19, QMetaType::Int, 0x00495001, | - |
| 109 | 21, QMetaType::Bool, 0x00095103, | - |
| 110 | | - |
| 111 | | - |
| 112 | 0, | - |
| 113 | 0, | - |
| 114 | | - |
| 115 | 0 | - |
| 116 | }; | - |
| 117 | | - |
| 118 | void QQmlListModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | - |
| 119 | { | - |
| 120 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
| 121 | QQmlListModel *_t = static_cast<QQmlListModel *>(_o); | - |
| 122 | Q_UNUSED(_t) | - |
| 123 | switch (_id) { | - |
| 124 | case 0: _t->countChanged(); break; | - |
| 125 | case 1: _t->clear(); break; | - |
| 126 | case 2: _t->remove((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break; | - |
| 127 | case 3: _t->append((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break; | - |
| 128 | case 4: _t->insert((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break; | - |
| 129 | case 5: { QQmlV4Handle _r = _t->get((*reinterpret_cast< int(*)>(_a[1]))); | - |
| 130 | if (_a[0]) *reinterpret_cast< QQmlV4Handle*>(_a[0]) = std::move(_r); } break; | - |
| 131 | case 6: _t->set((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QQmlV4Handle(*)>(_a[2]))); break; | - |
| 132 | case 7: _t->setProperty((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QVariant(*)>(_a[3]))); break; | - |
| 133 | case 8: _t->move((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break; | - |
| 134 | case 9: _t->sync(); break; | - |
| 135 | default: ; | - |
| 136 | } | - |
| 137 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | - |
| 138 | switch (_id) { | - |
| 139 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; | - |
| 140 | case 6: | - |
| 141 | switch (*reinterpret_cast<int*>(_a[1])) { | - |
| 142 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; | - |
| 143 | case 1: | - |
| 144 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlV4Handle >(); break; | - |
| 145 | } | - |
| 146 | break; | - |
| 147 | } | - |
| 148 | } else if (_c == QMetaObject::IndexOfMethod) { | - |
| 149 | int *result = reinterpret_cast<int *>(_a[0]); | - |
| 150 | { | - |
| 151 | using _t = void (QQmlListModel::*)(); | - |
| 152 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlListModel::countChanged)) { | - |
| 153 | *result = 0; | - |
| 154 | return; | - |
| 155 | } | - |
| 156 | } | - |
| 157 | } | - |
| 158 | #ifndef QT_NO_PROPERTIES | - |
| 159 | else if (_c == QMetaObject::ReadProperty) { | - |
| 160 | QQmlListModel *_t = static_cast<QQmlListModel *>(_o); | - |
| 161 | Q_UNUSED(_t) | - |
| 162 | void *_v = _a[0]; | - |
| 163 | switch (_id) { | - |
| 164 | case 0: *reinterpret_cast< int*>(_v) = _t->count(); break; | - |
| 165 | case 1: *reinterpret_cast< bool*>(_v) = _t->dynamicRoles(); break; | - |
| 166 | default: break; | - |
| 167 | } | - |
| 168 | } else if (_c == QMetaObject::WriteProperty) { | - |
| 169 | QQmlListModel *_t = static_cast<QQmlListModel *>(_o); | - |
| 170 | Q_UNUSED(_t) | - |
| 171 | void *_v = _a[0]; | - |
| 172 | switch (_id) { | - |
| 173 | case 1: _t->setDynamicRoles(*reinterpret_cast< bool*>(_v)); break; | - |
| 174 | default: break; | - |
| 175 | } | - |
| 176 | } else if (_c == QMetaObject::ResetProperty) { | - |
| 177 | } | - |
| 178 | #endif // QT_NO_PROPERTIES | - |
| 179 | } | - |
| 180 | | - |
| 181 | QT_INIT_METAOBJECT const QMetaObject QQmlListModel::staticMetaObject = { | - |
| 182 | { &QAbstractListModel::staticMetaObject, qt_meta_stringdata_QQmlListModel.data, | - |
| 183 | qt_meta_data_QQmlListModel, qt_static_metacall, nullptr, nullptr} | - |
| 184 | }; | - |
| 185 | | - |
| 186 | | - |
| 187 | const QMetaObject *QQmlListModel::metaObject() const | - |
| 188 | { | - |
| 189 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | - |
| 190 | } | - |
| 191 | | - |
| 192 | void *QQmlListModel::qt_metacast(const char *_clname) | - |
| 193 | { | - |
| 194 | if (!_clname) return nullptr; | - |
| 195 | if (!strcmp(_clname, qt_meta_stringdata_QQmlListModel.stringdata0)) | - |
| 196 | return static_cast<void*>(this); | - |
| 197 | return QAbstractListModel::qt_metacast(_clname); | - |
| 198 | } | - |
| 199 | | - |
| 200 | int QQmlListModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | - |
| 201 | { | - |
| 202 | _id = QAbstractListModel::qt_metacall(_c, _id, _a); | - |
| 203 | if (_id < 0) | - |
| 204 | return _id; | - |
| 205 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
| 206 | if (_id < 10) | - |
| 207 | qt_static_metacall(this, _c, _id, _a); | - |
| 208 | _id -= 10; | - |
| 209 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | - |
| 210 | if (_id < 10) | - |
| 211 | qt_static_metacall(this, _c, _id, _a); | - |
| 212 | _id -= 10; | - |
| 213 | } | - |
| 214 | #ifndef QT_NO_PROPERTIES | - |
| 215 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty | - |
| 216 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) { | - |
| 217 | qt_static_metacall(this, _c, _id, _a); | - |
| 218 | _id -= 2; | - |
| 219 | } else if (_c == QMetaObject::QueryPropertyDesignable) { | - |
| 220 | _id -= 2; | - |
| 221 | } else if (_c == QMetaObject::QueryPropertyScriptable) { | - |
| 222 | _id -= 2; | - |
| 223 | } else if (_c == QMetaObject::QueryPropertyStored) { | - |
| 224 | _id -= 2; | - |
| 225 | } else if (_c == QMetaObject::QueryPropertyEditable) { | - |
| 226 | _id -= 2; | - |
| 227 | } else if (_c == QMetaObject::QueryPropertyUser) { | - |
| 228 | _id -= 2; | - |
| 229 | } | - |
| 230 | #endif // QT_NO_PROPERTIES | - |
| 231 | return _id; | - |
| 232 | } | - |
| 233 | | - |
| 234 | | - |
| 235 | void QQmlListModel::countChanged() | - |
| 236 | { | - |
| 237 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); | - |
| 238 | }executed 3144 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmlxmlhttprequest
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickrepeater
- tst_qquickvisualdatamodel
| 3144 |
| 239 | struct qt_meta_stringdata_QQmlListElement_t { | - |
| 240 | QByteArrayData data[1]; | - |
| 241 | char stringdata0[16]; | - |
| 242 | }; | - |
| 243 | #define QT_MOC_LITERAL(idx, ofs, len) \ | - |
| 244 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ | - |
| 245 | qptrdiff(offsetof(qt_meta_stringdata_QQmlListElement_t, stringdata0) + ofs \ | - |
| 246 | - idx * sizeof(QByteArrayData)) \ | - |
| 247 | ) | - |
| 248 | static const qt_meta_stringdata_QQmlListElement_t qt_meta_stringdata_QQmlListElement = { | - |
| 249 | { | - |
| 250 | QT_MOC_LITERAL(0, 0, 15) | - |
| 251 | | - |
| 252 | }, | - |
| 253 | "QQmlListElement" | - |
| 254 | }; | - |
| 255 | #undef QT_MOC_LITERAL | - |
| 256 | | - |
| 257 | static const uint qt_meta_data_QQmlListElement[] = { | - |
| 258 | | - |
| 259 | | - |
| 260 | 7, | - |
| 261 | 0, | - |
| 262 | 0, 0, | - |
| 263 | 0, 0, | - |
| 264 | 0, 0, | - |
| 265 | 0, 0, | - |
| 266 | 0, 0, | - |
| 267 | 0, | - |
| 268 | 0, | - |
| 269 | | - |
| 270 | 0 | - |
| 271 | }; | - |
| 272 | | - |
| 273 | void QQmlListElement::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | - |
| 274 | { | - |
| 275 | Q_UNUSED(_o); | - |
| 276 | Q_UNUSED(_id); | - |
| 277 | Q_UNUSED(_c); | - |
| 278 | Q_UNUSED(_a); | - |
| 279 | } | - |
| 280 | | - |
| 281 | QT_INIT_METAOBJECT const QMetaObject QQmlListElement::staticMetaObject = { | - |
| 282 | { &QObject::staticMetaObject, qt_meta_stringdata_QQmlListElement.data, | - |
| 283 | qt_meta_data_QQmlListElement, qt_static_metacall, nullptr, nullptr} | - |
| 284 | }; | - |
| 285 | | - |
| 286 | | - |
| 287 | const QMetaObject *QQmlListElement::metaObject() const | - |
| 288 | { | - |
| 289 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | - |
| 290 | } | - |
| 291 | | - |
| 292 | void *QQmlListElement::qt_metacast(const char *_clname) | - |
| 293 | { | - |
| 294 | if (!_clname) return nullptr; | - |
| 295 | if (!strcmp(_clname, qt_meta_stringdata_QQmlListElement.stringdata0)) | - |
| 296 | return static_cast<void*>(this); | - |
| 297 | return QObject::qt_metacast(_clname); | - |
| 298 | } | - |
| 299 | | - |
| 300 | int QQmlListElement::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | - |
| 301 | { | - |
| 302 | _id = QObject::qt_metacall(_c, _id, _a); | - |
| 303 | return _id; | - |
| 304 | } | - |
| 305 | QT_WARNING_POP | - |
| 306 | QT_END_MOC_NAMESPACE | - |
| | |