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