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.1. 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",
100 QtMocHelpers::UintData qt_methods {
102 QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
104 QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
106 QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
108 QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
110 QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
112 QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
114 QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
116 QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
118 QtMocHelpers::SignalData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
120 QtMocHelpers::SignalData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
122 QtMocHelpers::SignalData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
124 QtMocHelpers::SignalData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
126 QtMocHelpers::SignalData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
128 QtMocHelpers::SignalData<void(QString)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
129 { QMetaType::QString, 16 },
132 QtMocHelpers::SignalData<
void()>(17, 2, QMC::AccessPublic, QMetaType::Void),
134 QtMocHelpers::SlotData<
void(
bool)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
135 { QMetaType::Bool, 19 },
138 QtMocHelpers::SlotData<
void(
bool)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
139 { QMetaType::Bool, 19 },
142 QtMocHelpers::SlotData<
void(
bool)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
143 { QMetaType::Bool, 19 },
146 QtMocHelpers::SlotData<
void(
int)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
147 { QMetaType::Int, 19 },
150 QtMocHelpers::SlotData<
void(
const QColor &)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
151 { 0x80000000 | 24, 19 },
154 QtMocHelpers::SlotData<
void(
const QString &)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
155 { QMetaType::QString, 19 },
158 QtMocHelpers::SlotData<
void(
const QUrl &)>(26, 2, QMC::AccessPublic, QMetaType::Void, {{
159 { 0x80000000 | 27, 19 },
162 QtMocHelpers::SlotData<
void(
const QString &)>(28, 2, QMC::AccessPublic, QMetaType::Void, {{
163 { QMetaType::QString, 19 },
166 QtMocHelpers::SlotData<
void(
const QUrl &, QString)>(29, 2, QMC::AccessPublic, QMetaType::Void, {{
167 { 0x80000000 | 27, 19 }, { QMetaType::QString, 30 },
170 QtMocHelpers::SlotData<
void(
const QUrl &)>(29, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
171 { 0x80000000 | 27, 19 },
174 QtMocHelpers::SlotData<
void(
int,
int,
int)>(31, 2, QMC::AccessPublic, QMetaType::Void, {{
175 { QMetaType::Int, 32 }, { QMetaType::Int, 33 }, { QMetaType::Int, 34 },
178 QtMocHelpers::SlotData<
void(
int,
int)>(31, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
179 { QMetaType::Int, 32 }, { QMetaType::Int, 33 },
182 QtMocHelpers::SlotData<
void(
int)>(31, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
183 { QMetaType::Int, 32 },
186 QtMocHelpers::SlotData<
void()>(31, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
188 QtMocHelpers::SlotData<
void()>(35, 2, QMC::AccessPublic, QMetaType::Void),
190 QtMocHelpers::SlotData<
void()>(36, 2, QMC::AccessPublic, QMetaType::Void),
192 QtMocHelpers::SlotData<
void()>(37, 2, QMC::AccessPublic, QMetaType::Void),
194 QtMocHelpers::SlotData<
void()>(38, 2, QMC::AccessPublic, QMetaType::Void),
196 QtMocHelpers::UintData qt_properties {
198 QtMocHelpers::PropertyData<QQuickItem*>(39, 0x80000000 | 40, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
200 QtMocHelpers::PropertyData<int>(41, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
202 QtMocHelpers::PropertyData<int>(42, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
204 QtMocHelpers::PropertyData<int>(43, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
206 QtMocHelpers::PropertyData<QColor>(44, 0x80000000 | 24, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 5),
208 QtMocHelpers::PropertyData<QString>(45, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
210 QtMocHelpers::PropertyData<Qt::Alignment>(46, 0x80000000 | 47, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 6),
212 QtMocHelpers::PropertyData<bool>(48, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 7),
214 QtMocHelpers::PropertyData<bool>(49, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 8),
216 QtMocHelpers::PropertyData<bool>(50, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 9),
218 QtMocHelpers::PropertyData<int>(51, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 10),
220 QtMocHelpers::PropertyData<QUrl>(52, 0x80000000 | 27, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 11),
222 QtMocHelpers::PropertyData<QString>(53, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 12),
224 QtMocHelpers::PropertyData<QSizeF>(54, 0x80000000 | 55, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 14),
226 QtMocHelpers::UintData qt_enums {
228 return QtMocHelpers::metaObjectData<QmlRichText, qt_meta_tag_ZN11QmlRichTextE_t>(QMC::MetaObjectFlag{}, qt_stringData,
229 qt_methods, qt_properties, qt_enums);
231Q_CONSTINIT
const QMetaObject QmlRichText::staticMetaObject = { {
232 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
233 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11QmlRichTextE_t>.stringdata,
234 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11QmlRichTextE_t>.data,
237 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11QmlRichTextE_t>.metaTypes,
241void QmlRichText::qt_static_metacall(QObject *_o, QMetaObject::Call _c,
int _id,
void **_a)
243 auto *_t =
static_cast<QmlRichText *
>(_o);
244 if (_c == QMetaObject::InvokeMetaMethod) {
246 case 0: _t->targetChanged();
break;
247 case 1: _t->cursorPositionChanged();
break;
248 case 2: _t->selectionStartChanged();
break;
249 case 3: _t->selectionEndChanged();
break;
250 case 4: _t->fontFamilyChanged();
break;
251 case 5: _t->textColorChanged();
break;
252 case 6: _t->alignmentChanged();
break;
253 case 7: _t->boldChanged();
break;
254 case 8: _t->italicChanged();
break;
255 case 9: _t->underlineChanged();
break;
256 case 10: _t->fontSizeChanged();
break;
257 case 11: _t->fileUrlChanged();
break;
258 case 12: _t->textChanged();
break;
259 case 13: _t->error((*
reinterpret_cast<std::add_pointer_t<QString>
>(_a[1])));
break;
260 case 14: _t->sizeChanged();
break;
261 case 15: _t->setBold((*
reinterpret_cast<std::add_pointer_t<bool>
>(_a[1])));
break;
262 case 16: _t->setItalic((*
reinterpret_cast<std::add_pointer_t<bool>
>(_a[1])));
break;
263 case 17: _t->setUnderline((*
reinterpret_cast<std::add_pointer_t<bool>
>(_a[1])));
break;
264 case 18: _t->setFontSize((*
reinterpret_cast<std::add_pointer_t<int>
>(_a[1])));
break;
265 case 19: _t->setTextColor((*
reinterpret_cast<std::add_pointer_t<QColor>
>(_a[1])));
break;
266 case 20: _t->setFontFamily((*
reinterpret_cast<std::add_pointer_t<QString>
>(_a[1])));
break;
267 case 21: _t->setFileUrl((*
reinterpret_cast<std::add_pointer_t<QUrl>
>(_a[1])));
break;
268 case 22: _t->setText((*
reinterpret_cast<std::add_pointer_t<QString>
>(_a[1])));
break;
269 case 23: _t->saveAs((*
reinterpret_cast<std::add_pointer_t<QUrl>
>(_a[1])),(*
reinterpret_cast<std::add_pointer_t<QString>
>(_a[2])));
break;
270 case 24: _t->saveAs((*
reinterpret_cast<std::add_pointer_t<QUrl>
>(_a[1])));
break;
271 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;
272 case 26: _t->insertTable((*
reinterpret_cast<std::add_pointer_t<int>
>(_a[1])),(*
reinterpret_cast<std::add_pointer_t<int>
>(_a[2])));
break;
273 case 27: _t->insertTable((*
reinterpret_cast<std::add_pointer_t<int>
>(_a[1])));
break;
274 case 28: _t->insertTable();
break;
275 case 29: _t->indentLess();
break;
276 case 30: _t->indentMore();
break;
277 case 31: _t->pastePlain();
break;
278 case 32: _t->reset();
break;
282 if (_c == QMetaObject::IndexOfMethod) {
283 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::targetChanged, 0))
285 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::cursorPositionChanged, 1))
287 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::selectionStartChanged, 2))
289 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::selectionEndChanged, 3))
291 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::fontFamilyChanged, 4))
293 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::textColorChanged, 5))
295 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::alignmentChanged, 6))
297 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::boldChanged, 7))
299 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::italicChanged, 8))
301 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::underlineChanged, 9))
303 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::fontSizeChanged, 10))
305 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::fileUrlChanged, 11))
307 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::textChanged, 12))
309 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)(QString )>(_a, &QmlRichText::error, 13))
311 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::sizeChanged, 14))
314 if (_c == QMetaObject::RegisterPropertyMetaType) {
316 default: *
reinterpret_cast<int*
>(_a[0]) = -1;
break;
318 *
reinterpret_cast<int*
>(_a[0]) = qRegisterMetaType< QQuickItem* >();
break;
321 if (_c == QMetaObject::ReadProperty) {
324 case 0: *
reinterpret_cast<QQuickItem**
>(_v) = _t->target();
break;
325 case 1: *
reinterpret_cast<int*
>(_v) = _t->cursorPosition();
break;
326 case 2: *
reinterpret_cast<int*
>(_v) = _t->selectionStart();
break;
327 case 3: *
reinterpret_cast<int*
>(_v) = _t->selectionEnd();
break;
328 case 4: *
reinterpret_cast<QColor*
>(_v) = _t->textColor();
break;
329 case 5: *
reinterpret_cast<QString*
>(_v) = _t->fontFamily();
break;
330 case 6: *
reinterpret_cast<Qt::Alignment*
>(_v) = _t->alignment();
break;
331 case 7: *
reinterpret_cast<bool*
>(_v) = _t->bold();
break;
332 case 8: *
reinterpret_cast<bool*
>(_v) = _t->italic();
break;
333 case 9: *
reinterpret_cast<bool*
>(_v) = _t->underline();
break;
334 case 10: *
reinterpret_cast<int*
>(_v) = _t->fontSize();
break;
335 case 11: *
reinterpret_cast<QUrl*
>(_v) = _t->fileUrl();
break;
336 case 12: *
reinterpret_cast<QString*
>(_v) = _t->text();
break;
337 case 13: *
reinterpret_cast<QSizeF*
>(_v) = _t->size();
break;
341 if (_c == QMetaObject::WriteProperty) {
344 case 0: _t->setTarget(*
reinterpret_cast<QQuickItem**
>(_v));
break;
345 case 1: _t->setCursorPosition(*
reinterpret_cast<int*
>(_v));
break;
346 case 2: _t->setSelectionStart(*
reinterpret_cast<int*
>(_v));
break;
347 case 3: _t->setSelectionEnd(*
reinterpret_cast<int*
>(_v));
break;
348 case 4: _t->setTextColor(*
reinterpret_cast<QColor*
>(_v));
break;
349 case 5: _t->setFontFamily(*
reinterpret_cast<QString*
>(_v));
break;
350 case 6: _t->setAlignment(*
reinterpret_cast<Qt::Alignment*
>(_v));
break;
351 case 7: _t->setBold(*
reinterpret_cast<bool*
>(_v));
break;
352 case 8: _t->setItalic(*
reinterpret_cast<bool*
>(_v));
break;
353 case 9: _t->setUnderline(*
reinterpret_cast<bool*
>(_v));
break;
354 case 10: _t->setFontSize(*
reinterpret_cast<int*
>(_v));
break;
355 case 11: _t->setFileUrl(*
reinterpret_cast<QUrl*
>(_v));
break;
356 case 12: _t->setText(*
reinterpret_cast<QString*
>(_v));
break;
362const QMetaObject *QmlRichText::metaObject()
const
364 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
367void *QmlRichText::qt_metacast(
const char *_clname)
369 if (!_clname)
return nullptr;
370 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11QmlRichTextE_t>.strings))
371 return static_cast<void*
>(
this);
372 return QObject::qt_metacast(_clname);
375int QmlRichText::qt_metacall(QMetaObject::Call _c,
int _id,
void **_a)
377 _id = QObject::qt_metacall(_c, _id, _a);
380 if (_c == QMetaObject::InvokeMetaMethod) {
382 qt_static_metacall(
this, _c, _id, _a);
385 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
387 *
reinterpret_cast<QMetaType *
>(_a[0]) = QMetaType();
390 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
391 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
392 || _c == QMetaObject::RegisterPropertyMetaType) {
393 qt_static_metacall(
this, _c, _id, _a);
400void QmlRichText::targetChanged()
402 QMetaObject::activate(
this, &staticMetaObject, 0,
nullptr);
406void QmlRichText::cursorPositionChanged()
408 QMetaObject::activate(
this, &staticMetaObject, 1,
nullptr);
412void QmlRichText::selectionStartChanged()
414 QMetaObject::activate(
this, &staticMetaObject, 2,
nullptr);
418void QmlRichText::selectionEndChanged()
420 QMetaObject::activate(
this, &staticMetaObject, 3,
nullptr);
424void QmlRichText::fontFamilyChanged()
426 QMetaObject::activate(
this, &staticMetaObject, 4,
nullptr);
430void QmlRichText::textColorChanged()
432 QMetaObject::activate(
this, &staticMetaObject, 5,
nullptr);
436void QmlRichText::alignmentChanged()
438 QMetaObject::activate(
this, &staticMetaObject, 6,
nullptr);
442void QmlRichText::boldChanged()
444 QMetaObject::activate(
this, &staticMetaObject, 7,
nullptr);
448void QmlRichText::italicChanged()
450 QMetaObject::activate(
this, &staticMetaObject, 8,
nullptr);
454void QmlRichText::underlineChanged()
456 QMetaObject::activate(
this, &staticMetaObject, 9,
nullptr);
460void QmlRichText::fontSizeChanged()
462 QMetaObject::activate(
this, &staticMetaObject, 10,
nullptr);
466void QmlRichText::fileUrlChanged()
468 QMetaObject::activate(
this, &staticMetaObject, 11,
nullptr);
472void QmlRichText::textChanged()
474 QMetaObject::activate(
this, &staticMetaObject, 12,
nullptr);
478void QmlRichText::error(QString _t1)
480 QMetaObject::activate<void>(
this, &staticMetaObject, 13,
nullptr, _t1);
484void QmlRichText::sizeChanged()
486 QMetaObject::activate(
this, &staticMetaObject, 14,
nullptr);