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[101];
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, 6), // "saveAs"
36QT_MOC_LITERAL(24, 10), // "brushColor"
37QT_MOC_LITERAL(35, 10), // "brushWidth"
38QT_MOC_LITERAL(46, 11), // "changeBrush"
39QT_MOC_LITERAL(58, 11), // "insertShape"
40QT_MOC_LITERAL(70, 11), // "applyFilter"
41QT_MOC_LITERAL(82, 5), // "about"
42QT_MOC_LITERAL(88, 12) // "aboutPlugins"
43
44 },
45 "MainWindow\0open\0\0saveAs\0brushColor\0"
46 "brushWidth\0changeBrush\0insertShape\0"
47 "applyFilter\0about\0aboutPlugins"
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 9, 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, 68, 2, 0x08, 0 /* Private */,
66 3, 0, 69, 2, 0x08, 1 /* Private */,
67 4, 0, 70, 2, 0x08, 2 /* Private */,
68 5, 0, 71, 2, 0x08, 3 /* Private */,
69 6, 0, 72, 2, 0x08, 4 /* Private */,
70 7, 0, 73, 2, 0x08, 5 /* Private */,
71 8, 0, 74, 2, 0x08, 6 /* Private */,
72 9, 0, 75, 2, 0x08, 7 /* Private */,
73 10, 0, 76, 2, 0x08, 8 /* Private */,
74
75 // slots: parameters
76 QMetaType::Void,
77 QMetaType::Bool,
78 QMetaType::Void,
79 QMetaType::Void,
80 QMetaType::Void,
81 QMetaType::Void,
82 QMetaType::Void,
83 QMetaType::Void,
84 QMetaType::Void,
85
86 0 // eod
87};
88
89void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
90{
91 if (_c == QMetaObject::InvokeMetaMethod) {
92 Q_ASSERT(staticMetaObject.cast(_o));
93 auto *_t = static_cast<MainWindow *>(_o);
94 Q_UNUSED(_t)
95 switch (_id) {
96 case 0: _t->open(); break;
97 case 1: { bool _r = _t->saveAs();
98 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
99 case 2: _t->brushColor(); break;
100 case 3: _t->brushWidth(); break;
101 case 4: _t->changeBrush(); break;
102 case 5: _t->insertShape(); break;
103 case 6: _t->applyFilter(); break;
104 case 7: _t->about(); break;
105 case 8: _t->aboutPlugins(); break;
106 default: ;
107 }
108 }
109}
110
111const QMetaObject MainWindow::staticMetaObject = { {
112 QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(),
113 qt_meta_stringdata_MainWindow.offsetsAndSize,
114 qt_meta_data_MainWindow,
115 qt_static_metacall,
116 nullptr,
117qt_incomplete_metaTypeArray<qt_meta_stringdata_MainWindow_t
118
119, QtPrivate::TypeAndForceComplete<void, 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>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
120
121
122>,
123 nullptr
124} };
125
126
127const QMetaObject *MainWindow::metaObject() const
128{
129 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
130}
131
132void *MainWindow::qt_metacast(const char *_clname)
133{
134 if (!_clname) return nullptr;
135 if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0))
136 return static_cast<void*>(this);
137 return QMainWindow::qt_metacast(_clname);
138}
139
140int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
141{
142 _id = QMainWindow::qt_metacall(_c, _id, _a);
143 if (_id < 0)
144 return _id;
145 if (_c == QMetaObject::InvokeMetaMethod) {
146 if (_id < 9)
147 qt_static_metacall(this, _c, _id, _a);
148 _id -= 9;
149 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
150 if (_id < 9)
151 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
152 _id -= 9;
153 }
154 return _id;
155}
156QT_WARNING_POP
157QT_END_MOC_NAMESPACE
158