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