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