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