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[20];
26 char stringdata0[102];
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, 5), // "about"
41QT_MOC_LITERAL(82, 19) // "documentWasModified"
42
43 },
44 "MainWindow\0newFile\0\0open\0save\0saveAs\0"
45 "updateRecentFileActions\0openRecentFile\0"
46 "about\0documentWasModified"
47};
48#undef QT_MOC_LITERAL
49
50static const uint qt_meta_data_MainWindow[] = {
51
52 // content:
53 9, // revision
54 0, // classname
55 0, 0, // classinfo
56 8, 14, // methods
57 0, 0, // properties
58 0, 0, // enums/sets
59 0, 0, // constructors
60 0, // flags
61 0, // signalCount
62
63 // slots: name, argc, parameters, tag, flags, initial metatype offsets
64 1, 0, 62, 2, 0x08, 0 /* Private */,
65 3, 0, 63, 2, 0x08, 1 /* Private */,
66 4, 0, 64, 2, 0x08, 2 /* Private */,
67 5, 0, 65, 2, 0x08, 3 /* Private */,
68 6, 0, 66, 2, 0x08, 4 /* Private */,
69 7, 0, 67, 2, 0x08, 5 /* Private */,
70 8, 0, 68, 2, 0x08, 6 /* Private */,
71 9, 0, 69, 2, 0x08, 7 /* Private */,
72
73 // slots: parameters
74 QMetaType::Void,
75 QMetaType::Void,
76 QMetaType::Bool,
77 QMetaType::Bool,
78 QMetaType::Void,
79 QMetaType::Void,
80 QMetaType::Void,
81 QMetaType::Void,
82
83 0 // eod
84};
85
86void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
87{
88 if (_c == QMetaObject::InvokeMetaMethod) {
89 Q_ASSERT(staticMetaObject.cast(_o));
90 auto *_t = static_cast<MainWindow *>(_o);
91 Q_UNUSED(_t)
92 switch (_id) {
93 case 0: _t->newFile(); break;
94 case 1: _t->open(); break;
95 case 2: { bool _r = _t->save();
96 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
97 case 3: { bool _r = _t->saveAs();
98 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
99 case 4: _t->updateRecentFileActions(); break;
100 case 5: _t->openRecentFile(); break;
101 case 6: _t->about(); break;
102 case 7: _t->documentWasModified(); break;
103 default: ;
104 }
105 }
106}
107
108const QMetaObject MainWindow::staticMetaObject = { {
109 QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(),
110 qt_meta_stringdata_MainWindow.offsetsAndSize,
111 qt_meta_data_MainWindow,
112 qt_static_metacall,
113 nullptr,
114qt_incomplete_metaTypeArray<qt_meta_stringdata_MainWindow_t
115
116, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<bool, 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>
117
118
119>,
120 nullptr
121} };
122
123
124const QMetaObject *MainWindow::metaObject() const
125{
126 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
127}
128
129void *MainWindow::qt_metacast(const char *_clname)
130{
131 if (!_clname) return nullptr;
132 if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0))
133 return static_cast<void*>(this);
134 return QMainWindow::qt_metacast(_clname);
135}
136
137int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
138{
139 _id = QMainWindow::qt_metacall(_c, _id, _a);
140 if (_id < 0)
141 return _id;
142 if (_c == QMetaObject::InvokeMetaMethod) {
143 if (_id < 8)
144 qt_static_metacall(this, _c, _id, _a);
145 _id -= 8;
146 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
147 if (_id < 8)
148 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
149 _id -= 8;
150 }
151 return _id;
152}
153QT_WARNING_POP
154QT_END_MOC_NAMESPACE
155