| 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[62]; |
| 26 | char stringdata0[433]; |
| 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, 28), // "backgroundButtonGroupClicked" |
| 34 | QT_MOC_LITERAL(40, 0), // "" |
| 35 | QT_MOC_LITERAL(41, 16), // "QAbstractButton*" |
| 36 | QT_MOC_LITERAL(58, 6), // "button" |
| 37 | QT_MOC_LITERAL(65, 18), // "buttonGroupClicked" |
| 38 | QT_MOC_LITERAL(84, 10), // "deleteItem" |
| 39 | QT_MOC_LITERAL(95, 19), // "pointerGroupClicked" |
| 40 | QT_MOC_LITERAL(115, 12), // "bringToFront" |
| 41 | QT_MOC_LITERAL(128, 10), // "sendToBack" |
| 42 | QT_MOC_LITERAL(139, 12), // "itemInserted" |
| 43 | QT_MOC_LITERAL(152, 12), // "DiagramItem*" |
| 44 | QT_MOC_LITERAL(165, 4), // "item" |
| 45 | QT_MOC_LITERAL(170, 12), // "textInserted" |
| 46 | QT_MOC_LITERAL(183, 18), // "QGraphicsTextItem*" |
| 47 | QT_MOC_LITERAL(202, 18), // "currentFontChanged" |
| 48 | QT_MOC_LITERAL(221, 4), // "font" |
| 49 | QT_MOC_LITERAL(226, 15), // "fontSizeChanged" |
| 50 | QT_MOC_LITERAL(242, 4), // "size" |
| 51 | QT_MOC_LITERAL(247, 17), // "sceneScaleChanged" |
| 52 | QT_MOC_LITERAL(265, 5), // "scale" |
| 53 | QT_MOC_LITERAL(271, 16), // "textColorChanged" |
| 54 | QT_MOC_LITERAL(288, 16), // "itemColorChanged" |
| 55 | QT_MOC_LITERAL(305, 16), // "lineColorChanged" |
| 56 | QT_MOC_LITERAL(322, 19), // "textButtonTriggered" |
| 57 | QT_MOC_LITERAL(342, 19), // "fillButtonTriggered" |
| 58 | QT_MOC_LITERAL(362, 19), // "lineButtonTriggered" |
| 59 | QT_MOC_LITERAL(382, 16), // "handleFontChange" |
| 60 | QT_MOC_LITERAL(399, 12), // "itemSelected" |
| 61 | QT_MOC_LITERAL(412, 14), // "QGraphicsItem*" |
| 62 | QT_MOC_LITERAL(427, 5) // "about" |
| 63 | |
| 64 | }, |
| 65 | "MainWindow\0backgroundButtonGroupClicked\0" |
| 66 | "\0QAbstractButton*\0button\0buttonGroupClicked\0" |
| 67 | "deleteItem\0pointerGroupClicked\0" |
| 68 | "bringToFront\0sendToBack\0itemInserted\0" |
| 69 | "DiagramItem*\0item\0textInserted\0" |
| 70 | "QGraphicsTextItem*\0currentFontChanged\0" |
| 71 | "font\0fontSizeChanged\0size\0sceneScaleChanged\0" |
| 72 | "scale\0textColorChanged\0itemColorChanged\0" |
| 73 | "lineColorChanged\0textButtonTriggered\0" |
| 74 | "fillButtonTriggered\0lineButtonTriggered\0" |
| 75 | "handleFontChange\0itemSelected\0" |
| 76 | "QGraphicsItem*\0about" |
| 77 | }; |
| 78 | #undef QT_MOC_LITERAL |
| 79 | |
| 80 | static const uint qt_meta_data_MainWindow[] = { |
| 81 | |
| 82 | // content: |
| 83 | 9, // revision |
| 84 | 0, // classname |
| 85 | 0, 0, // classinfo |
| 86 | 20, 14, // methods |
| 87 | 0, 0, // properties |
| 88 | 0, 0, // enums/sets |
| 89 | 0, 0, // constructors |
| 90 | 0, // flags |
| 91 | 0, // signalCount |
| 92 | |
| 93 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
| 94 | 1, 1, 134, 2, 0x08, 0 /* Private */, |
| 95 | 5, 1, 137, 2, 0x08, 2 /* Private */, |
| 96 | 6, 0, 140, 2, 0x08, 4 /* Private */, |
| 97 | 7, 0, 141, 2, 0x08, 5 /* Private */, |
| 98 | 8, 0, 142, 2, 0x08, 6 /* Private */, |
| 99 | 9, 0, 143, 2, 0x08, 7 /* Private */, |
| 100 | 10, 1, 144, 2, 0x08, 8 /* Private */, |
| 101 | 13, 1, 147, 2, 0x08, 10 /* Private */, |
| 102 | 15, 1, 150, 2, 0x08, 12 /* Private */, |
| 103 | 17, 1, 153, 2, 0x08, 14 /* Private */, |
| 104 | 19, 1, 156, 2, 0x08, 16 /* Private */, |
| 105 | 21, 0, 159, 2, 0x08, 18 /* Private */, |
| 106 | 22, 0, 160, 2, 0x08, 19 /* Private */, |
| 107 | 23, 0, 161, 2, 0x08, 20 /* Private */, |
| 108 | 24, 0, 162, 2, 0x08, 21 /* Private */, |
| 109 | 25, 0, 163, 2, 0x08, 22 /* Private */, |
| 110 | 26, 0, 164, 2, 0x08, 23 /* Private */, |
| 111 | 27, 0, 165, 2, 0x08, 24 /* Private */, |
| 112 | 28, 1, 166, 2, 0x08, 25 /* Private */, |
| 113 | 30, 0, 169, 2, 0x08, 27 /* Private */, |
| 114 | |
| 115 | // slots: parameters |
| 116 | QMetaType::Void, 0x80000000 | 3, 4, |
| 117 | QMetaType::Void, 0x80000000 | 3, 4, |
| 118 | QMetaType::Void, |
| 119 | QMetaType::Void, |
| 120 | QMetaType::Void, |
| 121 | QMetaType::Void, |
| 122 | QMetaType::Void, 0x80000000 | 11, 12, |
| 123 | QMetaType::Void, 0x80000000 | 14, 12, |
| 124 | QMetaType::Void, QMetaType::QFont, 16, |
| 125 | QMetaType::Void, QMetaType::QString, 18, |
| 126 | QMetaType::Void, QMetaType::QString, 20, |
| 127 | QMetaType::Void, |
| 128 | QMetaType::Void, |
| 129 | QMetaType::Void, |
| 130 | QMetaType::Void, |
| 131 | QMetaType::Void, |
| 132 | QMetaType::Void, |
| 133 | QMetaType::Void, |
| 134 | QMetaType::Void, 0x80000000 | 29, 12, |
| 135 | QMetaType::Void, |
| 136 | |
| 137 | 0 // eod |
| 138 | }; |
| 139 | |
| 140 | void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
| 141 | { |
| 142 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 143 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 144 | auto *_t = static_cast<MainWindow *>(_o); |
| 145 | Q_UNUSED(_t) |
| 146 | switch (_id) { |
| 147 | case 0: _t->backgroundButtonGroupClicked((*reinterpret_cast< QAbstractButton*(*)>(_a[1]))); break; |
| 148 | case 1: _t->buttonGroupClicked((*reinterpret_cast< QAbstractButton*(*)>(_a[1]))); break; |
| 149 | case 2: _t->deleteItem(); break; |
| 150 | case 3: _t->pointerGroupClicked(); break; |
| 151 | case 4: _t->bringToFront(); break; |
| 152 | case 5: _t->sendToBack(); break; |
| 153 | case 6: _t->itemInserted((*reinterpret_cast< DiagramItem*(*)>(_a[1]))); break; |
| 154 | case 7: _t->textInserted((*reinterpret_cast< QGraphicsTextItem*(*)>(_a[1]))); break; |
| 155 | case 8: _t->currentFontChanged((*reinterpret_cast< const QFont(*)>(_a[1]))); break; |
| 156 | case 9: _t->fontSizeChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break; |
| 157 | case 10: _t->sceneScaleChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break; |
| 158 | case 11: _t->textColorChanged(); break; |
| 159 | case 12: _t->itemColorChanged(); break; |
| 160 | case 13: _t->lineColorChanged(); break; |
| 161 | case 14: _t->textButtonTriggered(); break; |
| 162 | case 15: _t->fillButtonTriggered(); break; |
| 163 | case 16: _t->lineButtonTriggered(); break; |
| 164 | case 17: _t->handleFontChange(); break; |
| 165 | case 18: _t->itemSelected((*reinterpret_cast< QGraphicsItem*(*)>(_a[1]))); break; |
| 166 | case 19: _t->about(); break; |
| 167 | default: ; |
| 168 | } |
| 169 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
| 170 | switch (_id) { |
| 171 | default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break; |
| 172 | case 7: |
| 173 | switch (*reinterpret_cast<int*>(_a[1])) { |
| 174 | default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break; |
| 175 | case 0: |
| 176 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QGraphicsTextItem* >(); break; |
| 177 | } |
| 178 | break; |
| 179 | case 18: |
| 180 | switch (*reinterpret_cast<int*>(_a[1])) { |
| 181 | default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break; |
| 182 | case 0: |
| 183 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QGraphicsItem* >(); break; |
| 184 | } |
| 185 | break; |
| 186 | } |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | const QMetaObject MainWindow::staticMetaObject = { { |
| 191 | QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(), |
| 192 | qt_meta_stringdata_MainWindow.offsetsAndSize, |
| 193 | qt_meta_data_MainWindow, |
| 194 | qt_static_metacall, |
| 195 | nullptr, |
| 196 | qt_incomplete_metaTypeArray<qt_meta_stringdata_MainWindow_t |
| 197 | |
| 198 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QAbstractButton *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QAbstractButton *, 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<DiagramItem *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QGraphicsTextItem *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QFont &, 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>, 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<QGraphicsItem *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> |
| 199 | |
| 200 | |
| 201 | >, |
| 202 | nullptr |
| 203 | } }; |
| 204 | |
| 205 | |
| 206 | const QMetaObject *MainWindow::metaObject() const |
| 207 | { |
| 208 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
| 209 | } |
| 210 | |
| 211 | void *MainWindow::qt_metacast(const char *_clname) |
| 212 | { |
| 213 | if (!_clname) return nullptr; |
| 214 | if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0)) |
| 215 | return static_cast<void*>(this); |
| 216 | return QMainWindow::qt_metacast(_clname); |
| 217 | } |
| 218 | |
| 219 | int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
| 220 | { |
| 221 | _id = QMainWindow::qt_metacall(_c, _id, _a); |
| 222 | if (_id < 0) |
| 223 | return _id; |
| 224 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 225 | if (_id < 20) |
| 226 | qt_static_metacall(this, _c, _id, _a); |
| 227 | _id -= 20; |
| 228 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
| 229 | if (_id < 20) |
| 230 | qt_static_metacall(this, _c, _id, _a); |
| 231 | _id -= 20; |
| 232 | } |
| 233 | return _id; |
| 234 | } |
| 235 | QT_WARNING_POP |
| 236 | QT_END_MOC_NAMESPACE |
| 237 | |