| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | #include "../handlers/qquickdraghandler_p.h" | - |
| 10 | #include <QtCore/qbytearray.h> | - |
| 11 | #include <QtCore/qmetatype.h> | - |
| 12 | #if !defined(Q_MOC_OUTPUT_REVISION) | - |
| 13 | #error "The header file 'qquickdraghandler_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_QQuickDragHandler_t { | - |
| 24 | QByteArrayData data[8]; | - |
| 25 | char stringdata0[97]; | - |
| 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_QQuickDragHandler_t, stringdata0) + ofs \ | - |
| 30 | - idx * sizeof(QByteArrayData)) \ | - |
| 31 | ) | - |
| 32 | static const qt_meta_stringdata_QQuickDragHandler_t qt_meta_stringdata_QQuickDragHandler = { | - |
| 33 | { | - |
| 34 | QT_MOC_LITERAL(0, 0, 17), | - |
| 35 | QT_MOC_LITERAL(1, 18, 18), | - |
| 36 | QT_MOC_LITERAL(2, 37, 0), | - |
| 37 | QT_MOC_LITERAL(3, 38, 18), | - |
| 38 | QT_MOC_LITERAL(4, 57, 5), | - |
| 39 | QT_MOC_LITERAL(5, 63, 15), | - |
| 40 | QT_MOC_LITERAL(6, 79, 5), | - |
| 41 | QT_MOC_LITERAL(7, 85, 11) | - |
| 42 | | - |
| 43 | }, | - |
| 44 | "QQuickDragHandler\0translationChanged\0" | - |
| 45 | "\0enforceConstraints\0xAxis\0QQuickDragAxis*\0" | - |
| 46 | "yAxis\0translation" | - |
| 47 | }; | - |
| 48 | #undef QT_MOC_LITERAL | - |
| 49 | | - |
| 50 | static const uint qt_meta_data_QQuickDragHandler[] = { | - |
| 51 | | - |
| 52 | | - |
| 53 | 7, | - |
| 54 | 0, | - |
| 55 | 0, 0, | - |
| 56 | 2, 14, | - |
| 57 | 3, 26, | - |
| 58 | 0, 0, | - |
| 59 | 0, 0, | - |
| 60 | 0, | - |
| 61 | 1, | - |
| 62 | | - |
| 63 | | - |
| 64 | 1, 0, 24, 2, 0x06 , | - |
| 65 | | - |
| 66 | | - |
| 67 | 3, 0, 25, 2, 0x02 , | - |
| 68 | | - |
| 69 | | - |
| 70 | QMetaType::Void, | - |
| 71 | | - |
| 72 | | - |
| 73 | QMetaType::Void, | - |
| 74 | | - |
| 75 | | - |
| 76 | 4, 0x80000000 | 5, 0x00095409, | - |
| 77 | 6, 0x80000000 | 5, 0x00095409, | - |
| 78 | 7, QMetaType::QVector2D, 0x00495001, | - |
| 79 | | - |
| 80 | | - |
| 81 | 0, | - |
| 82 | 0, | - |
| 83 | 0, | - |
| 84 | | - |
| 85 | 0 | - |
| 86 | }; | - |
| 87 | | - |
| 88 | void QQuickDragHandler::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | - |
| 89 | { | - |
| 90 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
| 91 | QQuickDragHandler *_t = static_cast<QQuickDragHandler *>(_o); | - |
| 92 | Q_UNUSED(_t) | - |
| 93 | switch (_id) { | - |
| 94 | case 0: _t->translationChanged(); break; | - |
| 95 | case 1: _t->enforceConstraints(); break; | - |
| 96 | default: ; | - |
| 97 | } | - |
| 98 | } else if (_c == QMetaObject::IndexOfMethod) { | - |
| 99 | int *result = reinterpret_cast<int *>(_a[0]); | - |
| 100 | { | - |
| 101 | using _t = void (QQuickDragHandler::*)(); | - |
| 102 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickDragHandler::translationChanged)) { | - |
| 103 | *result = 0; | - |
| 104 | return; | - |
| 105 | } | - |
| 106 | } | - |
| 107 | } else if (_c == QMetaObject::RegisterPropertyMetaType) { | - |
| 108 | switch (_id) { | - |
| 109 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; | - |
| 110 | case 1: | - |
| 111 | case 0: | - |
| 112 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickDragAxis* >(); break; | - |
| 113 | } | - |
| 114 | } | - |
| 115 | | - |
| 116 | #ifndef QT_NO_PROPERTIES | - |
| 117 | else if (_c == QMetaObject::ReadProperty) { | - |
| 118 | QQuickDragHandler *_t = static_cast<QQuickDragHandler *>(_o); | - |
| 119 | Q_UNUSED(_t) | - |
| 120 | void *_v = _a[0]; | - |
| 121 | switch (_id) { | - |
| 122 | case 0: *reinterpret_cast< QQuickDragAxis**>(_v) = _t->xAxis(); break; | - |
| 123 | case 1: *reinterpret_cast< QQuickDragAxis**>(_v) = _t->yAxis(); break; | - |
| 124 | case 2: *reinterpret_cast< QVector2D*>(_v) = _t->translation(); 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 QQuickDragHandler::staticMetaObject = { | - |
| 134 | { &QQuickSinglePointHandler::staticMetaObject, qt_meta_stringdata_QQuickDragHandler.data, | - |
| 135 | qt_meta_data_QQuickDragHandler, qt_static_metacall, nullptr, nullptr} | - |
| 136 | }; | - |
| 137 | | - |
| 138 | | - |
| 139 | const QMetaObject *QQuickDragHandler::metaObject() const | - |
| 140 | { | - |
| 141 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | - |
| 142 | } | - |
| 143 | | - |
| 144 | void *QQuickDragHandler::qt_metacast(const char *_clname) | - |
| 145 | { | - |
| 146 | if (!_clname) return nullptr; | - |
| 147 | if (!strcmp(_clname, qt_meta_stringdata_QQuickDragHandler.stringdata0)) | - |
| 148 | return static_cast<void*>(this); | - |
| 149 | return QQuickSinglePointHandler::qt_metacast(_clname); | - |
| 150 | } | - |
| 151 | | - |
| 152 | int QQuickDragHandler::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | - |
| 153 | { | - |
| 154 | _id = QQuickSinglePointHandler::qt_metacall(_c, _id, _a); | - |
| 155 | if (_id < 0) | - |
| 156 | return _id; | - |
| 157 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
| 158 | if (_id < 2) | - |
| 159 | qt_static_metacall(this, _c, _id, _a); | - |
| 160 | _id -= 2; | - |
| 161 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | - |
| 162 | if (_id < 2) | - |
| 163 | *reinterpret_cast<int*>(_a[0]) = -1; | - |
| 164 | _id -= 2; | - |
| 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 -= 3; | - |
| 171 | } else if (_c == QMetaObject::QueryPropertyDesignable) { | - |
| 172 | _id -= 3; | - |
| 173 | } else if (_c == QMetaObject::QueryPropertyScriptable) { | - |
| 174 | _id -= 3; | - |
| 175 | } else if (_c == QMetaObject::QueryPropertyStored) { | - |
| 176 | _id -= 3; | - |
| 177 | } else if (_c == QMetaObject::QueryPropertyEditable) { | - |
| 178 | _id -= 3; | - |
| 179 | } else if (_c == QMetaObject::QueryPropertyUser) { | - |
| 180 | _id -= 3; | - |
| 181 | } | - |
| 182 | #endif // QT_NO_PROPERTIES | - |
| 183 | return _id; | - |
| 184 | } | - |
| 185 | | - |
| 186 | | - |
| 187 | void QQuickDragHandler::translationChanged() | - |
| 188 | { | - |
| 189 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); | - |
| 190 | }executed 368 times by 3 tests: end of blockExecuted by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
| 368 |
| 191 | QT_WARNING_POP | - |
| 192 | QT_END_MOC_NAMESPACE | - |
| | |