9#include "../../../../src/qmltypes/qmlrichtext.h"
10#include <QtGui/qtextcursor.h>
11#include <QtCore/qmetatype.h>
13#include <QtCore/qtmochelpers.h>
18#include <QtCore/qxptype_traits.h>
19#if !defined(Q_MOC_OUTPUT_REVISION)
20#error "The header file 'qmlrichtext.h' doesn't include <QObject>."
21#elif Q_MOC_OUTPUT_REVISION != 68
22#error "This file was generated using the moc from 6.8.3. It"
23#error "cannot be used with the include files from this version of Qt."
24#error "(The moc has changed too much.)"
32QT_WARNING_DISABLE_DEPRECATED
33QT_WARNING_DISABLE_GCC(
"-Wuseless-cast")
35struct qt_meta_tag_ZN11QmlRichTextE_t {};
39#ifdef QT_MOC_HAS_STRINGDATA
40static constexpr auto qt_meta_stringdata_ZN11QmlRichTextE = QtMocHelpers::stringData(
44 "cursorPositionChanged",
45 "selectionStartChanged",
46 "selectionEndChanged",
96#error "qtmochelpers.h not found or too old."
99Q_CONSTINIT
static const uint qt_meta_data_ZN11QmlRichTextE[] = {
113 1, 0, 212, 2, 0x06, 15 ,
114 3, 0, 213, 2, 0x06, 16 ,
115 4, 0, 214, 2, 0x06, 17 ,
116 5, 0, 215, 2, 0x06, 18 ,
117 6, 0, 216, 2, 0x06, 19 ,
118 7, 0, 217, 2, 0x06, 20 ,
119 8, 0, 218, 2, 0x06, 21 ,
120 9, 0, 219, 2, 0x06, 22 ,
121 10, 0, 220, 2, 0x06, 23 ,
122 11, 0, 221, 2, 0x06, 24 ,
123 12, 0, 222, 2, 0x06, 25 ,
124 13, 0, 223, 2, 0x06, 26 ,
125 14, 0, 224, 2, 0x06, 27 ,
126 15, 1, 225, 2, 0x06, 28 ,
127 17, 0, 228, 2, 0x06, 30 ,
130 18, 1, 229, 2, 0x0a, 31 ,
131 20, 1, 232, 2, 0x0a, 33 ,
132 21, 1, 235, 2, 0x0a, 35 ,
133 22, 1, 238, 2, 0x0a, 37 ,
134 23, 1, 241, 2, 0x0a, 39 ,
135 24, 1, 244, 2, 0x0a, 41 ,
136 25, 1, 247, 2, 0x0a, 43 ,
137 26, 1, 250, 2, 0x0a, 45 ,
138 27, 2, 253, 2, 0x0a, 47 ,
139 27, 1, 258, 2, 0x2a, 50 ,
140 29, 3, 261, 2, 0x0a, 52 ,
141 29, 2, 268, 2, 0x2a, 56 ,
142 29, 1, 273, 2, 0x2a, 59 ,
143 29, 0, 276, 2, 0x2a, 61 ,
144 33, 0, 277, 2, 0x0a, 62 ,
145 34, 0, 278, 2, 0x0a, 63 ,
146 35, 0, 279, 2, 0x0a, 64 ,
147 36, 0, 280, 2, 0x0a, 65 ,
163 QMetaType::Void, QMetaType::QString, 16,
167 QMetaType::Void, QMetaType::Bool, 19,
168 QMetaType::Void, QMetaType::Bool, 19,
169 QMetaType::Void, QMetaType::Bool, 19,
170 QMetaType::Void, QMetaType::Int, 19,
171 QMetaType::Void, QMetaType::QColor, 19,
172 QMetaType::Void, QMetaType::QString, 19,
173 QMetaType::Void, QMetaType::QUrl, 19,
174 QMetaType::Void, QMetaType::QString, 19,
175 QMetaType::Void, QMetaType::QUrl, QMetaType::QString, 19, 28,
176 QMetaType::Void, QMetaType::QUrl, 19,
177 QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 30, 31, 32,
178 QMetaType::Void, QMetaType::Int, QMetaType::Int, 30, 31,
179 QMetaType::Void, QMetaType::Int, 30,
187 37, 0x80000000 | 38, 0x0001510b, uint(0), 0,
188 39, QMetaType::Int, 0x00015103, uint(1), 0,
189 40, QMetaType::Int, 0x00015103, uint(2), 0,
190 41, QMetaType::Int, 0x00015103, uint(3), 0,
191 42, QMetaType::QColor, 0x00015103, uint(5), 0,
192 43, QMetaType::QString, 0x00015103, uint(4), 0,
193 44, 0x80000000 | 45, 0x0001510b, uint(6), 0,
194 46, QMetaType::Bool, 0x00015103, uint(7), 0,
195 47, QMetaType::Bool, 0x00015103, uint(8), 0,
196 48, QMetaType::Bool, 0x00015103, uint(9), 0,
197 49, QMetaType::Int, 0x00015103, uint(10), 0,
198 50, QMetaType::QUrl, 0x00015103, uint(11), 0,
199 51, QMetaType::QString, 0x00015103, uint(12), 0,
200 52, QMetaType::QSizeF, 0x00015001, uint(14), 0,
209Q_CONSTINIT
const QMetaObject QmlRichText::staticMetaObject = { {
210 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
211 qt_meta_stringdata_ZN11QmlRichTextE.offsetsAndSizes,
212 qt_meta_data_ZN11QmlRichTextE,
215 qt_incomplete_metaTypeArray<qt_meta_tag_ZN11QmlRichTextE_t,
217 QtPrivate::TypeAndForceComplete<QQuickItem*, std::true_type>,
219 QtPrivate::TypeAndForceComplete<int, std::true_type>,
221 QtPrivate::TypeAndForceComplete<int, std::true_type>,
223 QtPrivate::TypeAndForceComplete<int, std::true_type>,
225 QtPrivate::TypeAndForceComplete<QColor, std::true_type>,
227 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
229 QtPrivate::TypeAndForceComplete<Qt::Alignment, std::true_type>,
231 QtPrivate::TypeAndForceComplete<bool, std::true_type>,
233 QtPrivate::TypeAndForceComplete<bool, std::true_type>,
235 QtPrivate::TypeAndForceComplete<bool, std::true_type>,
237 QtPrivate::TypeAndForceComplete<int, std::true_type>,
239 QtPrivate::TypeAndForceComplete<QUrl, std::true_type>,
241 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
243 QtPrivate::TypeAndForceComplete<QSizeF, std::true_type>,
245 QtPrivate::TypeAndForceComplete<QmlRichText, std::true_type>,
247 QtPrivate::TypeAndForceComplete<void, std::false_type>,
249 QtPrivate::TypeAndForceComplete<void, std::false_type>,
251 QtPrivate::TypeAndForceComplete<void, std::false_type>,
253 QtPrivate::TypeAndForceComplete<void, std::false_type>,
255 QtPrivate::TypeAndForceComplete<void, std::false_type>,
257 QtPrivate::TypeAndForceComplete<void, std::false_type>,
259 QtPrivate::TypeAndForceComplete<void, std::false_type>,
261 QtPrivate::TypeAndForceComplete<void, std::false_type>,
263 QtPrivate::TypeAndForceComplete<void, std::false_type>,
265 QtPrivate::TypeAndForceComplete<void, std::false_type>,
267 QtPrivate::TypeAndForceComplete<void, std::false_type>,
269 QtPrivate::TypeAndForceComplete<void, std::false_type>,
271 QtPrivate::TypeAndForceComplete<void, std::false_type>,
273 QtPrivate::TypeAndForceComplete<void, std::false_type>,
274 QtPrivate::TypeAndForceComplete<QString, std::false_type>,
276 QtPrivate::TypeAndForceComplete<void, std::false_type>,
278 QtPrivate::TypeAndForceComplete<void, std::false_type>,
279 QtPrivate::TypeAndForceComplete<bool, std::false_type>,
281 QtPrivate::TypeAndForceComplete<void, std::false_type>,
282 QtPrivate::TypeAndForceComplete<bool, std::false_type>,
284 QtPrivate::TypeAndForceComplete<void, std::false_type>,
285 QtPrivate::TypeAndForceComplete<bool, std::false_type>,
287 QtPrivate::TypeAndForceComplete<void, std::false_type>,
288 QtPrivate::TypeAndForceComplete<int, std::false_type>,
290 QtPrivate::TypeAndForceComplete<void, std::false_type>,
291 QtPrivate::TypeAndForceComplete<const QColor &, std::false_type>,
293 QtPrivate::TypeAndForceComplete<void, std::false_type>,
294 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
296 QtPrivate::TypeAndForceComplete<void, std::false_type>,
297 QtPrivate::TypeAndForceComplete<const QUrl &, std::false_type>,
299 QtPrivate::TypeAndForceComplete<void, std::false_type>,
300 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
302 QtPrivate::TypeAndForceComplete<void, std::false_type>,
303 QtPrivate::TypeAndForceComplete<const QUrl &, std::false_type>,
304 QtPrivate::TypeAndForceComplete<QString, std::false_type>,
306 QtPrivate::TypeAndForceComplete<void, std::false_type>,
307 QtPrivate::TypeAndForceComplete<const QUrl &, std::false_type>,
309 QtPrivate::TypeAndForceComplete<void, std::false_type>,
310 QtPrivate::TypeAndForceComplete<int, std::false_type>,
311 QtPrivate::TypeAndForceComplete<int, std::false_type>,
312 QtPrivate::TypeAndForceComplete<int, std::false_type>,
314 QtPrivate::TypeAndForceComplete<void, std::false_type>,
315 QtPrivate::TypeAndForceComplete<int, std::false_type>,
316 QtPrivate::TypeAndForceComplete<int, std::false_type>,
318 QtPrivate::TypeAndForceComplete<void, std::false_type>,
319 QtPrivate::TypeAndForceComplete<int, std::false_type>,
321 QtPrivate::TypeAndForceComplete<void, std::false_type>,
323 QtPrivate::TypeAndForceComplete<void, std::false_type>,
325 QtPrivate::TypeAndForceComplete<void, std::false_type>,
327 QtPrivate::TypeAndForceComplete<void, std::false_type>,
329 QtPrivate::TypeAndForceComplete<void, std::false_type>
334void QmlRichText::qt_static_metacall(QObject *_o, QMetaObject::Call _c,
int _id,
void **_a)
336 auto *_t =
static_cast<QmlRichText *
>(_o);
337 if (_c == QMetaObject::InvokeMetaMethod) {
339 case 0: _t->targetChanged();
break;
340 case 1: _t->cursorPositionChanged();
break;
341 case 2: _t->selectionStartChanged();
break;
342 case 3: _t->selectionEndChanged();
break;
343 case 4: _t->fontFamilyChanged();
break;
344 case 5: _t->textColorChanged();
break;
345 case 6: _t->alignmentChanged();
break;
346 case 7: _t->boldChanged();
break;
347 case 8: _t->italicChanged();
break;
348 case 9: _t->underlineChanged();
break;
349 case 10: _t->fontSizeChanged();
break;
350 case 11: _t->fileUrlChanged();
break;
351 case 12: _t->textChanged();
break;
352 case 13: _t->error((*
reinterpret_cast< std::add_pointer_t<QString>
>(_a[1])));
break;
353 case 14: _t->sizeChanged();
break;
354 case 15: _t->setBold((*
reinterpret_cast< std::add_pointer_t<bool>
>(_a[1])));
break;
355 case 16: _t->setItalic((*
reinterpret_cast< std::add_pointer_t<bool>
>(_a[1])));
break;
356 case 17: _t->setUnderline((*
reinterpret_cast< std::add_pointer_t<bool>
>(_a[1])));
break;
357 case 18: _t->setFontSize((*
reinterpret_cast< std::add_pointer_t<int>
>(_a[1])));
break;
358 case 19: _t->setTextColor((*
reinterpret_cast< std::add_pointer_t<QColor>
>(_a[1])));
break;
359 case 20: _t->setFontFamily((*
reinterpret_cast< std::add_pointer_t<QString>
>(_a[1])));
break;
360 case 21: _t->setFileUrl((*
reinterpret_cast< std::add_pointer_t<QUrl>
>(_a[1])));
break;
361 case 22: _t->setText((*
reinterpret_cast< std::add_pointer_t<QString>
>(_a[1])));
break;
362 case 23: _t->saveAs((*
reinterpret_cast< std::add_pointer_t<QUrl>
>(_a[1])),(*
reinterpret_cast< std::add_pointer_t<QString>
>(_a[2])));
break;
363 case 24: _t->saveAs((*
reinterpret_cast< std::add_pointer_t<QUrl>
>(_a[1])));
break;
364 case 25: _t->insertTable((*
reinterpret_cast< std::add_pointer_t<int>
>(_a[1])),(*
reinterpret_cast< std::add_pointer_t<int>
>(_a[2])),(*
reinterpret_cast< std::add_pointer_t<int>
>(_a[3])));
break;
365 case 26: _t->insertTable((*
reinterpret_cast< std::add_pointer_t<int>
>(_a[1])),(*
reinterpret_cast< std::add_pointer_t<int>
>(_a[2])));
break;
366 case 27: _t->insertTable((*
reinterpret_cast< std::add_pointer_t<int>
>(_a[1])));
break;
367 case 28: _t->insertTable();
break;
368 case 29: _t->indentLess();
break;
369 case 30: _t->indentMore();
break;
370 case 31: _t->pastePlain();
break;
371 case 32: _t->reset();
break;
375 if (_c == QMetaObject::IndexOfMethod) {
376 int *result =
reinterpret_cast<int *
>(_a[0]);
378 using _q_method_type = void (QmlRichText::*)();
379 if (_q_method_type _q_method = &QmlRichText::targetChanged; *
reinterpret_cast<_q_method_type *
>(_a[1]) == _q_method) {
385 using _q_method_type = void (QmlRichText::*)();
386 if (_q_method_type _q_method = &QmlRichText::cursorPositionChanged; *
reinterpret_cast<_q_method_type *
>(_a[1]) == _q_method) {
392 using _q_method_type = void (QmlRichText::*)();
393 if (_q_method_type _q_method = &QmlRichText::selectionStartChanged; *
reinterpret_cast<_q_method_type *
>(_a[1]) == _q_method) {
399 using _q_method_type = void (QmlRichText::*)();
400 if (_q_method_type _q_method = &QmlRichText::selectionEndChanged; *
reinterpret_cast<_q_method_type *
>(_a[1]) == _q_method) {
406 using _q_method_type = void (QmlRichText::*)();
407 if (_q_method_type _q_method = &QmlRichText::fontFamilyChanged; *
reinterpret_cast<_q_method_type *
>(_a[1]) == _q_method) {
413 using _q_method_type = void (QmlRichText::*)();
414 if (_q_method_type _q_method = &QmlRichText::textColorChanged; *
reinterpret_cast<_q_method_type *
>(_a[1]) == _q_method) {
420 using _q_method_type = void (QmlRichText::*)();
421 if (_q_method_type _q_method = &QmlRichText::alignmentChanged; *
reinterpret_cast<_q_method_type *
>(_a[1]) == _q_method) {
427 using _q_method_type = void (QmlRichText::*)();
428 if (_q_method_type _q_method = &QmlRichText::boldChanged; *
reinterpret_cast<_q_method_type *
>(_a[1]) == _q_method) {
434 using _q_method_type = void (QmlRichText::*)();
435 if (_q_method_type _q_method = &QmlRichText::italicChanged; *
reinterpret_cast<_q_method_type *
>(_a[1]) == _q_method) {
441 using _q_method_type = void (QmlRichText::*)();
442 if (_q_method_type _q_method = &QmlRichText::underlineChanged; *
reinterpret_cast<_q_method_type *
>(_a[1]) == _q_method) {
448 using _q_method_type = void (QmlRichText::*)();
449 if (_q_method_type _q_method = &QmlRichText::fontSizeChanged; *
reinterpret_cast<_q_method_type *
>(_a[1]) == _q_method) {
455 using _q_method_type = void (QmlRichText::*)();
456 if (_q_method_type _q_method = &QmlRichText::fileUrlChanged; *
reinterpret_cast<_q_method_type *
>(_a[1]) == _q_method) {
462 using _q_method_type = void (QmlRichText::*)();
463 if (_q_method_type _q_method = &QmlRichText::textChanged; *
reinterpret_cast<_q_method_type *
>(_a[1]) == _q_method) {
469 using _q_method_type = void (QmlRichText::*)(QString );
470 if (_q_method_type _q_method = &QmlRichText::error; *
reinterpret_cast<_q_method_type *
>(_a[1]) == _q_method) {
476 using _q_method_type = void (QmlRichText::*)();
477 if (_q_method_type _q_method = &QmlRichText::sizeChanged; *
reinterpret_cast<_q_method_type *
>(_a[1]) == _q_method) {
483 if (_c == QMetaObject::RegisterPropertyMetaType) {
485 default: *
reinterpret_cast<int*
>(_a[0]) = -1;
break;
487 *
reinterpret_cast<int*
>(_a[0]) = qRegisterMetaType< QQuickItem* >();
break;
490 if (_c == QMetaObject::ReadProperty) {
493 case 0: *
reinterpret_cast< QQuickItem**
>(_v) = _t->target();
break;
494 case 1: *
reinterpret_cast< int*
>(_v) = _t->cursorPosition();
break;
495 case 2: *
reinterpret_cast< int*
>(_v) = _t->selectionStart();
break;
496 case 3: *
reinterpret_cast< int*
>(_v) = _t->selectionEnd();
break;
497 case 4: *
reinterpret_cast< QColor*
>(_v) = _t->textColor();
break;
498 case 5: *
reinterpret_cast< QString*
>(_v) = _t->fontFamily();
break;
499 case 6: *
reinterpret_cast< Qt::Alignment*
>(_v) = _t->alignment();
break;
500 case 7: *
reinterpret_cast< bool*
>(_v) = _t->bold();
break;
501 case 8: *
reinterpret_cast< bool*
>(_v) = _t->italic();
break;
502 case 9: *
reinterpret_cast< bool*
>(_v) = _t->underline();
break;
503 case 10: *
reinterpret_cast< int*
>(_v) = _t->fontSize();
break;
504 case 11: *
reinterpret_cast< QUrl*
>(_v) = _t->fileUrl();
break;
505 case 12: *
reinterpret_cast< QString*
>(_v) = _t->text();
break;
506 case 13: *
reinterpret_cast< QSizeF*
>(_v) = _t->size();
break;
510 if (_c == QMetaObject::WriteProperty) {
513 case 0: _t->setTarget(*
reinterpret_cast< QQuickItem**
>(_v));
break;
514 case 1: _t->setCursorPosition(*
reinterpret_cast< int*
>(_v));
break;
515 case 2: _t->setSelectionStart(*
reinterpret_cast< int*
>(_v));
break;
516 case 3: _t->setSelectionEnd(*
reinterpret_cast< int*
>(_v));
break;
517 case 4: _t->setTextColor(*
reinterpret_cast< QColor*
>(_v));
break;
518 case 5: _t->setFontFamily(*
reinterpret_cast< QString*
>(_v));
break;
519 case 6: _t->setAlignment(*
reinterpret_cast< Qt::Alignment*
>(_v));
break;
520 case 7: _t->setBold(*
reinterpret_cast< bool*
>(_v));
break;
521 case 8: _t->setItalic(*
reinterpret_cast< bool*
>(_v));
break;
522 case 9: _t->setUnderline(*
reinterpret_cast< bool*
>(_v));
break;
523 case 10: _t->setFontSize(*
reinterpret_cast< int*
>(_v));
break;
524 case 11: _t->setFileUrl(*
reinterpret_cast< QUrl*
>(_v));
break;
525 case 12: _t->setText(*
reinterpret_cast< QString*
>(_v));
break;
531const QMetaObject *QmlRichText::metaObject()
const
533 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
536void *QmlRichText::qt_metacast(
const char *_clname)
538 if (!_clname)
return nullptr;
539 if (!strcmp(_clname, qt_meta_stringdata_ZN11QmlRichTextE.stringdata0))
540 return static_cast<void*
>(
this);
541 return QObject::qt_metacast(_clname);
544int QmlRichText::qt_metacall(QMetaObject::Call _c,
int _id,
void **_a)
546 _id = QObject::qt_metacall(_c, _id, _a);
549 if (_c == QMetaObject::InvokeMetaMethod) {
551 qt_static_metacall(
this, _c, _id, _a);
554 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
556 *
reinterpret_cast<QMetaType *
>(_a[0]) = QMetaType();
559 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
560 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
561 || _c == QMetaObject::RegisterPropertyMetaType) {
562 qt_static_metacall(
this, _c, _id, _a);
569void QmlRichText::targetChanged()
571 QMetaObject::activate(
this, &staticMetaObject, 0,
nullptr);
575void QmlRichText::cursorPositionChanged()
577 QMetaObject::activate(
this, &staticMetaObject, 1,
nullptr);
581void QmlRichText::selectionStartChanged()
583 QMetaObject::activate(
this, &staticMetaObject, 2,
nullptr);
587void QmlRichText::selectionEndChanged()
589 QMetaObject::activate(
this, &staticMetaObject, 3,
nullptr);
593void QmlRichText::fontFamilyChanged()
595 QMetaObject::activate(
this, &staticMetaObject, 4,
nullptr);
599void QmlRichText::textColorChanged()
601 QMetaObject::activate(
this, &staticMetaObject, 5,
nullptr);
605void QmlRichText::alignmentChanged()
607 QMetaObject::activate(
this, &staticMetaObject, 6,
nullptr);
611void QmlRichText::boldChanged()
613 QMetaObject::activate(
this, &staticMetaObject, 7,
nullptr);
617void QmlRichText::italicChanged()
619 QMetaObject::activate(
this, &staticMetaObject, 8,
nullptr);
623void QmlRichText::underlineChanged()
625 QMetaObject::activate(
this, &staticMetaObject, 9,
nullptr);
629void QmlRichText::fontSizeChanged()
631 QMetaObject::activate(
this, &staticMetaObject, 10,
nullptr);
635void QmlRichText::fileUrlChanged()
637 QMetaObject::activate(
this, &staticMetaObject, 11,
nullptr);
641void QmlRichText::textChanged()
643 QMetaObject::activate(
this, &staticMetaObject, 12,
nullptr);
647void QmlRichText::error(QString _t1)
649 void *_a[] = {
nullptr,
const_cast<void*
>(
reinterpret_cast<const void*
>(std::addressof(_t1))) };
650 QMetaObject::activate(
this, &staticMetaObject, 13, _a);
654void QmlRichText::sizeChanged()
656 QMetaObject::activate(
this, &staticMetaObject, 14,
nullptr);