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",
103 QtMocHelpers::UintData qt_methods {
105 QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
107 QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
109 QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
111 QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
113 QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
115 QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
117 QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
119 QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
121 QtMocHelpers::SignalData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
123 QtMocHelpers::SignalData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
125 QtMocHelpers::SignalData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
127 QtMocHelpers::SignalData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
129 QtMocHelpers::SignalData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
131 QtMocHelpers::SignalData<void()>(15, 2, QMC::AccessPublic, QMetaType::Void),
133 QtMocHelpers::SignalData<void(QString)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
134 { QMetaType::QString, 17 },
137 QtMocHelpers::SignalData<
void()>(18, 2, QMC::AccessPublic, QMetaType::Void),
139 QtMocHelpers::SlotData<
void(
bool)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
140 { QMetaType::Bool, 20 },
143 QtMocHelpers::SlotData<
void(
bool)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
144 { QMetaType::Bool, 20 },
147 QtMocHelpers::SlotData<
void(
bool)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
148 { QMetaType::Bool, 20 },
151 QtMocHelpers::SlotData<
void(
bool)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
152 { QMetaType::Bool, 20 },
155 QtMocHelpers::SlotData<
void(
int)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
156 { QMetaType::Int, 20 },
159 QtMocHelpers::SlotData<
void(
const QColor &)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
160 { 0x80000000 | 26, 20 },
163 QtMocHelpers::SlotData<
void(
const QString &)>(27, 2, QMC::AccessPublic, QMetaType::Void, {{
164 { QMetaType::QString, 20 },
167 QtMocHelpers::SlotData<
void(
const QUrl &)>(28, 2, QMC::AccessPublic, QMetaType::Void, {{
168 { 0x80000000 | 29, 20 },
171 QtMocHelpers::SlotData<
void(
const QString &)>(30, 2, QMC::AccessPublic, QMetaType::Void, {{
172 { QMetaType::QString, 20 },
175 QtMocHelpers::SlotData<
void(
const QUrl &, QString)>(31, 2, QMC::AccessPublic, QMetaType::Void, {{
176 { 0x80000000 | 29, 20 }, { QMetaType::QString, 32 },
179 QtMocHelpers::SlotData<
void(
const QUrl &)>(31, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
180 { 0x80000000 | 29, 20 },
183 QtMocHelpers::SlotData<
void(
int,
int,
int)>(33, 2, QMC::AccessPublic, QMetaType::Void, {{
184 { QMetaType::Int, 34 }, { QMetaType::Int, 35 }, { QMetaType::Int, 36 },
187 QtMocHelpers::SlotData<
void(
int,
int)>(33, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
188 { QMetaType::Int, 34 }, { QMetaType::Int, 35 },
191 QtMocHelpers::SlotData<
void(
int)>(33, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
192 { QMetaType::Int, 34 },
195 QtMocHelpers::SlotData<
void()>(33, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
197 QtMocHelpers::SlotData<
void()>(37, 2, QMC::AccessPublic, QMetaType::Void),
199 QtMocHelpers::SlotData<
void()>(38, 2, QMC::AccessPublic, QMetaType::Void),
201 QtMocHelpers::SlotData<
void()>(39, 2, QMC::AccessPublic, QMetaType::Void),
203 QtMocHelpers::SlotData<
void()>(40, 2, QMC::AccessPublic, QMetaType::Void),
205 QtMocHelpers::UintData qt_properties {
207 QtMocHelpers::PropertyData<QQuickItem*>(41, 0x80000000 | 42, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
209 QtMocHelpers::PropertyData<int>(43, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
211 QtMocHelpers::PropertyData<int>(44, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
213 QtMocHelpers::PropertyData<int>(45, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
215 QtMocHelpers::PropertyData<QColor>(46, 0x80000000 | 26, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 5),
217 QtMocHelpers::PropertyData<QString>(47, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
219 QtMocHelpers::PropertyData<Qt::Alignment>(48, 0x80000000 | 49, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 6),
221 QtMocHelpers::PropertyData<bool>(50, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 7),
223 QtMocHelpers::PropertyData<bool>(51, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 8),
225 QtMocHelpers::PropertyData<bool>(52, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 9),
227 QtMocHelpers::PropertyData<bool>(53, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 11),
229 QtMocHelpers::PropertyData<int>(54, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 10),
231 QtMocHelpers::PropertyData<QUrl>(55, 0x80000000 | 29, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 12),
233 QtMocHelpers::PropertyData<QString>(56, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 13),
235 QtMocHelpers::PropertyData<QSizeF>(57, 0x80000000 | 58, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 15),
237 QtMocHelpers::UintData qt_enums {
239 return QtMocHelpers::metaObjectData<QmlRichText, qt_meta_tag_ZN11QmlRichTextE_t>(QMC::MetaObjectFlag{}, qt_stringData,
240 qt_methods, qt_properties, qt_enums);
242Q_CONSTINIT
const QMetaObject QmlRichText::staticMetaObject = { {
243 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
244 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11QmlRichTextE_t>.stringdata,
245 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11QmlRichTextE_t>.data,
248 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11QmlRichTextE_t>.metaTypes,
252void QmlRichText::qt_static_metacall(QObject *_o, QMetaObject::Call _c,
int _id,
void **_a)
254 auto *_t =
static_cast<QmlRichText *
>(_o);
255 if (_c == QMetaObject::InvokeMetaMethod) {
257 case 0: _t->targetChanged();
break;
258 case 1: _t->cursorPositionChanged();
break;
259 case 2: _t->selectionStartChanged();
break;
260 case 3: _t->selectionEndChanged();
break;
261 case 4: _t->fontFamilyChanged();
break;
262 case 5: _t->textColorChanged();
break;
263 case 6: _t->alignmentChanged();
break;
264 case 7: _t->boldChanged();
break;
265 case 8: _t->italicChanged();
break;
266 case 9: _t->underlineChanged();
break;
267 case 10: _t->fontSizeChanged();
break;
268 case 11: _t->strikeoutChanged();
break;
269 case 12: _t->fileUrlChanged();
break;
270 case 13: _t->textChanged();
break;
271 case 14: _t->error((*
reinterpret_cast<std::add_pointer_t<QString>
>(_a[1])));
break;
272 case 15: _t->sizeChanged();
break;
273 case 16: _t->setBold((*
reinterpret_cast<std::add_pointer_t<bool>
>(_a[1])));
break;
274 case 17: _t->setItalic((*
reinterpret_cast<std::add_pointer_t<bool>
>(_a[1])));
break;
275 case 18: _t->setUnderline((*
reinterpret_cast<std::add_pointer_t<bool>
>(_a[1])));
break;
276 case 19: _t->setStrikeout((*
reinterpret_cast<std::add_pointer_t<bool>
>(_a[1])));
break;
277 case 20: _t->setFontSize((*
reinterpret_cast<std::add_pointer_t<int>
>(_a[1])));
break;
278 case 21: _t->setTextColor((*
reinterpret_cast<std::add_pointer_t<QColor>
>(_a[1])));
break;
279 case 22: _t->setFontFamily((*
reinterpret_cast<std::add_pointer_t<QString>
>(_a[1])));
break;
280 case 23: _t->setFileUrl((*
reinterpret_cast<std::add_pointer_t<QUrl>
>(_a[1])));
break;
281 case 24: _t->setText((*
reinterpret_cast<std::add_pointer_t<QString>
>(_a[1])));
break;
282 case 25: _t->saveAs((*
reinterpret_cast<std::add_pointer_t<QUrl>
>(_a[1])),(*
reinterpret_cast<std::add_pointer_t<QString>
>(_a[2])));
break;
283 case 26: _t->saveAs((*
reinterpret_cast<std::add_pointer_t<QUrl>
>(_a[1])));
break;
284 case 27: _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;
285 case 28: _t->insertTable((*
reinterpret_cast<std::add_pointer_t<int>
>(_a[1])),(*
reinterpret_cast<std::add_pointer_t<int>
>(_a[2])));
break;
286 case 29: _t->insertTable((*
reinterpret_cast<std::add_pointer_t<int>
>(_a[1])));
break;
287 case 30: _t->insertTable();
break;
288 case 31: _t->indentLess();
break;
289 case 32: _t->indentMore();
break;
290 case 33: _t->pastePlain();
break;
291 case 34: _t->reset();
break;
295 if (_c == QMetaObject::IndexOfMethod) {
296 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::targetChanged, 0))
298 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::cursorPositionChanged, 1))
300 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::selectionStartChanged, 2))
302 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::selectionEndChanged, 3))
304 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::fontFamilyChanged, 4))
306 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::textColorChanged, 5))
308 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::alignmentChanged, 6))
310 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::boldChanged, 7))
312 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::italicChanged, 8))
314 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::underlineChanged, 9))
316 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::fontSizeChanged, 10))
318 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::strikeoutChanged, 11))
320 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::fileUrlChanged, 12))
322 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::textChanged, 13))
324 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)(QString )>(_a, &QmlRichText::error, 14))
326 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::sizeChanged, 15))
329 if (_c == QMetaObject::RegisterPropertyMetaType) {
331 default: *
reinterpret_cast<int*
>(_a[0]) = -1;
break;
333 *
reinterpret_cast<int*
>(_a[0]) = qRegisterMetaType< QQuickItem* >();
break;
336 if (_c == QMetaObject::ReadProperty) {
339 case 0: *
reinterpret_cast<QQuickItem**
>(_v) = _t->target();
break;
340 case 1: *
reinterpret_cast<int*
>(_v) = _t->cursorPosition();
break;
341 case 2: *
reinterpret_cast<int*
>(_v) = _t->selectionStart();
break;
342 case 3: *
reinterpret_cast<int*
>(_v) = _t->selectionEnd();
break;
343 case 4: *
reinterpret_cast<QColor*
>(_v) = _t->textColor();
break;
344 case 5: *
reinterpret_cast<QString*
>(_v) = _t->fontFamily();
break;
345 case 6: *
reinterpret_cast<Qt::Alignment*
>(_v) = _t->alignment();
break;
346 case 7: *
reinterpret_cast<bool*
>(_v) = _t->bold();
break;
347 case 8: *
reinterpret_cast<bool*
>(_v) = _t->italic();
break;
348 case 9: *
reinterpret_cast<bool*
>(_v) = _t->underline();
break;
349 case 10: *
reinterpret_cast<bool*
>(_v) = _t->strikeout();
break;
350 case 11: *
reinterpret_cast<int*
>(_v) = _t->fontSize();
break;
351 case 12: *
reinterpret_cast<QUrl*
>(_v) = _t->fileUrl();
break;
352 case 13: *
reinterpret_cast<QString*
>(_v) = _t->text();
break;
353 case 14: *
reinterpret_cast<QSizeF*
>(_v) = _t->size();
break;
357 if (_c == QMetaObject::WriteProperty) {
360 case 0: _t->setTarget(*
reinterpret_cast<QQuickItem**
>(_v));
break;
361 case 1: _t->setCursorPosition(*
reinterpret_cast<int*
>(_v));
break;
362 case 2: _t->setSelectionStart(*
reinterpret_cast<int*
>(_v));
break;
363 case 3: _t->setSelectionEnd(*
reinterpret_cast<int*
>(_v));
break;
364 case 4: _t->setTextColor(*
reinterpret_cast<QColor*
>(_v));
break;
365 case 5: _t->setFontFamily(*
reinterpret_cast<QString*
>(_v));
break;
366 case 6: _t->setAlignment(*
reinterpret_cast<Qt::Alignment*
>(_v));
break;
367 case 7: _t->setBold(*
reinterpret_cast<bool*
>(_v));
break;
368 case 8: _t->setItalic(*
reinterpret_cast<bool*
>(_v));
break;
369 case 9: _t->setUnderline(*
reinterpret_cast<bool*
>(_v));
break;
370 case 10: _t->setStrikeout(*
reinterpret_cast<bool*
>(_v));
break;
371 case 11: _t->setFontSize(*
reinterpret_cast<int*
>(_v));
break;
372 case 12: _t->setFileUrl(*
reinterpret_cast<QUrl*
>(_v));
break;
373 case 13: _t->setText(*
reinterpret_cast<QString*
>(_v));
break;
379const QMetaObject *QmlRichText::metaObject()
const
381 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
384void *QmlRichText::qt_metacast(
const char *_clname)
386 if (!_clname)
return nullptr;
387 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11QmlRichTextE_t>.strings))
388 return static_cast<void*
>(
this);
389 return QObject::qt_metacast(_clname);
392int QmlRichText::qt_metacall(QMetaObject::Call _c,
int _id,
void **_a)
394 _id = QObject::qt_metacall(_c, _id, _a);
397 if (_c == QMetaObject::InvokeMetaMethod) {
399 qt_static_metacall(
this, _c, _id, _a);
402 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
404 *
reinterpret_cast<QMetaType *
>(_a[0]) = QMetaType();
407 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
408 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
409 || _c == QMetaObject::RegisterPropertyMetaType) {
410 qt_static_metacall(
this, _c, _id, _a);
417void QmlRichText::targetChanged()
419 QMetaObject::activate(
this, &staticMetaObject, 0,
nullptr);
423void QmlRichText::cursorPositionChanged()
425 QMetaObject::activate(
this, &staticMetaObject, 1,
nullptr);
429void QmlRichText::selectionStartChanged()
431 QMetaObject::activate(
this, &staticMetaObject, 2,
nullptr);
435void QmlRichText::selectionEndChanged()
437 QMetaObject::activate(
this, &staticMetaObject, 3,
nullptr);
441void QmlRichText::fontFamilyChanged()
443 QMetaObject::activate(
this, &staticMetaObject, 4,
nullptr);
447void QmlRichText::textColorChanged()
449 QMetaObject::activate(
this, &staticMetaObject, 5,
nullptr);
453void QmlRichText::alignmentChanged()
455 QMetaObject::activate(
this, &staticMetaObject, 6,
nullptr);
459void QmlRichText::boldChanged()
461 QMetaObject::activate(
this, &staticMetaObject, 7,
nullptr);
465void QmlRichText::italicChanged()
467 QMetaObject::activate(
this, &staticMetaObject, 8,
nullptr);
471void QmlRichText::underlineChanged()
473 QMetaObject::activate(
this, &staticMetaObject, 9,
nullptr);
477void QmlRichText::fontSizeChanged()
479 QMetaObject::activate(
this, &staticMetaObject, 10,
nullptr);
483void QmlRichText::strikeoutChanged()
485 QMetaObject::activate(
this, &staticMetaObject, 11,
nullptr);
489void QmlRichText::fileUrlChanged()
491 QMetaObject::activate(
this, &staticMetaObject, 12,
nullptr);
495void QmlRichText::textChanged()
497 QMetaObject::activate(
this, &staticMetaObject, 13,
nullptr);
501void QmlRichText::error(QString _t1)
503 QMetaObject::activate<void>(
this, &staticMetaObject, 14,
nullptr, _t1);
507void QmlRichText::sizeChanged()
509 QMetaObject::activate(
this, &staticMetaObject, 15,
nullptr);