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