1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'hellowindow.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 "hellowindow.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'hellowindow.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_Renderer_t { |
25 | const uint offsetsAndSize[16]; |
26 | char stringdata0[64]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_Renderer_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_Renderer_t qt_meta_stringdata_Renderer = { |
31 | { |
32 | QT_MOC_LITERAL(0, 8), // "Renderer" |
33 | QT_MOC_LITERAL(9, 13), // "requestUpdate" |
34 | QT_MOC_LITERAL(23, 0), // "" |
35 | QT_MOC_LITERAL(24, 6), // "render" |
36 | QT_MOC_LITERAL(31, 12), // "HelloWindow*" |
37 | QT_MOC_LITERAL(44, 7), // "surface" |
38 | QT_MOC_LITERAL(52, 5), // "angle" |
39 | QT_MOC_LITERAL(58, 5) // "color" |
40 | |
41 | }, |
42 | "Renderer\0requestUpdate\0\0render\0" |
43 | "HelloWindow*\0surface\0angle\0color" |
44 | }; |
45 | #undef QT_MOC_LITERAL |
46 | |
47 | static const uint qt_meta_data_Renderer[] = { |
48 | |
49 | // content: |
50 | 9, // revision |
51 | 0, // classname |
52 | 0, 0, // classinfo |
53 | 2, 14, // methods |
54 | 0, 0, // properties |
55 | 0, 0, // enums/sets |
56 | 0, 0, // constructors |
57 | 0, // flags |
58 | 1, // signalCount |
59 | |
60 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
61 | 1, 0, 26, 2, 0x06, 0 /* Public */, |
62 | |
63 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
64 | 3, 3, 27, 2, 0x0a, 1 /* Public */, |
65 | |
66 | // signals: parameters |
67 | QMetaType::Void, |
68 | |
69 | // slots: parameters |
70 | QMetaType::Void, 0x80000000 | 4, QMetaType::QReal, QMetaType::QColor, 5, 6, 7, |
71 | |
72 | 0 // eod |
73 | }; |
74 | |
75 | void Renderer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
76 | { |
77 | if (_c == QMetaObject::InvokeMetaMethod) { |
78 | Q_ASSERT(staticMetaObject.cast(_o)); |
79 | auto *_t = static_cast<Renderer *>(_o); |
80 | Q_UNUSED(_t) |
81 | switch (_id) { |
82 | case 0: _t->requestUpdate(); break; |
83 | case 1: _t->render((*reinterpret_cast< HelloWindow*(*)>(_a[1])),(*reinterpret_cast< qreal(*)>(_a[2])),(*reinterpret_cast< const QColor(*)>(_a[3]))); break; |
84 | default: ; |
85 | } |
86 | } else if (_c == QMetaObject::IndexOfMethod) { |
87 | int *result = reinterpret_cast<int *>(_a[0]); |
88 | { |
89 | using _t = void (Renderer::*)(); |
90 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Renderer::requestUpdate)) { |
91 | *result = 0; |
92 | return; |
93 | } |
94 | } |
95 | } |
96 | } |
97 | |
98 | const QMetaObject Renderer::staticMetaObject = { { |
99 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
100 | qt_meta_stringdata_Renderer.offsetsAndSize, |
101 | qt_meta_data_Renderer, |
102 | qt_static_metacall, |
103 | nullptr, |
104 | qt_incomplete_metaTypeArray<qt_meta_stringdata_Renderer_t |
105 | , QtPrivate::TypeAndForceComplete<void, std::false_type> |
106 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<HelloWindow *, std::false_type>, QtPrivate::TypeAndForceComplete<qreal, std::false_type>, QtPrivate::TypeAndForceComplete<const QColor &, std::false_type> |
107 | |
108 | |
109 | >, |
110 | nullptr |
111 | } }; |
112 | |
113 | |
114 | const QMetaObject *Renderer::metaObject() const |
115 | { |
116 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
117 | } |
118 | |
119 | void *Renderer::qt_metacast(const char *_clname) |
120 | { |
121 | if (!_clname) return nullptr; |
122 | if (!strcmp(_clname, qt_meta_stringdata_Renderer.stringdata0)) |
123 | return static_cast<void*>(this); |
124 | return QObject::qt_metacast(_clname); |
125 | } |
126 | |
127 | int Renderer::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
128 | { |
129 | _id = QObject::qt_metacall(_c, _id, _a); |
130 | if (_id < 0) |
131 | return _id; |
132 | if (_c == QMetaObject::InvokeMetaMethod) { |
133 | if (_id < 2) |
134 | qt_static_metacall(this, _c, _id, _a); |
135 | _id -= 2; |
136 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
137 | if (_id < 2) |
138 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
139 | _id -= 2; |
140 | } |
141 | return _id; |
142 | } |
143 | |
144 | // SIGNAL 0 |
145 | void Renderer::requestUpdate() |
146 | { |
147 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); |
148 | } |
149 | QT_WARNING_POP |
150 | QT_END_MOC_NAMESPACE |
151 | |