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