1/****************************************************************************
2** Meta object code from reading C++ file 'qtextbrowser.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/qtextbrowser.h"
11#include <QtGui/qtextcursor.h>
12#include <QtCore/qbytearray.h>
13#include <QtCore/qmetatype.h>
14#if !defined(Q_MOC_OUTPUT_REVISION)
15#error "The header file 'qtextbrowser.h' doesn't include <QObject>."
16#elif Q_MOC_OUTPUT_REVISION != 68
17#error "This file was generated using the moc from 6.0.0. It"
18#error "cannot be used with the include files from this version of Qt."
19#error "(The moc has changed too much.)"
20#endif
21
22QT_BEGIN_MOC_NAMESPACE
23QT_WARNING_PUSH
24QT_WARNING_DISABLE_DEPRECATED
25struct qt_meta_stringdata_QTextBrowser_t {
26 const uint offsetsAndSize[48];
27 char stringdata0[294];
28};
29#define QT_MOC_LITERAL(ofs, len) \
30 uint(offsetof(qt_meta_stringdata_QTextBrowser_t, stringdata0) + ofs), len
31static const qt_meta_stringdata_QTextBrowser_t qt_meta_stringdata_QTextBrowser = {
32 {
33QT_MOC_LITERAL(0, 12), // "QTextBrowser"
34QT_MOC_LITERAL(13, 17), // "backwardAvailable"
35QT_MOC_LITERAL(31, 0), // ""
36QT_MOC_LITERAL(32, 16), // "forwardAvailable"
37QT_MOC_LITERAL(49, 14), // "historyChanged"
38QT_MOC_LITERAL(64, 13), // "sourceChanged"
39QT_MOC_LITERAL(78, 11), // "highlighted"
40QT_MOC_LITERAL(90, 13), // "anchorClicked"
41QT_MOC_LITERAL(104, 9), // "setSource"
42QT_MOC_LITERAL(114, 4), // "name"
43QT_MOC_LITERAL(119, 27), // "QTextDocument::ResourceType"
44QT_MOC_LITERAL(147, 4), // "type"
45QT_MOC_LITERAL(152, 8), // "backward"
46QT_MOC_LITERAL(161, 7), // "forward"
47QT_MOC_LITERAL(169, 4), // "home"
48QT_MOC_LITERAL(174, 6), // "reload"
49QT_MOC_LITERAL(181, 19), // "_q_documentModified"
50QT_MOC_LITERAL(201, 17), // "_q_activateAnchor"
51QT_MOC_LITERAL(219, 16), // "_q_highlightLink"
52QT_MOC_LITERAL(236, 6), // "source"
53QT_MOC_LITERAL(243, 10), // "sourceType"
54QT_MOC_LITERAL(254, 11), // "searchPaths"
55QT_MOC_LITERAL(266, 17), // "openExternalLinks"
56QT_MOC_LITERAL(284, 9) // "openLinks"
57
58 },
59 "QTextBrowser\0backwardAvailable\0\0"
60 "forwardAvailable\0historyChanged\0"
61 "sourceChanged\0highlighted\0anchorClicked\0"
62 "setSource\0name\0QTextDocument::ResourceType\0"
63 "type\0backward\0forward\0home\0reload\0"
64 "_q_documentModified\0_q_activateAnchor\0"
65 "_q_highlightLink\0source\0sourceType\0"
66 "searchPaths\0openExternalLinks\0openLinks"
67};
68#undef QT_MOC_LITERAL
69
70static const uint qt_meta_data_QTextBrowser[] = {
71
72 // content:
73 9, // revision
74 0, // classname
75 0, 0, // classinfo
76 15, 14, // methods
77 5, 139, // properties
78 0, 0, // enums/sets
79 0, 0, // constructors
80 0, // flags
81 6, // signalCount
82
83 // signals: name, argc, parameters, tag, flags, initial metatype offsets
84 1, 1, 104, 2, 0x06, 5 /* Public */,
85 3, 1, 107, 2, 0x06, 7 /* Public */,
86 4, 0, 110, 2, 0x06, 9 /* Public */,
87 5, 1, 111, 2, 0x06, 10 /* Public */,
88 6, 1, 114, 2, 0x06, 12 /* Public */,
89 7, 1, 117, 2, 0x06, 14 /* Public */,
90
91 // slots: name, argc, parameters, tag, flags, initial metatype offsets
92 8, 2, 120, 2, 0x0a, 16 /* Public */,
93 8, 1, 125, 2, 0x2a, 19 /* Public | MethodCloned */,
94 12, 0, 128, 2, 0x0a, 21 /* Public */,
95 13, 0, 129, 2, 0x0a, 22 /* Public */,
96 14, 0, 130, 2, 0x0a, 23 /* Public */,
97 15, 0, 131, 2, 0x0a, 24 /* Public */,
98 16, 0, 132, 2, 0x08, 25 /* Private */,
99 17, 1, 133, 2, 0x08, 26 /* Private */,
100 18, 1, 136, 2, 0x08, 28 /* Private */,
101
102 // signals: parameters
103 QMetaType::Void, QMetaType::Bool, 2,
104 QMetaType::Void, QMetaType::Bool, 2,
105 QMetaType::Void,
106 QMetaType::Void, QMetaType::QUrl, 2,
107 QMetaType::Void, QMetaType::QUrl, 2,
108 QMetaType::Void, QMetaType::QUrl, 2,
109
110 // slots: parameters
111 QMetaType::Void, QMetaType::QUrl, 0x80000000 | 10, 9, 11,
112 QMetaType::Void, QMetaType::QUrl, 9,
113 QMetaType::Void,
114 QMetaType::Void,
115 QMetaType::Void,
116 QMetaType::Void,
117 QMetaType::Void,
118 QMetaType::Void, QMetaType::QString, 2,
119 QMetaType::Void, QMetaType::QString, 2,
120
121 // properties: name, type, flags
122 19, QMetaType::QUrl, 0x00015103, uint(-1), 0,
123 20, 0x80000000 | 10, 0x00015009, uint(-1), 0,
124 21, QMetaType::QStringList, 0x00015103, uint(-1), 0,
125 22, QMetaType::Bool, 0x00015103, uint(-1), 0,
126 23, QMetaType::Bool, 0x00015103, uint(-1), 0,
127
128 0 // eod
129};
130
131void QTextBrowser::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
132{
133 if (_c == QMetaObject::InvokeMetaMethod) {
134 Q_ASSERT(staticMetaObject.cast(_o));
135 auto *_t = static_cast<QTextBrowser *>(_o);
136 Q_UNUSED(_t)
137 switch (_id) {
138 case 0: _t->backwardAvailable((*reinterpret_cast< bool(*)>(_a[1]))); break;
139 case 1: _t->forwardAvailable((*reinterpret_cast< bool(*)>(_a[1]))); break;
140 case 2: _t->historyChanged(); break;
141 case 3: _t->sourceChanged((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;
142 case 4: _t->highlighted((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;
143 case 5: _t->anchorClicked((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;
144 case 6: _t->setSource((*reinterpret_cast< const QUrl(*)>(_a[1])),(*reinterpret_cast< QTextDocument::ResourceType(*)>(_a[2]))); break;
145 case 7: _t->setSource((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;
146 case 8: _t->backward(); break;
147 case 9: _t->forward(); break;
148 case 10: _t->home(); break;
149 case 11: _t->reload(); break;
150 case 12: _t->d_func()->_q_documentModified(); break;
151 case 13: _t->d_func()->_q_activateAnchor((*reinterpret_cast< const QString(*)>(_a[1]))); break;
152 case 14: _t->d_func()->_q_highlightLink((*reinterpret_cast< const QString(*)>(_a[1]))); break;
153 default: ;
154 }
155 } else if (_c == QMetaObject::IndexOfMethod) {
156 int *result = reinterpret_cast<int *>(_a[0]);
157 {
158 using _t = void (QTextBrowser::*)(bool );
159 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextBrowser::backwardAvailable)) {
160 *result = 0;
161 return;
162 }
163 }
164 {
165 using _t = void (QTextBrowser::*)(bool );
166 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextBrowser::forwardAvailable)) {
167 *result = 1;
168 return;
169 }
170 }
171 {
172 using _t = void (QTextBrowser::*)();
173 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextBrowser::historyChanged)) {
174 *result = 2;
175 return;
176 }
177 }
178 {
179 using _t = void (QTextBrowser::*)(const QUrl & );
180 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextBrowser::sourceChanged)) {
181 *result = 3;
182 return;
183 }
184 }
185 {
186 using _t = void (QTextBrowser::*)(const QUrl & );
187 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextBrowser::highlighted)) {
188 *result = 4;
189 return;
190 }
191 }
192 {
193 using _t = void (QTextBrowser::*)(const QUrl & );
194 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextBrowser::anchorClicked)) {
195 *result = 5;
196 return;
197 }
198 }
199 }
200#ifndef QT_NO_PROPERTIES
201 else if (_c == QMetaObject::ReadProperty) {
202 Q_ASSERT(staticMetaObject.cast(_o));
203 auto *_t = static_cast<QTextBrowser *>(_o);
204 Q_UNUSED(_t)
205 void *_v = _a[0];
206 switch (_id) {
207 case 0: *reinterpret_cast< QUrl*>(_v) = _t->source(); break;
208 case 1: *reinterpret_cast< QTextDocument::ResourceType*>(_v) = _t->sourceType(); break;
209 case 2: *reinterpret_cast< QStringList*>(_v) = _t->searchPaths(); break;
210 case 3: *reinterpret_cast< bool*>(_v) = _t->openExternalLinks(); break;
211 case 4: *reinterpret_cast< bool*>(_v) = _t->openLinks(); break;
212 default: break;
213 }
214 } else if (_c == QMetaObject::WriteProperty) {
215 Q_ASSERT(staticMetaObject.cast(_o));
216 auto *_t = static_cast<QTextBrowser *>(_o);
217 Q_UNUSED(_t)
218 void *_v = _a[0];
219 switch (_id) {
220 case 0: _t->setSource(*reinterpret_cast< QUrl*>(_v)); break;
221 case 2: _t->setSearchPaths(*reinterpret_cast< QStringList*>(_v)); break;
222 case 3: _t->setOpenExternalLinks(*reinterpret_cast< bool*>(_v)); break;
223 case 4: _t->setOpenLinks(*reinterpret_cast< bool*>(_v)); break;
224 default: break;
225 }
226 } else if (_c == QMetaObject::ResetProperty) {
227 } else if (_c == QMetaObject::BindableProperty) {
228 }
229#endif // QT_NO_PROPERTIES
230}
231
232static const QMetaObject::SuperData qt_meta_extradata_QTextBrowser[] = {
233 QMetaObject::SuperData::link<QTextDocument::staticMetaObject>(),
234 nullptr
235};
236
237const QMetaObject QTextBrowser::staticMetaObject = { {
238 QMetaObject::SuperData::link<QTextEdit::staticMetaObject>(),
239 qt_meta_stringdata_QTextBrowser.offsetsAndSize,
240 qt_meta_data_QTextBrowser,
241 qt_static_metacall,
242 qt_meta_extradata_QTextBrowser,
243qt_incomplete_metaTypeArray<qt_meta_stringdata_QTextBrowser_t
244, QtPrivate::TypeAndForceComplete<QUrl, std::true_type>, QtPrivate::TypeAndForceComplete<QTextDocument::ResourceType, std::true_type>, QtPrivate::TypeAndForceComplete<QStringList, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QUrl &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QUrl &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QUrl &, std::false_type>
245, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QUrl &, std::false_type>, QtPrivate::TypeAndForceComplete<QTextDocument::ResourceType, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QUrl &, 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<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>
246
247
248>,
249 nullptr
250} };
251
252
253const QMetaObject *QTextBrowser::metaObject() const
254{
255 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
256}
257
258void *QTextBrowser::qt_metacast(const char *_clname)
259{
260 if (!_clname) return nullptr;
261 if (!strcmp(_clname, qt_meta_stringdata_QTextBrowser.stringdata0))
262 return static_cast<void*>(this);
263 return QTextEdit::qt_metacast(_clname);
264}
265
266int QTextBrowser::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
267{
268 _id = QTextEdit::qt_metacall(_c, _id, _a);
269 if (_id < 0)
270 return _id;
271 if (_c == QMetaObject::InvokeMetaMethod) {
272 if (_id < 15)
273 qt_static_metacall(this, _c, _id, _a);
274 _id -= 15;
275 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
276 if (_id < 15)
277 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
278 _id -= 15;
279 }
280#ifndef QT_NO_PROPERTIES
281 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
282 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
283 || _c == QMetaObject::RegisterPropertyMetaType) {
284 qt_static_metacall(this, _c, _id, _a);
285 _id -= 5;
286 }
287#endif // QT_NO_PROPERTIES
288 return _id;
289}
290
291// SIGNAL 0
292void QTextBrowser::backwardAvailable(bool _t1)
293{
294 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
295 QMetaObject::activate(this, &staticMetaObject, 0, _a);
296}
297
298// SIGNAL 1
299void QTextBrowser::forwardAvailable(bool _t1)
300{
301 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
302 QMetaObject::activate(this, &staticMetaObject, 1, _a);
303}
304
305// SIGNAL 2
306void QTextBrowser::historyChanged()
307{
308 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
309}
310
311// SIGNAL 3
312void QTextBrowser::sourceChanged(const QUrl & _t1)
313{
314 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
315 QMetaObject::activate(this, &staticMetaObject, 3, _a);
316}
317
318// SIGNAL 4
319void QTextBrowser::highlighted(const QUrl & _t1)
320{
321 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
322 QMetaObject::activate(this, &staticMetaObject, 4, _a);
323}
324
325// SIGNAL 5
326void QTextBrowser::anchorClicked(const QUrl & _t1)
327{
328 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
329 QMetaObject::activate(this, &staticMetaObject, 5, _a);
330}
331QT_WARNING_POP
332QT_END_MOC_NAMESPACE
333