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