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.7.2. 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")
36#ifdef QT_MOC_HAS_STRINGDATA
37struct qt_meta_stringdata_CLASSQmlRichTextENDCLASS_t {};
38constexpr auto qt_meta_stringdata_CLASSQmlRichTextENDCLASS = QtMocHelpers::stringData(
42 "cursorPositionChanged",
43 "selectionStartChanged",
44 "selectionEndChanged",
94#error "qtmochelpers.h not found or too old."
98Q_CONSTINIT
static const uint qt_meta_data_CLASSQmlRichTextENDCLASS[] = {
112 1, 0, 212, 2, 0x06, 15 ,
113 3, 0, 213, 2, 0x06, 16 ,
114 4, 0, 214, 2, 0x06, 17 ,
115 5, 0, 215, 2, 0x06, 18 ,
116 6, 0, 216, 2, 0x06, 19 ,
117 7, 0, 217, 2, 0x06, 20 ,
118 8, 0, 218, 2, 0x06, 21 ,
119 9, 0, 219, 2, 0x06, 22 ,
120 10, 0, 220, 2, 0x06, 23 ,
121 11, 0, 221, 2, 0x06, 24 ,
122 12, 0, 222, 2, 0x06, 25 ,
123 13, 0, 223, 2, 0x06, 26 ,
124 14, 0, 224, 2, 0x06, 27 ,
125 15, 1, 225, 2, 0x06, 28 ,
126 17, 0, 228, 2, 0x06, 30 ,
129 18, 1, 229, 2, 0x0a, 31 ,
130 20, 1, 232, 2, 0x0a, 33 ,
131 21, 1, 235, 2, 0x0a, 35 ,
132 22, 1, 238, 2, 0x0a, 37 ,
133 23, 1, 241, 2, 0x0a, 39 ,
134 24, 1, 244, 2, 0x0a, 41 ,
135 25, 1, 247, 2, 0x0a, 43 ,
136 26, 1, 250, 2, 0x0a, 45 ,
137 27, 2, 253, 2, 0x0a, 47 ,
138 27, 1, 258, 2, 0x2a, 50 ,
139 29, 3, 261, 2, 0x0a, 52 ,
140 29, 2, 268, 2, 0x2a, 56 ,
141 29, 1, 273, 2, 0x2a, 59 ,
142 29, 0, 276, 2, 0x2a, 61 ,
143 33, 0, 277, 2, 0x0a, 62 ,
144 34, 0, 278, 2, 0x0a, 63 ,
145 35, 0, 279, 2, 0x0a, 64 ,
146 36, 0, 280, 2, 0x0a, 65 ,
162 QMetaType::Void, QMetaType::QString, 16,
166 QMetaType::Void, QMetaType::Bool, 19,
167 QMetaType::Void, QMetaType::Bool, 19,
168 QMetaType::Void, QMetaType::Bool, 19,
169 QMetaType::Void, QMetaType::Int, 19,
170 QMetaType::Void, QMetaType::QColor, 19,
171 QMetaType::Void, QMetaType::QString, 19,
172 QMetaType::Void, QMetaType::QUrl, 19,
173 QMetaType::Void, QMetaType::QString, 19,
174 QMetaType::Void, QMetaType::QUrl, QMetaType::QString, 19, 28,
175 QMetaType::Void, QMetaType::QUrl, 19,
176 QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 30, 31, 32,
177 QMetaType::Void, QMetaType::Int, QMetaType::Int, 30, 31,
178 QMetaType::Void, QMetaType::Int, 30,
186 37, 0x80000000 | 38, 0x0001510b, uint(0), 0,
187 39, QMetaType::Int, 0x00015103, uint(1), 0,
188 40, QMetaType::Int, 0x00015103, uint(2), 0,
189 41, QMetaType::Int, 0x00015103, uint(3), 0,
190 42, QMetaType::QColor, 0x00015103, uint(5), 0,
191 43, QMetaType::QString, 0x00015103, uint(4), 0,
192 44, 0x80000000 | 45, 0x0001510b, uint(6), 0,
193 46, QMetaType::Bool, 0x00015103, uint(7), 0,
194 47, QMetaType::Bool, 0x00015103, uint(8), 0,
195 48, QMetaType::Bool, 0x00015103, uint(9), 0,
196 49, QMetaType::Int, 0x00015103, uint(10), 0,
197 50, QMetaType::QUrl, 0x00015103, uint(11), 0,
198 51, QMetaType::QString, 0x00015103, uint(12), 0,
199 52, QMetaType::QSizeF, 0x00015001, uint(14), 0,
208Q_CONSTINIT
const QMetaObject QmlRichText::staticMetaObject = { {
209 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
210 qt_meta_stringdata_CLASSQmlRichTextENDCLASS.offsetsAndSizes,
211 qt_meta_data_CLASSQmlRichTextENDCLASS,
214 qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSQmlRichTextENDCLASS_t,
216 QtPrivate::TypeAndForceComplete<QQuickItem*, std::true_type>,
218 QtPrivate::TypeAndForceComplete<int, std::true_type>,
220 QtPrivate::TypeAndForceComplete<int, std::true_type>,
222 QtPrivate::TypeAndForceComplete<int, std::true_type>,
224 QtPrivate::TypeAndForceComplete<QColor, std::true_type>,
226 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
228 QtPrivate::TypeAndForceComplete<Qt::Alignment, std::true_type>,
230 QtPrivate::TypeAndForceComplete<bool, std::true_type>,
232 QtPrivate::TypeAndForceComplete<bool, std::true_type>,
234 QtPrivate::TypeAndForceComplete<bool, std::true_type>,
236 QtPrivate::TypeAndForceComplete<int, std::true_type>,
238 QtPrivate::TypeAndForceComplete<QUrl, std::true_type>,
240 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
242 QtPrivate::TypeAndForceComplete<QSizeF, std::true_type>,
244 QtPrivate::TypeAndForceComplete<QmlRichText, std::true_type>,
246 QtPrivate::TypeAndForceComplete<void, std::false_type>,
248 QtPrivate::TypeAndForceComplete<void, std::false_type>,
250 QtPrivate::TypeAndForceComplete<void, std::false_type>,
252 QtPrivate::TypeAndForceComplete<void, std::false_type>,
254 QtPrivate::TypeAndForceComplete<void, std::false_type>,
256 QtPrivate::TypeAndForceComplete<void, std::false_type>,
258 QtPrivate::TypeAndForceComplete<void, std::false_type>,
260 QtPrivate::TypeAndForceComplete<void, std::false_type>,
262 QtPrivate::TypeAndForceComplete<void, std::false_type>,
264 QtPrivate::TypeAndForceComplete<void, std::false_type>,
266 QtPrivate::TypeAndForceComplete<void, std::false_type>,
268 QtPrivate::TypeAndForceComplete<void, std::false_type>,
270 QtPrivate::TypeAndForceComplete<void, std::false_type>,
272 QtPrivate::TypeAndForceComplete<void, std::false_type>,
273 QtPrivate::TypeAndForceComplete<QString, std::false_type>,
275 QtPrivate::TypeAndForceComplete<void, std::false_type>,
277 QtPrivate::TypeAndForceComplete<void, std::false_type>,
278 QtPrivate::TypeAndForceComplete<bool, std::false_type>,
280 QtPrivate::TypeAndForceComplete<void, std::false_type>,
281 QtPrivate::TypeAndForceComplete<bool, std::false_type>,
283 QtPrivate::TypeAndForceComplete<void, std::false_type>,
284 QtPrivate::TypeAndForceComplete<bool, std::false_type>,
286 QtPrivate::TypeAndForceComplete<void, std::false_type>,
287 QtPrivate::TypeAndForceComplete<int, std::false_type>,
289 QtPrivate::TypeAndForceComplete<void, std::false_type>,
290 QtPrivate::TypeAndForceComplete<const QColor &, std::false_type>,
292 QtPrivate::TypeAndForceComplete<void, std::false_type>,
293 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
295 QtPrivate::TypeAndForceComplete<void, std::false_type>,
296 QtPrivate::TypeAndForceComplete<const QUrl &, std::false_type>,
298 QtPrivate::TypeAndForceComplete<void, std::false_type>,
299 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
301 QtPrivate::TypeAndForceComplete<void, std::false_type>,
302 QtPrivate::TypeAndForceComplete<const QUrl &, std::false_type>,
303 QtPrivate::TypeAndForceComplete<QString, std::false_type>,
305 QtPrivate::TypeAndForceComplete<void, std::false_type>,
306 QtPrivate::TypeAndForceComplete<const QUrl &, std::false_type>,
308 QtPrivate::TypeAndForceComplete<void, std::false_type>,
309 QtPrivate::TypeAndForceComplete<int, std::false_type>,
310 QtPrivate::TypeAndForceComplete<int, std::false_type>,
311 QtPrivate::TypeAndForceComplete<int, std::false_type>,
313 QtPrivate::TypeAndForceComplete<void, std::false_type>,
314 QtPrivate::TypeAndForceComplete<int, std::false_type>,
315 QtPrivate::TypeAndForceComplete<int, std::false_type>,
317 QtPrivate::TypeAndForceComplete<void, std::false_type>,
318 QtPrivate::TypeAndForceComplete<int, std::false_type>,
320 QtPrivate::TypeAndForceComplete<void, std::false_type>,
322 QtPrivate::TypeAndForceComplete<void, std::false_type>,
324 QtPrivate::TypeAndForceComplete<void, std::false_type>,
326 QtPrivate::TypeAndForceComplete<void, std::false_type>,
328 QtPrivate::TypeAndForceComplete<void, std::false_type>
333void QmlRichText::qt_static_metacall(QObject *_o, QMetaObject::Call _c,
int _id,
void **_a)
335 if (_c == QMetaObject::InvokeMetaMethod) {
336 auto *_t =
static_cast<QmlRichText *
>(_o);
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;
374 }
else if (_c == QMetaObject::IndexOfMethod) {
375 int *result =
reinterpret_cast<int *
>(_a[0]);
377 using _t = void (QmlRichText::*)();
378 if (_t _q_method = &QmlRichText::targetChanged; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
384 using _t = void (QmlRichText::*)();
385 if (_t _q_method = &QmlRichText::cursorPositionChanged; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
391 using _t = void (QmlRichText::*)();
392 if (_t _q_method = &QmlRichText::selectionStartChanged; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
398 using _t = void (QmlRichText::*)();
399 if (_t _q_method = &QmlRichText::selectionEndChanged; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
405 using _t = void (QmlRichText::*)();
406 if (_t _q_method = &QmlRichText::fontFamilyChanged; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
412 using _t = void (QmlRichText::*)();
413 if (_t _q_method = &QmlRichText::textColorChanged; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
419 using _t = void (QmlRichText::*)();
420 if (_t _q_method = &QmlRichText::alignmentChanged; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
426 using _t = void (QmlRichText::*)();
427 if (_t _q_method = &QmlRichText::boldChanged; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
433 using _t = void (QmlRichText::*)();
434 if (_t _q_method = &QmlRichText::italicChanged; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
440 using _t = void (QmlRichText::*)();
441 if (_t _q_method = &QmlRichText::underlineChanged; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
447 using _t = void (QmlRichText::*)();
448 if (_t _q_method = &QmlRichText::fontSizeChanged; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
454 using _t = void (QmlRichText::*)();
455 if (_t _q_method = &QmlRichText::fileUrlChanged; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
461 using _t = void (QmlRichText::*)();
462 if (_t _q_method = &QmlRichText::textChanged; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
468 using _t = void (QmlRichText::*)(QString );
469 if (_t _q_method = &QmlRichText::error; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
475 using _t = void (QmlRichText::*)();
476 if (_t _q_method = &QmlRichText::sizeChanged; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
481 }
else if (_c == QMetaObject::RegisterPropertyMetaType) {
483 default: *
reinterpret_cast<int*
>(_a[0]) = -1;
break;
485 *
reinterpret_cast<int*
>(_a[0]) = qRegisterMetaType< QQuickItem* >();
break;
487 }
else if (_c == QMetaObject::ReadProperty) {
488 auto *_t =
static_cast<QmlRichText *
>(_o);
492 case 0: *
reinterpret_cast< QQuickItem**
>(_v) = _t->target();
break;
493 case 1: *
reinterpret_cast< int*
>(_v) = _t->cursorPosition();
break;
494 case 2: *
reinterpret_cast< int*
>(_v) = _t->selectionStart();
break;
495 case 3: *
reinterpret_cast< int*
>(_v) = _t->selectionEnd();
break;
496 case 4: *
reinterpret_cast< QColor*
>(_v) = _t->textColor();
break;
497 case 5: *
reinterpret_cast< QString*
>(_v) = _t->fontFamily();
break;
498 case 6: *
reinterpret_cast< Qt::Alignment*
>(_v) = _t->alignment();
break;
499 case 7: *
reinterpret_cast< bool*
>(_v) = _t->bold();
break;
500 case 8: *
reinterpret_cast< bool*
>(_v) = _t->italic();
break;
501 case 9: *
reinterpret_cast< bool*
>(_v) = _t->underline();
break;
502 case 10: *
reinterpret_cast< int*
>(_v) = _t->fontSize();
break;
503 case 11: *
reinterpret_cast< QUrl*
>(_v) = _t->fileUrl();
break;
504 case 12: *
reinterpret_cast< QString*
>(_v) = _t->text();
break;
505 case 13: *
reinterpret_cast< QSizeF*
>(_v) = _t->size();
break;
508 }
else if (_c == QMetaObject::WriteProperty) {
509 auto *_t =
static_cast<QmlRichText *
>(_o);
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;
528 }
else if (_c == QMetaObject::ResetProperty) {
529 }
else if (_c == QMetaObject::BindableProperty) {
533const QMetaObject *QmlRichText::metaObject()
const
535 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
538void *QmlRichText::qt_metacast(
const char *_clname)
540 if (!_clname)
return nullptr;
541 if (!strcmp(_clname, qt_meta_stringdata_CLASSQmlRichTextENDCLASS.stringdata0))
542 return static_cast<void*
>(
this);
543 return QObject::qt_metacast(_clname);
546int QmlRichText::qt_metacall(QMetaObject::Call _c,
int _id,
void **_a)
548 _id = QObject::qt_metacall(_c, _id, _a);
551 if (_c == QMetaObject::InvokeMetaMethod) {
553 qt_static_metacall(
this, _c, _id, _a);
555 }
else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
557 *
reinterpret_cast<QMetaType *
>(_a[0]) = QMetaType();
559 }
else 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);