1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'diagramtextitem.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 "diagramtextitem.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'diagramtextitem.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_DiagramTextItem_t { |
25 | const uint offsetsAndSize[14]; |
26 | char stringdata0[79]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_DiagramTextItem_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_DiagramTextItem_t qt_meta_stringdata_DiagramTextItem = { |
31 | { |
32 | QT_MOC_LITERAL(0, 15), // "DiagramTextItem" |
33 | QT_MOC_LITERAL(16, 9), // "lostFocus" |
34 | QT_MOC_LITERAL(26, 0), // "" |
35 | QT_MOC_LITERAL(27, 16), // "DiagramTextItem*" |
36 | QT_MOC_LITERAL(44, 4), // "item" |
37 | QT_MOC_LITERAL(49, 14), // "selectedChange" |
38 | QT_MOC_LITERAL(64, 14) // "QGraphicsItem*" |
39 | |
40 | }, |
41 | "DiagramTextItem\0lostFocus\0\0DiagramTextItem*\0" |
42 | "item\0selectedChange\0QGraphicsItem*" |
43 | }; |
44 | #undef QT_MOC_LITERAL |
45 | |
46 | static const uint qt_meta_data_DiagramTextItem[] = { |
47 | |
48 | // content: |
49 | 9, // revision |
50 | 0, // classname |
51 | 0, 0, // classinfo |
52 | 2, 14, // methods |
53 | 0, 0, // properties |
54 | 0, 0, // enums/sets |
55 | 0, 0, // constructors |
56 | 0, // flags |
57 | 2, // signalCount |
58 | |
59 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
60 | 1, 1, 26, 2, 0x06, 0 /* Public */, |
61 | 5, 1, 29, 2, 0x06, 2 /* Public */, |
62 | |
63 | // signals: parameters |
64 | QMetaType::Void, 0x80000000 | 3, 4, |
65 | QMetaType::Void, 0x80000000 | 6, 4, |
66 | |
67 | 0 // eod |
68 | }; |
69 | |
70 | void DiagramTextItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
71 | { |
72 | if (_c == QMetaObject::InvokeMetaMethod) { |
73 | Q_ASSERT(staticMetaObject.cast(_o)); |
74 | auto *_t = static_cast<DiagramTextItem *>(_o); |
75 | Q_UNUSED(_t) |
76 | switch (_id) { |
77 | case 0: _t->lostFocus((*reinterpret_cast< DiagramTextItem*(*)>(_a[1]))); break; |
78 | case 1: _t->selectedChange((*reinterpret_cast< QGraphicsItem*(*)>(_a[1]))); break; |
79 | default: ; |
80 | } |
81 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
82 | switch (_id) { |
83 | default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break; |
84 | case 0: |
85 | switch (*reinterpret_cast<int*>(_a[1])) { |
86 | default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break; |
87 | case 0: |
88 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< DiagramTextItem* >(); break; |
89 | } |
90 | break; |
91 | case 1: |
92 | switch (*reinterpret_cast<int*>(_a[1])) { |
93 | default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break; |
94 | case 0: |
95 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QGraphicsItem* >(); break; |
96 | } |
97 | break; |
98 | } |
99 | } else if (_c == QMetaObject::IndexOfMethod) { |
100 | int *result = reinterpret_cast<int *>(_a[0]); |
101 | { |
102 | using _t = void (DiagramTextItem::*)(DiagramTextItem * ); |
103 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DiagramTextItem::lostFocus)) { |
104 | *result = 0; |
105 | return; |
106 | } |
107 | } |
108 | { |
109 | using _t = void (DiagramTextItem::*)(QGraphicsItem * ); |
110 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DiagramTextItem::selectedChange)) { |
111 | *result = 1; |
112 | return; |
113 | } |
114 | } |
115 | } |
116 | } |
117 | |
118 | const QMetaObject DiagramTextItem::staticMetaObject = { { |
119 | QMetaObject::SuperData::link<QGraphicsTextItem::staticMetaObject>(), |
120 | qt_meta_stringdata_DiagramTextItem.offsetsAndSize, |
121 | qt_meta_data_DiagramTextItem, |
122 | qt_static_metacall, |
123 | nullptr, |
124 | qt_incomplete_metaTypeArray<qt_meta_stringdata_DiagramTextItem_t |
125 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<DiagramTextItem *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QGraphicsItem *, std::false_type> |
126 | |
127 | |
128 | |
129 | >, |
130 | nullptr |
131 | } }; |
132 | |
133 | |
134 | const QMetaObject *DiagramTextItem::metaObject() const |
135 | { |
136 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
137 | } |
138 | |
139 | void *DiagramTextItem::qt_metacast(const char *_clname) |
140 | { |
141 | if (!_clname) return nullptr; |
142 | if (!strcmp(_clname, qt_meta_stringdata_DiagramTextItem.stringdata0)) |
143 | return static_cast<void*>(this); |
144 | return QGraphicsTextItem::qt_metacast(_clname); |
145 | } |
146 | |
147 | int DiagramTextItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
148 | { |
149 | _id = QGraphicsTextItem::qt_metacall(_c, _id, _a); |
150 | if (_id < 0) |
151 | return _id; |
152 | if (_c == QMetaObject::InvokeMetaMethod) { |
153 | if (_id < 2) |
154 | qt_static_metacall(this, _c, _id, _a); |
155 | _id -= 2; |
156 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
157 | if (_id < 2) |
158 | qt_static_metacall(this, _c, _id, _a); |
159 | _id -= 2; |
160 | } |
161 | return _id; |
162 | } |
163 | |
164 | // SIGNAL 0 |
165 | void DiagramTextItem::lostFocus(DiagramTextItem * _t1) |
166 | { |
167 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
168 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
169 | } |
170 | |
171 | // SIGNAL 1 |
172 | void DiagramTextItem::selectedChange(QGraphicsItem * _t1) |
173 | { |
174 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
175 | QMetaObject::activate(this, &staticMetaObject, 1, _a); |
176 | } |
177 | QT_WARNING_POP |
178 | QT_END_MOC_NAMESPACE |
179 | |