1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'diagramscene.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 "diagramscene.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'diagramscene.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_DiagramScene_t { |
25 | const uint offsetsAndSize[12]; |
26 | char stringdata0[65]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_DiagramScene_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_DiagramScene_t qt_meta_stringdata_DiagramScene = { |
31 | { |
32 | QT_MOC_LITERAL(0, 12), // "DiagramScene" |
33 | QT_MOC_LITERAL(13, 9), // "itemMoved" |
34 | QT_MOC_LITERAL(23, 0), // "" |
35 | QT_MOC_LITERAL(24, 12), // "DiagramItem*" |
36 | QT_MOC_LITERAL(37, 9), // "movedItem" |
37 | QT_MOC_LITERAL(47, 17) // "movedFromPosition" |
38 | |
39 | }, |
40 | "DiagramScene\0itemMoved\0\0DiagramItem*\0" |
41 | "movedItem\0movedFromPosition" |
42 | }; |
43 | #undef QT_MOC_LITERAL |
44 | |
45 | static const uint qt_meta_data_DiagramScene[] = { |
46 | |
47 | // content: |
48 | 9, // revision |
49 | 0, // classname |
50 | 0, 0, // classinfo |
51 | 1, 14, // methods |
52 | 0, 0, // properties |
53 | 0, 0, // enums/sets |
54 | 0, 0, // constructors |
55 | 0, // flags |
56 | 1, // signalCount |
57 | |
58 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
59 | 1, 2, 20, 2, 0x06, 0 /* Public */, |
60 | |
61 | // signals: parameters |
62 | QMetaType::Void, 0x80000000 | 3, QMetaType::QPointF, 4, 5, |
63 | |
64 | 0 // eod |
65 | }; |
66 | |
67 | void DiagramScene::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
68 | { |
69 | if (_c == QMetaObject::InvokeMetaMethod) { |
70 | Q_ASSERT(staticMetaObject.cast(_o)); |
71 | auto *_t = static_cast<DiagramScene *>(_o); |
72 | Q_UNUSED(_t) |
73 | switch (_id) { |
74 | case 0: _t->itemMoved((*reinterpret_cast< DiagramItem*(*)>(_a[1])),(*reinterpret_cast< const QPointF(*)>(_a[2]))); break; |
75 | default: ; |
76 | } |
77 | } else if (_c == QMetaObject::IndexOfMethod) { |
78 | int *result = reinterpret_cast<int *>(_a[0]); |
79 | { |
80 | using _t = void (DiagramScene::*)(DiagramItem * , const QPointF & ); |
81 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DiagramScene::itemMoved)) { |
82 | *result = 0; |
83 | return; |
84 | } |
85 | } |
86 | } |
87 | } |
88 | |
89 | const QMetaObject DiagramScene::staticMetaObject = { { |
90 | QMetaObject::SuperData::link<QGraphicsScene::staticMetaObject>(), |
91 | qt_meta_stringdata_DiagramScene.offsetsAndSize, |
92 | qt_meta_data_DiagramScene, |
93 | qt_static_metacall, |
94 | nullptr, |
95 | qt_incomplete_metaTypeArray<qt_meta_stringdata_DiagramScene_t |
96 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<DiagramItem *, std::false_type>, QtPrivate::TypeAndForceComplete<const QPointF &, std::false_type> |
97 | |
98 | |
99 | |
100 | >, |
101 | nullptr |
102 | } }; |
103 | |
104 | |
105 | const QMetaObject *DiagramScene::metaObject() const |
106 | { |
107 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
108 | } |
109 | |
110 | void *DiagramScene::qt_metacast(const char *_clname) |
111 | { |
112 | if (!_clname) return nullptr; |
113 | if (!strcmp(_clname, qt_meta_stringdata_DiagramScene.stringdata0)) |
114 | return static_cast<void*>(this); |
115 | return QGraphicsScene::qt_metacast(_clname); |
116 | } |
117 | |
118 | int DiagramScene::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
119 | { |
120 | _id = QGraphicsScene::qt_metacall(_c, _id, _a); |
121 | if (_id < 0) |
122 | return _id; |
123 | if (_c == QMetaObject::InvokeMetaMethod) { |
124 | if (_id < 1) |
125 | qt_static_metacall(this, _c, _id, _a); |
126 | _id -= 1; |
127 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
128 | if (_id < 1) |
129 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
130 | _id -= 1; |
131 | } |
132 | return _id; |
133 | } |
134 | |
135 | // SIGNAL 0 |
136 | void DiagramScene::itemMoved(DiagramItem * _t1, const QPointF & _t2) |
137 | { |
138 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) }; |
139 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
140 | } |
141 | QT_WARNING_POP |
142 | QT_END_MOC_NAMESPACE |
143 | |