1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'qdrag.h' |
3 | ** |
4 | ** Created by: The Qt Meta Object Compiler version 68 (Qt 6.0.0) |
5 | ** |
6 | ** WARNING! All changes made in this file will be lost! |
7 | *****************************************************************************/ |
8 | |
9 | #include <memory> |
10 | #include "kernel/qdrag.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'qdrag.h' doesn't include <QObject>." |
15 | #elif Q_MOC_OUTPUT_REVISION != 68 |
16 | #error "This file was generated using the moc from 6.0.0. 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_QDrag_t { |
25 | const uint offsetsAndSize[14]; |
26 | char stringdata0[67]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_QDrag_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_QDrag_t qt_meta_stringdata_QDrag = { |
31 | { |
32 | QT_MOC_LITERAL(0, 5), // "QDrag" |
33 | QT_MOC_LITERAL(6, 13), // "actionChanged" |
34 | QT_MOC_LITERAL(20, 0), // "" |
35 | QT_MOC_LITERAL(21, 14), // "Qt::DropAction" |
36 | QT_MOC_LITERAL(36, 6), // "action" |
37 | QT_MOC_LITERAL(43, 13), // "targetChanged" |
38 | QT_MOC_LITERAL(57, 9) // "newTarget" |
39 | |
40 | }, |
41 | "QDrag\0actionChanged\0\0Qt::DropAction\0" |
42 | "action\0targetChanged\0newTarget" |
43 | }; |
44 | #undef QT_MOC_LITERAL |
45 | |
46 | static const uint qt_meta_data_QDrag[] = { |
47 | |
48 | // content: |
49 | 9, // revision |
50 | 0, // classname |
51 | 0, 0, // classinfo |
52 | 2, 14, // methods |
53 | 0, 0, // properties |
54 | 0, 0, // enums/sets |
55 | 0, 0, // constructors |
56 | 0, // flags |
57 | 2, // signalCount |
58 | |
59 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
60 | 1, 1, 26, 2, 0x06, 0 /* Public */, |
61 | 5, 1, 29, 2, 0x06, 2 /* Public */, |
62 | |
63 | // signals: parameters |
64 | QMetaType::Void, 0x80000000 | 3, 4, |
65 | QMetaType::Void, QMetaType::QObjectStar, 6, |
66 | |
67 | 0 // eod |
68 | }; |
69 | |
70 | void QDrag::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
71 | { |
72 | if (_c == QMetaObject::InvokeMetaMethod) { |
73 | Q_ASSERT(staticMetaObject.cast(_o)); |
74 | auto *_t = static_cast<QDrag *>(_o); |
75 | Q_UNUSED(_t) |
76 | switch (_id) { |
77 | case 0: _t->actionChanged((*reinterpret_cast< Qt::DropAction(*)>(_a[1]))); break; |
78 | case 1: _t->targetChanged((*reinterpret_cast< QObject*(*)>(_a[1]))); break; |
79 | default: ; |
80 | } |
81 | } else if (_c == QMetaObject::IndexOfMethod) { |
82 | int *result = reinterpret_cast<int *>(_a[0]); |
83 | { |
84 | using _t = void (QDrag::*)(Qt::DropAction ); |
85 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDrag::actionChanged)) { |
86 | *result = 0; |
87 | return; |
88 | } |
89 | } |
90 | { |
91 | using _t = void (QDrag::*)(QObject * ); |
92 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDrag::targetChanged)) { |
93 | *result = 1; |
94 | return; |
95 | } |
96 | } |
97 | } |
98 | } |
99 | |
100 | const QMetaObject QDrag::staticMetaObject = { { |
101 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
102 | qt_meta_stringdata_QDrag.offsetsAndSize, |
103 | qt_meta_data_QDrag, |
104 | qt_static_metacall, |
105 | nullptr, |
106 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QDrag_t |
107 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<Qt::DropAction, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QObject *, std::false_type> |
108 | |
109 | |
110 | |
111 | >, |
112 | nullptr |
113 | } }; |
114 | |
115 | |
116 | const QMetaObject *QDrag::metaObject() const |
117 | { |
118 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
119 | } |
120 | |
121 | void *QDrag::qt_metacast(const char *_clname) |
122 | { |
123 | if (!_clname) return nullptr; |
124 | if (!strcmp(_clname, qt_meta_stringdata_QDrag.stringdata0)) |
125 | return static_cast<void*>(this); |
126 | return QObject::qt_metacast(_clname); |
127 | } |
128 | |
129 | int QDrag::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
130 | { |
131 | _id = QObject::qt_metacall(_c, _id, _a); |
132 | if (_id < 0) |
133 | return _id; |
134 | if (_c == QMetaObject::InvokeMetaMethod) { |
135 | if (_id < 2) |
136 | qt_static_metacall(this, _c, _id, _a); |
137 | _id -= 2; |
138 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
139 | if (_id < 2) |
140 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
141 | _id -= 2; |
142 | } |
143 | return _id; |
144 | } |
145 | |
146 | // SIGNAL 0 |
147 | void QDrag::actionChanged(Qt::DropAction _t1) |
148 | { |
149 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
150 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
151 | } |
152 | |
153 | // SIGNAL 1 |
154 | void QDrag::targetChanged(QObject * _t1) |
155 | { |
156 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
157 | QMetaObject::activate(this, &staticMetaObject, 1, _a); |
158 | } |
159 | QT_WARNING_POP |
160 | QT_END_MOC_NAMESPACE |
161 | |