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