1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'qlabel.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 "widgets/qlabel.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'qlabel.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_QLabel_t { |
25 | const uint offsetsAndSize[66]; |
26 | char stringdata0[369]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_QLabel_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_QLabel_t qt_meta_stringdata_QLabel = { |
31 | { |
32 | QT_MOC_LITERAL(0, 6), // "QLabel" |
33 | QT_MOC_LITERAL(7, 13), // "linkActivated" |
34 | QT_MOC_LITERAL(21, 0), // "" |
35 | QT_MOC_LITERAL(22, 4), // "link" |
36 | QT_MOC_LITERAL(27, 11), // "linkHovered" |
37 | QT_MOC_LITERAL(39, 7), // "setText" |
38 | QT_MOC_LITERAL(47, 9), // "setPixmap" |
39 | QT_MOC_LITERAL(57, 10), // "setPicture" |
40 | QT_MOC_LITERAL(68, 8), // "QPicture" |
41 | QT_MOC_LITERAL(77, 8), // "setMovie" |
42 | QT_MOC_LITERAL(86, 7), // "QMovie*" |
43 | QT_MOC_LITERAL(94, 5), // "movie" |
44 | QT_MOC_LITERAL(100, 6), // "setNum" |
45 | QT_MOC_LITERAL(107, 5), // "clear" |
46 | QT_MOC_LITERAL(113, 15), // "_q_movieUpdated" |
47 | QT_MOC_LITERAL(129, 15), // "_q_movieResized" |
48 | QT_MOC_LITERAL(145, 14), // "_q_linkHovered" |
49 | QT_MOC_LITERAL(160, 15), // "_q_buddyDeleted" |
50 | QT_MOC_LITERAL(176, 4), // "text" |
51 | QT_MOC_LITERAL(181, 10), // "textFormat" |
52 | QT_MOC_LITERAL(192, 14), // "Qt::TextFormat" |
53 | QT_MOC_LITERAL(207, 6), // "pixmap" |
54 | QT_MOC_LITERAL(214, 14), // "scaledContents" |
55 | QT_MOC_LITERAL(229, 9), // "alignment" |
56 | QT_MOC_LITERAL(239, 13), // "Qt::Alignment" |
57 | QT_MOC_LITERAL(253, 8), // "wordWrap" |
58 | QT_MOC_LITERAL(262, 6), // "margin" |
59 | QT_MOC_LITERAL(269, 6), // "indent" |
60 | QT_MOC_LITERAL(276, 17), // "openExternalLinks" |
61 | QT_MOC_LITERAL(294, 20), // "textInteractionFlags" |
62 | QT_MOC_LITERAL(315, 24), // "Qt::TextInteractionFlags" |
63 | QT_MOC_LITERAL(340, 15), // "hasSelectedText" |
64 | QT_MOC_LITERAL(356, 12) // "selectedText" |
65 | |
66 | }, |
67 | "QLabel\0linkActivated\0\0link\0linkHovered\0" |
68 | "setText\0setPixmap\0setPicture\0QPicture\0" |
69 | "setMovie\0QMovie*\0movie\0setNum\0clear\0" |
70 | "_q_movieUpdated\0_q_movieResized\0" |
71 | "_q_linkHovered\0_q_buddyDeleted\0text\0" |
72 | "textFormat\0Qt::TextFormat\0pixmap\0" |
73 | "scaledContents\0alignment\0Qt::Alignment\0" |
74 | "wordWrap\0margin\0indent\0openExternalLinks\0" |
75 | "textInteractionFlags\0Qt::TextInteractionFlags\0" |
76 | "hasSelectedText\0selectedText" |
77 | }; |
78 | #undef QT_MOC_LITERAL |
79 | |
80 | static const uint qt_meta_data_QLabel[] = { |
81 | |
82 | // content: |
83 | 9, // revision |
84 | 0, // classname |
85 | 0, 0, // classinfo |
86 | 13, 14, // methods |
87 | 12, 127, // properties |
88 | 0, 0, // enums/sets |
89 | 0, 0, // constructors |
90 | 0, // flags |
91 | 2, // signalCount |
92 | |
93 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
94 | 1, 1, 92, 2, 0x06, 12 /* Public */, |
95 | 4, 1, 95, 2, 0x06, 14 /* Public */, |
96 | |
97 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
98 | 5, 1, 98, 2, 0x0a, 16 /* Public */, |
99 | 6, 1, 101, 2, 0x0a, 18 /* Public */, |
100 | 7, 1, 104, 2, 0x0a, 20 /* Public */, |
101 | 9, 1, 107, 2, 0x0a, 22 /* Public */, |
102 | 12, 1, 110, 2, 0x0a, 24 /* Public */, |
103 | 12, 1, 113, 2, 0x0a, 26 /* Public */, |
104 | 13, 0, 116, 2, 0x0a, 28 /* Public */, |
105 | 14, 1, 117, 2, 0x08, 29 /* Private */, |
106 | 15, 1, 120, 2, 0x08, 31 /* Private */, |
107 | 16, 1, 123, 2, 0x08, 33 /* Private */, |
108 | 17, 0, 126, 2, 0x08, 35 /* Private */, |
109 | |
110 | // signals: parameters |
111 | QMetaType::Void, QMetaType::QString, 3, |
112 | QMetaType::Void, QMetaType::QString, 3, |
113 | |
114 | // slots: parameters |
115 | QMetaType::Void, QMetaType::QString, 2, |
116 | QMetaType::Void, QMetaType::QPixmap, 2, |
117 | QMetaType::Void, 0x80000000 | 8, 2, |
118 | QMetaType::Void, 0x80000000 | 10, 11, |
119 | QMetaType::Void, QMetaType::Int, 2, |
120 | QMetaType::Void, QMetaType::Double, 2, |
121 | QMetaType::Void, |
122 | QMetaType::Void, QMetaType::QRect, 2, |
123 | QMetaType::Void, QMetaType::QSize, 2, |
124 | QMetaType::Void, QMetaType::QString, 2, |
125 | QMetaType::Void, |
126 | |
127 | // properties: name, type, flags |
128 | 18, QMetaType::QString, 0x00015103, uint(-1), 0, |
129 | 19, 0x80000000 | 20, 0x0001510b, uint(-1), 0, |
130 | 21, QMetaType::QPixmap, 0x00015103, uint(-1), 0, |
131 | 22, QMetaType::Bool, 0x00015103, uint(-1), 0, |
132 | 23, 0x80000000 | 24, 0x0001510b, uint(-1), 0, |
133 | 25, QMetaType::Bool, 0x00015103, uint(-1), 0, |
134 | 26, QMetaType::Int, 0x00015103, uint(-1), 0, |
135 | 27, QMetaType::Int, 0x00015103, uint(-1), 0, |
136 | 28, QMetaType::Bool, 0x00015103, uint(-1), 0, |
137 | 29, 0x80000000 | 30, 0x0001510b, uint(-1), 0, |
138 | 31, QMetaType::Bool, 0x00015001, uint(-1), 0, |
139 | 32, QMetaType::QString, 0x00015001, uint(-1), 0, |
140 | |
141 | 0 // eod |
142 | }; |
143 | |
144 | void QLabel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
145 | { |
146 | if (_c == QMetaObject::InvokeMetaMethod) { |
147 | Q_ASSERT(staticMetaObject.cast(_o)); |
148 | auto *_t = static_cast<QLabel *>(_o); |
149 | Q_UNUSED(_t) |
150 | switch (_id) { |
151 | case 0: _t->linkActivated((*reinterpret_cast< const QString(*)>(_a[1]))); break; |
152 | case 1: _t->linkHovered((*reinterpret_cast< const QString(*)>(_a[1]))); break; |
153 | case 2: _t->setText((*reinterpret_cast< const QString(*)>(_a[1]))); break; |
154 | case 3: _t->setPixmap((*reinterpret_cast< const QPixmap(*)>(_a[1]))); break; |
155 | case 4: _t->setPicture((*reinterpret_cast< const QPicture(*)>(_a[1]))); break; |
156 | case 5: _t->setMovie((*reinterpret_cast< QMovie*(*)>(_a[1]))); break; |
157 | case 6: _t->setNum((*reinterpret_cast< int(*)>(_a[1]))); break; |
158 | case 7: _t->setNum((*reinterpret_cast< double(*)>(_a[1]))); break; |
159 | case 8: _t->clear(); break; |
160 | case 9: _t->d_func()->_q_movieUpdated((*reinterpret_cast< const QRect(*)>(_a[1]))); break; |
161 | case 10: _t->d_func()->_q_movieResized((*reinterpret_cast< const QSize(*)>(_a[1]))); break; |
162 | case 11: _t->d_func()->_q_linkHovered((*reinterpret_cast< const QString(*)>(_a[1]))); break; |
163 | case 12: _t->d_func()->_q_buddyDeleted(); break; |
164 | default: ; |
165 | } |
166 | } else if (_c == QMetaObject::IndexOfMethod) { |
167 | int *result = reinterpret_cast<int *>(_a[0]); |
168 | { |
169 | using _t = void (QLabel::*)(const QString & ); |
170 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QLabel::linkActivated)) { |
171 | *result = 0; |
172 | return; |
173 | } |
174 | } |
175 | { |
176 | using _t = void (QLabel::*)(const QString & ); |
177 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QLabel::linkHovered)) { |
178 | *result = 1; |
179 | return; |
180 | } |
181 | } |
182 | } |
183 | #ifndef QT_NO_PROPERTIES |
184 | else if (_c == QMetaObject::ReadProperty) { |
185 | Q_ASSERT(staticMetaObject.cast(_o)); |
186 | auto *_t = static_cast<QLabel *>(_o); |
187 | Q_UNUSED(_t) |
188 | void *_v = _a[0]; |
189 | switch (_id) { |
190 | case 0: *reinterpret_cast< QString*>(_v) = _t->text(); break; |
191 | case 1: *reinterpret_cast< Qt::TextFormat*>(_v) = _t->textFormat(); break; |
192 | case 2: *reinterpret_cast< QPixmap*>(_v) = _t->pixmap(); break; |
193 | case 3: *reinterpret_cast< bool*>(_v) = _t->hasScaledContents(); break; |
194 | case 4: *reinterpret_cast< Qt::Alignment*>(_v) = _t->alignment(); break; |
195 | case 5: *reinterpret_cast< bool*>(_v) = _t->wordWrap(); break; |
196 | case 6: *reinterpret_cast< int*>(_v) = _t->margin(); break; |
197 | case 7: *reinterpret_cast< int*>(_v) = _t->indent(); break; |
198 | case 8: *reinterpret_cast< bool*>(_v) = _t->openExternalLinks(); break; |
199 | case 9: *reinterpret_cast< Qt::TextInteractionFlags*>(_v) = _t->textInteractionFlags(); break; |
200 | case 10: *reinterpret_cast< bool*>(_v) = _t->hasSelectedText(); break; |
201 | case 11: *reinterpret_cast< QString*>(_v) = _t->selectedText(); break; |
202 | default: break; |
203 | } |
204 | } else if (_c == QMetaObject::WriteProperty) { |
205 | Q_ASSERT(staticMetaObject.cast(_o)); |
206 | auto *_t = static_cast<QLabel *>(_o); |
207 | Q_UNUSED(_t) |
208 | void *_v = _a[0]; |
209 | switch (_id) { |
210 | case 0: _t->setText(*reinterpret_cast< QString*>(_v)); break; |
211 | case 1: _t->setTextFormat(*reinterpret_cast< Qt::TextFormat*>(_v)); break; |
212 | case 2: _t->setPixmap(*reinterpret_cast< QPixmap*>(_v)); break; |
213 | case 3: _t->setScaledContents(*reinterpret_cast< bool*>(_v)); break; |
214 | case 4: _t->setAlignment(*reinterpret_cast< Qt::Alignment*>(_v)); break; |
215 | case 5: _t->setWordWrap(*reinterpret_cast< bool*>(_v)); break; |
216 | case 6: _t->setMargin(*reinterpret_cast< int*>(_v)); break; |
217 | case 7: _t->setIndent(*reinterpret_cast< int*>(_v)); break; |
218 | case 8: _t->setOpenExternalLinks(*reinterpret_cast< bool*>(_v)); break; |
219 | case 9: _t->setTextInteractionFlags(*reinterpret_cast< Qt::TextInteractionFlags*>(_v)); break; |
220 | default: break; |
221 | } |
222 | } else if (_c == QMetaObject::ResetProperty) { |
223 | } else if (_c == QMetaObject::BindableProperty) { |
224 | } |
225 | #endif // QT_NO_PROPERTIES |
226 | } |
227 | |
228 | const QMetaObject QLabel::staticMetaObject = { { |
229 | QMetaObject::SuperData::link<QFrame::staticMetaObject>(), |
230 | qt_meta_stringdata_QLabel.offsetsAndSize, |
231 | qt_meta_data_QLabel, |
232 | qt_static_metacall, |
233 | nullptr, |
234 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QLabel_t |
235 | , QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::TextFormat, std::true_type>, QtPrivate::TypeAndForceComplete<QPixmap, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::Alignment, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::TextInteractionFlags, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_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> |
236 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QPixmap &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QPicture &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QMovie *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<double, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QRect &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QSize &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> |
237 | |
238 | |
239 | >, |
240 | nullptr |
241 | } }; |
242 | |
243 | |
244 | const QMetaObject *QLabel::metaObject() const |
245 | { |
246 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
247 | } |
248 | |
249 | void *QLabel::qt_metacast(const char *_clname) |
250 | { |
251 | if (!_clname) return nullptr; |
252 | if (!strcmp(_clname, qt_meta_stringdata_QLabel.stringdata0)) |
253 | return static_cast<void*>(this); |
254 | return QFrame::qt_metacast(_clname); |
255 | } |
256 | |
257 | int QLabel::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
258 | { |
259 | _id = QFrame::qt_metacall(_c, _id, _a); |
260 | if (_id < 0) |
261 | return _id; |
262 | if (_c == QMetaObject::InvokeMetaMethod) { |
263 | if (_id < 13) |
264 | qt_static_metacall(this, _c, _id, _a); |
265 | _id -= 13; |
266 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
267 | if (_id < 13) |
268 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
269 | _id -= 13; |
270 | } |
271 | #ifndef QT_NO_PROPERTIES |
272 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
273 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
274 | || _c == QMetaObject::RegisterPropertyMetaType) { |
275 | qt_static_metacall(this, _c, _id, _a); |
276 | _id -= 12; |
277 | } |
278 | #endif // QT_NO_PROPERTIES |
279 | return _id; |
280 | } |
281 | |
282 | // SIGNAL 0 |
283 | void QLabel::linkActivated(const QString & _t1) |
284 | { |
285 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
286 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
287 | } |
288 | |
289 | // SIGNAL 1 |
290 | void QLabel::linkHovered(const QString & _t1) |
291 | { |
292 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
293 | QMetaObject::activate(this, &staticMetaObject, 1, _a); |
294 | } |
295 | QT_WARNING_POP |
296 | QT_END_MOC_NAMESPACE |
297 | |