1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'testqstring.cpp' |
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 <QtCore/qbytearray.h> |
11 | #include <QtCore/qmetatype.h> |
12 | #if !defined(Q_MOC_OUTPUT_REVISION) |
13 | #error "The header file 'testqstring.cpp' doesn't include <QObject>." |
14 | #elif Q_MOC_OUTPUT_REVISION != 68 |
15 | #error "This file was generated using the moc from 6.0.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_TestQString_t { |
24 | const uint offsetsAndSize[6]; |
25 | char stringdata0[21]; |
26 | }; |
27 | #define QT_MOC_LITERAL(ofs, len) \ |
28 | uint(offsetof(qt_meta_stringdata_TestQString_t, stringdata0) + ofs), len |
29 | static const qt_meta_stringdata_TestQString_t qt_meta_stringdata_TestQString = { |
30 | { |
31 | QT_MOC_LITERAL(0, 11), // "TestQString" |
32 | QT_MOC_LITERAL(12, 7), // "toUpper" |
33 | QT_MOC_LITERAL(20, 0) // "" |
34 | |
35 | }, |
36 | "TestQString\0toUpper\0" |
37 | }; |
38 | #undef QT_MOC_LITERAL |
39 | |
40 | static const uint qt_meta_data_TestQString[] = { |
41 | |
42 | // content: |
43 | 9, // revision |
44 | 0, // classname |
45 | 0, 0, // classinfo |
46 | 1, 14, // methods |
47 | 0, 0, // properties |
48 | 0, 0, // enums/sets |
49 | 0, 0, // constructors |
50 | 0, // flags |
51 | 0, // signalCount |
52 | |
53 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
54 | 1, 0, 20, 2, 0x08, 0 /* Private */, |
55 | |
56 | // slots: parameters |
57 | QMetaType::Void, |
58 | |
59 | 0 // eod |
60 | }; |
61 | |
62 | void TestQString::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
63 | { |
64 | if (_c == QMetaObject::InvokeMetaMethod) { |
65 | Q_ASSERT(staticMetaObject.cast(_o)); |
66 | auto *_t = static_cast<TestQString *>(_o); |
67 | Q_UNUSED(_t) |
68 | switch (_id) { |
69 | case 0: _t->toUpper(); break; |
70 | default: ; |
71 | } |
72 | } |
73 | Q_UNUSED(_a); |
74 | } |
75 | |
76 | const QMetaObject TestQString::staticMetaObject = { { |
77 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
78 | qt_meta_stringdata_TestQString.offsetsAndSize, |
79 | qt_meta_data_TestQString, |
80 | qt_static_metacall, |
81 | nullptr, |
82 | qt_incomplete_metaTypeArray<qt_meta_stringdata_TestQString_t |
83 | |
84 | , QtPrivate::TypeAndForceComplete<void, std::false_type> |
85 | |
86 | |
87 | >, |
88 | nullptr |
89 | } }; |
90 | |
91 | |
92 | const QMetaObject *TestQString::metaObject() const |
93 | { |
94 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
95 | } |
96 | |
97 | void *TestQString::qt_metacast(const char *_clname) |
98 | { |
99 | if (!_clname) return nullptr; |
100 | if (!strcmp(_clname, qt_meta_stringdata_TestQString.stringdata0)) |
101 | return static_cast<void*>(this); |
102 | return QObject::qt_metacast(_clname); |
103 | } |
104 | |
105 | int TestQString::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
106 | { |
107 | _id = QObject::qt_metacall(_c, _id, _a); |
108 | if (_id < 0) |
109 | return _id; |
110 | if (_c == QMetaObject::InvokeMetaMethod) { |
111 | if (_id < 1) |
112 | qt_static_metacall(this, _c, _id, _a); |
113 | _id -= 1; |
114 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
115 | if (_id < 1) |
116 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
117 | _id -= 1; |
118 | } |
119 | return _id; |
120 | } |
121 | QT_WARNING_POP |
122 | QT_END_MOC_NAMESPACE |
123 | |