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 != 69
22#error "This file was generated using the moc from 6.10.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")
35struct qt_meta_tag_ZN11QmlRichTextE_t {};
38template <>
constexpr inline auto QmlRichText::qt_create_metaobjectdata<qt_meta_tag_ZN11QmlRichTextE_t>()
40 namespace QMC = QtMocConstants;
41 QtMocHelpers::StringRefStorage qt_stringData {
45 "cursorPositionChanged",
46 "selectionStartChanged",
47 "selectionEndChanged",
49 "fontStyleNameChanged",
106 QtMocHelpers::UintData qt_methods {
108 QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
110 QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
112 QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
114 QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
116 QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
118 QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
120 QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
122 QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
124 QtMocHelpers::SignalData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
126 QtMocHelpers::SignalData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
128 QtMocHelpers::SignalData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
130 QtMocHelpers::SignalData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
132 QtMocHelpers::SignalData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
134 QtMocHelpers::SignalData<void()>(15, 2, QMC::AccessPublic, QMetaType::Void),
136 QtMocHelpers::SignalData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
138 QtMocHelpers::SignalData<void(QString)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
139 { QMetaType::QString, 18 },
142 QtMocHelpers::SignalData<
void()>(19, 2, QMC::AccessPublic, QMetaType::Void),
144 QtMocHelpers::SlotData<
void(
bool)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
145 { QMetaType::Bool, 21 },
148 QtMocHelpers::SlotData<
void(
bool)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
149 { QMetaType::Bool, 21 },
152 QtMocHelpers::SlotData<
void(
bool)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
153 { QMetaType::Bool, 21 },
156 QtMocHelpers::SlotData<
void(
bool)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
157 { QMetaType::Bool, 21 },
160 QtMocHelpers::SlotData<
void(
int)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
161 { QMetaType::Int, 21 },
164 QtMocHelpers::SlotData<
void(
const QColor &)>(26, 2, QMC::AccessPublic, QMetaType::Void, {{
165 { 0x80000000 | 27, 21 },
168 QtMocHelpers::SlotData<
void(
const QString &)>(28, 2, QMC::AccessPublic, QMetaType::Void, {{
169 { QMetaType::QString, 21 },
172 QtMocHelpers::SlotData<
void(
const QString &)>(29, 2, QMC::AccessPublic, QMetaType::Void, {{
173 { QMetaType::QString, 21 },
176 QtMocHelpers::SlotData<
void(
const QUrl &)>(30, 2, QMC::AccessPublic, QMetaType::Void, {{
177 { 0x80000000 | 31, 21 },
180 QtMocHelpers::SlotData<
void(
const QString &)>(32, 2, QMC::AccessPublic, QMetaType::Void, {{
181 { QMetaType::QString, 21 },
184 QtMocHelpers::SlotData<
void(
const QUrl &, QString)>(33, 2, QMC::AccessPublic, QMetaType::Void, {{
185 { 0x80000000 | 31, 21 }, { QMetaType::QString, 34 },
188 QtMocHelpers::SlotData<
void(
const QUrl &)>(33, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
189 { 0x80000000 | 31, 21 },
192 QtMocHelpers::SlotData<
void(
int,
int,
int)>(35, 2, QMC::AccessPublic, QMetaType::Void, {{
193 { QMetaType::Int, 36 }, { QMetaType::Int, 37 }, { QMetaType::Int, 38 },
196 QtMocHelpers::SlotData<
void(
int,
int)>(35, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
197 { QMetaType::Int, 36 }, { QMetaType::Int, 37 },
200 QtMocHelpers::SlotData<
void(
int)>(35, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
201 { QMetaType::Int, 36 },
204 QtMocHelpers::SlotData<
void()>(35, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
206 QtMocHelpers::SlotData<
void()>(39, 2, QMC::AccessPublic, QMetaType::Void),
208 QtMocHelpers::SlotData<
void()>(40, 2, QMC::AccessPublic, QMetaType::Void),
210 QtMocHelpers::SlotData<
void()>(41, 2, QMC::AccessPublic, QMetaType::Void),
212 QtMocHelpers::SlotData<
void()>(42, 2, QMC::AccessPublic, QMetaType::Void),
214 QtMocHelpers::UintData qt_properties {
216 QtMocHelpers::PropertyData<QQuickItem*>(43, 0x80000000 | 44, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
218 QtMocHelpers::PropertyData<int>(45, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
220 QtMocHelpers::PropertyData<int>(46, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
222 QtMocHelpers::PropertyData<int>(47, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
224 QtMocHelpers::PropertyData<QColor>(48, 0x80000000 | 27, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 6),
226 QtMocHelpers::PropertyData<QString>(49, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
228 QtMocHelpers::PropertyData<QString>(50, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5),
230 QtMocHelpers::PropertyData<Qt::Alignment>(51, 0x80000000 | 52, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 7),
232 QtMocHelpers::PropertyData<bool>(53, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 8),
234 QtMocHelpers::PropertyData<bool>(54, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 9),
236 QtMocHelpers::PropertyData<bool>(55, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 10),
238 QtMocHelpers::PropertyData<bool>(56, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 12),
240 QtMocHelpers::PropertyData<int>(57, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 11),
242 QtMocHelpers::PropertyData<QUrl>(58, 0x80000000 | 31, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 13),
244 QtMocHelpers::PropertyData<QString>(59, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 14),
246 QtMocHelpers::PropertyData<QSizeF>(60, 0x80000000 | 61, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 16),
248 QtMocHelpers::UintData qt_enums {
250 return QtMocHelpers::metaObjectData<QmlRichText, qt_meta_tag_ZN11QmlRichTextE_t>(QMC::MetaObjectFlag{}, qt_stringData,
251 qt_methods, qt_properties, qt_enums);
253Q_CONSTINIT
const QMetaObject QmlRichText::staticMetaObject = { {
254 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
255 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11QmlRichTextE_t>.stringdata,
256 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11QmlRichTextE_t>.data,
259 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11QmlRichTextE_t>.metaTypes,
263void QmlRichText::qt_static_metacall(QObject *_o, QMetaObject::Call _c,
int _id,
void **_a)
265 auto *_t =
static_cast<QmlRichText *
>(_o);
266 if (_c == QMetaObject::InvokeMetaMethod) {
268 case 0: _t->targetChanged();
break;
269 case 1: _t->cursorPositionChanged();
break;
270 case 2: _t->selectionStartChanged();
break;
271 case 3: _t->selectionEndChanged();
break;
272 case 4: _t->fontFamilyChanged();
break;
273 case 5: _t->fontStyleNameChanged();
break;
274 case 6: _t->textColorChanged();
break;
275 case 7: _t->alignmentChanged();
break;
276 case 8: _t->boldChanged();
break;
277 case 9: _t->italicChanged();
break;
278 case 10: _t->underlineChanged();
break;
279 case 11: _t->fontSizeChanged();
break;
280 case 12: _t->strikeoutChanged();
break;
281 case 13: _t->fileUrlChanged();
break;
282 case 14: _t->textChanged();
break;
283 case 15: _t->error((*
reinterpret_cast<std::add_pointer_t<QString>
>(_a[1])));
break;
284 case 16: _t->sizeChanged();
break;
285 case 17: _t->setBold((*
reinterpret_cast<std::add_pointer_t<bool>
>(_a[1])));
break;
286 case 18: _t->setItalic((*
reinterpret_cast<std::add_pointer_t<bool>
>(_a[1])));
break;
287 case 19: _t->setUnderline((*
reinterpret_cast<std::add_pointer_t<bool>
>(_a[1])));
break;
288 case 20: _t->setStrikeout((*
reinterpret_cast<std::add_pointer_t<bool>
>(_a[1])));
break;
289 case 21: _t->setFontSize((*
reinterpret_cast<std::add_pointer_t<int>
>(_a[1])));
break;
290 case 22: _t->setTextColor((*
reinterpret_cast<std::add_pointer_t<QColor>
>(_a[1])));
break;
291 case 23: _t->setFontFamily((*
reinterpret_cast<std::add_pointer_t<QString>
>(_a[1])));
break;
292 case 24: _t->setFontStyleName((*
reinterpret_cast<std::add_pointer_t<QString>
>(_a[1])));
break;
293 case 25: _t->setFileUrl((*
reinterpret_cast<std::add_pointer_t<QUrl>
>(_a[1])));
break;
294 case 26: _t->setText((*
reinterpret_cast<std::add_pointer_t<QString>
>(_a[1])));
break;
295 case 27: _t->saveAs((*
reinterpret_cast<std::add_pointer_t<QUrl>
>(_a[1])),(*
reinterpret_cast<std::add_pointer_t<QString>
>(_a[2])));
break;
296 case 28: _t->saveAs((*
reinterpret_cast<std::add_pointer_t<QUrl>
>(_a[1])));
break;
297 case 29: _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;
298 case 30: _t->insertTable((*
reinterpret_cast<std::add_pointer_t<int>
>(_a[1])),(*
reinterpret_cast<std::add_pointer_t<int>
>(_a[2])));
break;
299 case 31: _t->insertTable((*
reinterpret_cast<std::add_pointer_t<int>
>(_a[1])));
break;
300 case 32: _t->insertTable();
break;
301 case 33: _t->indentLess();
break;
302 case 34: _t->indentMore();
break;
303 case 35: _t->pastePlain();
break;
304 case 36: _t->reset();
break;
308 if (_c == QMetaObject::IndexOfMethod) {
309 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::targetChanged, 0))
311 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::cursorPositionChanged, 1))
313 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::selectionStartChanged, 2))
315 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::selectionEndChanged, 3))
317 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::fontFamilyChanged, 4))
319 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::fontStyleNameChanged, 5))
321 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::textColorChanged, 6))
323 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::alignmentChanged, 7))
325 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::boldChanged, 8))
327 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::italicChanged, 9))
329 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::underlineChanged, 10))
331 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::fontSizeChanged, 11))
333 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::strikeoutChanged, 12))
335 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::fileUrlChanged, 13))
337 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::textChanged, 14))
339 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)(QString )>(_a, &QmlRichText::error, 15))
341 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::sizeChanged, 16))
344 if (_c == QMetaObject::RegisterPropertyMetaType) {
346 default: *
reinterpret_cast<int*
>(_a[0]) = -1;
break;
348 *
reinterpret_cast<int*
>(_a[0]) = qRegisterMetaType< QQuickItem* >();
break;
351 if (_c == QMetaObject::ReadProperty) {
354 case 0: *
reinterpret_cast<QQuickItem**
>(_v) = _t->target();
break;
355 case 1: *
reinterpret_cast<int*
>(_v) = _t->cursorPosition();
break;
356 case 2: *
reinterpret_cast<int*
>(_v) = _t->selectionStart();
break;
357 case 3: *
reinterpret_cast<int*
>(_v) = _t->selectionEnd();
break;
358 case 4: *
reinterpret_cast<QColor*
>(_v) = _t->textColor();
break;
359 case 5: *
reinterpret_cast<QString*
>(_v) = _t->fontFamily();
break;
360 case 6: *
reinterpret_cast<QString*
>(_v) = _t->fontStyleName();
break;
361 case 7: *
reinterpret_cast<Qt::Alignment*
>(_v) = _t->alignment();
break;
362 case 8: *
reinterpret_cast<bool*
>(_v) = _t->bold();
break;
363 case 9: *
reinterpret_cast<bool*
>(_v) = _t->italic();
break;
364 case 10: *
reinterpret_cast<bool*
>(_v) = _t->underline();
break;
365 case 11: *
reinterpret_cast<bool*
>(_v) = _t->strikeout();
break;
366 case 12: *
reinterpret_cast<int*
>(_v) = _t->fontSize();
break;
367 case 13: *
reinterpret_cast<QUrl*
>(_v) = _t->fileUrl();
break;
368 case 14: *
reinterpret_cast<QString*
>(_v) = _t->text();
break;
369 case 15: *
reinterpret_cast<QSizeF*
>(_v) = _t->size();
break;
373 if (_c == QMetaObject::WriteProperty) {
376 case 0: _t->setTarget(*
reinterpret_cast<QQuickItem**
>(_v));
break;
377 case 1: _t->setCursorPosition(*
reinterpret_cast<int*
>(_v));
break;
378 case 2: _t->setSelectionStart(*
reinterpret_cast<int*
>(_v));
break;
379 case 3: _t->setSelectionEnd(*
reinterpret_cast<int*
>(_v));
break;
380 case 4: _t->setTextColor(*
reinterpret_cast<QColor*
>(_v));
break;
381 case 5: _t->setFontFamily(*
reinterpret_cast<QString*
>(_v));
break;
382 case 6: _t->setFontStyleName(*
reinterpret_cast<QString*
>(_v));
break;
383 case 7: _t->setAlignment(*
reinterpret_cast<Qt::Alignment*
>(_v));
break;
384 case 8: _t->setBold(*
reinterpret_cast<bool*
>(_v));
break;
385 case 9: _t->setItalic(*
reinterpret_cast<bool*
>(_v));
break;
386 case 10: _t->setUnderline(*
reinterpret_cast<bool*
>(_v));
break;
387 case 11: _t->setStrikeout(*
reinterpret_cast<bool*
>(_v));
break;
388 case 12: _t->setFontSize(*
reinterpret_cast<int*
>(_v));
break;
389 case 13: _t->setFileUrl(*
reinterpret_cast<QUrl*
>(_v));
break;
390 case 14: _t->setText(*
reinterpret_cast<QString*
>(_v));
break;
396const QMetaObject *QmlRichText::metaObject()
const
398 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
401void *QmlRichText::qt_metacast(
const char *_clname)
403 if (!_clname)
return nullptr;
404 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11QmlRichTextE_t>.strings))
405 return static_cast<void*
>(
this);
406 return QObject::qt_metacast(_clname);
409int QmlRichText::qt_metacall(QMetaObject::Call _c,
int _id,
void **_a)
411 _id = QObject::qt_metacall(_c, _id, _a);
414 if (_c == QMetaObject::InvokeMetaMethod) {
416 qt_static_metacall(
this, _c, _id, _a);
419 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
421 *
reinterpret_cast<QMetaType *
>(_a[0]) = QMetaType();
424 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
425 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
426 || _c == QMetaObject::RegisterPropertyMetaType) {
427 qt_static_metacall(
this, _c, _id, _a);
434void QmlRichText::targetChanged()
436 QMetaObject::activate(
this, &staticMetaObject, 0,
nullptr);
440void QmlRichText::cursorPositionChanged()
442 QMetaObject::activate(
this, &staticMetaObject, 1,
nullptr);
446void QmlRichText::selectionStartChanged()
448 QMetaObject::activate(
this, &staticMetaObject, 2,
nullptr);
452void QmlRichText::selectionEndChanged()
454 QMetaObject::activate(
this, &staticMetaObject, 3,
nullptr);
458void QmlRichText::fontFamilyChanged()
460 QMetaObject::activate(
this, &staticMetaObject, 4,
nullptr);
464void QmlRichText::fontStyleNameChanged()
466 QMetaObject::activate(
this, &staticMetaObject, 5,
nullptr);
470void QmlRichText::textColorChanged()
472 QMetaObject::activate(
this, &staticMetaObject, 6,
nullptr);
476void QmlRichText::alignmentChanged()
478 QMetaObject::activate(
this, &staticMetaObject, 7,
nullptr);
482void QmlRichText::boldChanged()
484 QMetaObject::activate(
this, &staticMetaObject, 8,
nullptr);
488void QmlRichText::italicChanged()
490 QMetaObject::activate(
this, &staticMetaObject, 9,
nullptr);
494void QmlRichText::underlineChanged()
496 QMetaObject::activate(
this, &staticMetaObject, 10,
nullptr);
500void QmlRichText::fontSizeChanged()
502 QMetaObject::activate(
this, &staticMetaObject, 11,
nullptr);
506void QmlRichText::strikeoutChanged()
508 QMetaObject::activate(
this, &staticMetaObject, 12,
nullptr);
512void QmlRichText::fileUrlChanged()
514 QMetaObject::activate(
this, &staticMetaObject, 13,
nullptr);
518void QmlRichText::textChanged()
520 QMetaObject::activate(
this, &staticMetaObject, 14,
nullptr);
524void QmlRichText::error(QString _t1)
526 QMetaObject::activate<void>(
this, &staticMetaObject, 15,
nullptr, _t1);
530void QmlRichText::sizeChanged()
532 QMetaObject::activate(
this, &staticMetaObject, 16,
nullptr);