1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'mainwindow.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 "mainwindow.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'mainwindow.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_MainWindow_t { |
25 | const uint offsetsAndSize[42]; |
26 | char stringdata0[158]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_MainWindow_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = { |
31 | { |
32 | QT_MOC_LITERAL(0, 10), // "MainWindow" |
33 | QT_MOC_LITERAL(11, 7), // "newFile" |
34 | QT_MOC_LITERAL(19, 0), // "" |
35 | QT_MOC_LITERAL(20, 4), // "open" |
36 | QT_MOC_LITERAL(25, 4), // "save" |
37 | QT_MOC_LITERAL(30, 5), // "print" |
38 | QT_MOC_LITERAL(36, 4), // "undo" |
39 | QT_MOC_LITERAL(41, 4), // "redo" |
40 | QT_MOC_LITERAL(46, 3), // "cut" |
41 | QT_MOC_LITERAL(50, 4), // "copy" |
42 | QT_MOC_LITERAL(55, 5), // "paste" |
43 | QT_MOC_LITERAL(61, 4), // "bold" |
44 | QT_MOC_LITERAL(66, 6), // "italic" |
45 | QT_MOC_LITERAL(73, 9), // "leftAlign" |
46 | QT_MOC_LITERAL(83, 10), // "rightAlign" |
47 | QT_MOC_LITERAL(94, 7), // "justify" |
48 | QT_MOC_LITERAL(102, 6), // "center" |
49 | QT_MOC_LITERAL(109, 14), // "setLineSpacing" |
50 | QT_MOC_LITERAL(124, 19), // "setParagraphSpacing" |
51 | QT_MOC_LITERAL(144, 5), // "about" |
52 | QT_MOC_LITERAL(150, 7) // "aboutQt" |
53 | |
54 | }, |
55 | "MainWindow\0newFile\0\0open\0save\0print\0" |
56 | "undo\0redo\0cut\0copy\0paste\0bold\0italic\0" |
57 | "leftAlign\0rightAlign\0justify\0center\0" |
58 | "setLineSpacing\0setParagraphSpacing\0" |
59 | "about\0aboutQt" |
60 | }; |
61 | #undef QT_MOC_LITERAL |
62 | |
63 | static const uint qt_meta_data_MainWindow[] = { |
64 | |
65 | // content: |
66 | 9, // revision |
67 | 0, // classname |
68 | 0, 0, // classinfo |
69 | 19, 14, // methods |
70 | 0, 0, // properties |
71 | 0, 0, // enums/sets |
72 | 0, 0, // constructors |
73 | 0, // flags |
74 | 0, // signalCount |
75 | |
76 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
77 | 1, 0, 128, 2, 0x08, 0 /* Private */, |
78 | 3, 0, 129, 2, 0x08, 1 /* Private */, |
79 | 4, 0, 130, 2, 0x08, 2 /* Private */, |
80 | 5, 0, 131, 2, 0x08, 3 /* Private */, |
81 | 6, 0, 132, 2, 0x08, 4 /* Private */, |
82 | 7, 0, 133, 2, 0x08, 5 /* Private */, |
83 | 8, 0, 134, 2, 0x08, 6 /* Private */, |
84 | 9, 0, 135, 2, 0x08, 7 /* Private */, |
85 | 10, 0, 136, 2, 0x08, 8 /* Private */, |
86 | 11, 0, 137, 2, 0x08, 9 /* Private */, |
87 | 12, 0, 138, 2, 0x08, 10 /* Private */, |
88 | 13, 0, 139, 2, 0x08, 11 /* Private */, |
89 | 14, 0, 140, 2, 0x08, 12 /* Private */, |
90 | 15, 0, 141, 2, 0x08, 13 /* Private */, |
91 | 16, 0, 142, 2, 0x08, 14 /* Private */, |
92 | 17, 0, 143, 2, 0x08, 15 /* Private */, |
93 | 18, 0, 144, 2, 0x08, 16 /* Private */, |
94 | 19, 0, 145, 2, 0x08, 17 /* Private */, |
95 | 20, 0, 146, 2, 0x08, 18 /* Private */, |
96 | |
97 | // slots: parameters |
98 | QMetaType::Void, |
99 | QMetaType::Void, |
100 | QMetaType::Void, |
101 | QMetaType::Void, |
102 | QMetaType::Void, |
103 | QMetaType::Void, |
104 | QMetaType::Void, |
105 | QMetaType::Void, |
106 | QMetaType::Void, |
107 | QMetaType::Void, |
108 | QMetaType::Void, |
109 | QMetaType::Void, |
110 | QMetaType::Void, |
111 | QMetaType::Void, |
112 | QMetaType::Void, |
113 | QMetaType::Void, |
114 | QMetaType::Void, |
115 | QMetaType::Void, |
116 | QMetaType::Void, |
117 | |
118 | 0 // eod |
119 | }; |
120 | |
121 | void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
122 | { |
123 | if (_c == QMetaObject::InvokeMetaMethod) { |
124 | Q_ASSERT(staticMetaObject.cast(_o)); |
125 | auto *_t = static_cast<MainWindow *>(_o); |
126 | Q_UNUSED(_t) |
127 | switch (_id) { |
128 | case 0: _t->newFile(); break; |
129 | case 1: _t->open(); break; |
130 | case 2: _t->save(); break; |
131 | case 3: _t->print(); break; |
132 | case 4: _t->undo(); break; |
133 | case 5: _t->redo(); break; |
134 | case 6: _t->cut(); break; |
135 | case 7: _t->copy(); break; |
136 | case 8: _t->paste(); break; |
137 | case 9: _t->bold(); break; |
138 | case 10: _t->italic(); break; |
139 | case 11: _t->leftAlign(); break; |
140 | case 12: _t->rightAlign(); break; |
141 | case 13: _t->justify(); break; |
142 | case 14: _t->center(); break; |
143 | case 15: _t->setLineSpacing(); break; |
144 | case 16: _t->setParagraphSpacing(); break; |
145 | case 17: _t->about(); break; |
146 | case 18: _t->aboutQt(); break; |
147 | default: ; |
148 | } |
149 | } |
150 | Q_UNUSED(_a); |
151 | } |
152 | |
153 | const QMetaObject MainWindow::staticMetaObject = { { |
154 | QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(), |
155 | qt_meta_stringdata_MainWindow.offsetsAndSize, |
156 | qt_meta_data_MainWindow, |
157 | qt_static_metacall, |
158 | nullptr, |
159 | qt_incomplete_metaTypeArray<qt_meta_stringdata_MainWindow_t |
160 | |
161 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> |
162 | |
163 | |
164 | >, |
165 | nullptr |
166 | } }; |
167 | |
168 | |
169 | const QMetaObject *MainWindow::metaObject() const |
170 | { |
171 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
172 | } |
173 | |
174 | void *MainWindow::qt_metacast(const char *_clname) |
175 | { |
176 | if (!_clname) return nullptr; |
177 | if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0)) |
178 | return static_cast<void*>(this); |
179 | return QMainWindow::qt_metacast(_clname); |
180 | } |
181 | |
182 | int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
183 | { |
184 | _id = QMainWindow::qt_metacall(_c, _id, _a); |
185 | if (_id < 0) |
186 | return _id; |
187 | if (_c == QMetaObject::InvokeMetaMethod) { |
188 | if (_id < 19) |
189 | qt_static_metacall(this, _c, _id, _a); |
190 | _id -= 19; |
191 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
192 | if (_id < 19) |
193 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
194 | _id -= 19; |
195 | } |
196 | return _id; |
197 | } |
198 | QT_WARNING_POP |
199 | QT_END_MOC_NAMESPACE |
200 | |