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.9.0. 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",
97 QtMocHelpers::UintData qt_methods {
99 QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
101 QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
103 QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
105 QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
107 QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
109 QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
111 QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
113 QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
115 QtMocHelpers::SignalData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
117 QtMocHelpers::SignalData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
119 QtMocHelpers::SignalData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
121 QtMocHelpers::SignalData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
123 QtMocHelpers::SignalData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
125 QtMocHelpers::SignalData<void(QString)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
126 { QMetaType::QString, 16 },
129 QtMocHelpers::SignalData<
void()>(17, 2, QMC::AccessPublic, QMetaType::Void),
131 QtMocHelpers::SlotData<
void(
bool)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
132 { QMetaType::Bool, 19 },
135 QtMocHelpers::SlotData<
void(
bool)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
136 { QMetaType::Bool, 19 },
139 QtMocHelpers::SlotData<
void(
bool)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
140 { QMetaType::Bool, 19 },
143 QtMocHelpers::SlotData<
void(
int)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
144 { QMetaType::Int, 19 },
147 QtMocHelpers::SlotData<
void(
const QColor &)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
148 { QMetaType::QColor, 19 },
151 QtMocHelpers::SlotData<
void(
const QString &)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
152 { QMetaType::QString, 19 },
155 QtMocHelpers::SlotData<
void(
const QUrl &)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
156 { QMetaType::QUrl, 19 },
159 QtMocHelpers::SlotData<
void(
const QString &)>(26, 2, QMC::AccessPublic, QMetaType::Void, {{
160 { QMetaType::QString, 19 },
163 QtMocHelpers::SlotData<
void(
const QUrl &, QString)>(27, 2, QMC::AccessPublic, QMetaType::Void, {{
164 { QMetaType::QUrl, 19 }, { QMetaType::QString, 28 },
167 QtMocHelpers::SlotData<
void(
const QUrl &)>(27, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
168 { QMetaType::QUrl, 19 },
171 QtMocHelpers::SlotData<
void(
int,
int,
int)>(29, 2, QMC::AccessPublic, QMetaType::Void, {{
172 { QMetaType::Int, 30 }, { QMetaType::Int, 31 }, { QMetaType::Int, 32 },
175 QtMocHelpers::SlotData<
void(
int,
int)>(29, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
176 { QMetaType::Int, 30 }, { QMetaType::Int, 31 },
179 QtMocHelpers::SlotData<
void(
int)>(29, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
180 { QMetaType::Int, 30 },
183 QtMocHelpers::SlotData<
void()>(29, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
185 QtMocHelpers::SlotData<
void()>(33, 2, QMC::AccessPublic, QMetaType::Void),
187 QtMocHelpers::SlotData<
void()>(34, 2, QMC::AccessPublic, QMetaType::Void),
189 QtMocHelpers::SlotData<
void()>(35, 2, QMC::AccessPublic, QMetaType::Void),
191 QtMocHelpers::SlotData<
void()>(36, 2, QMC::AccessPublic, QMetaType::Void),
193 QtMocHelpers::UintData qt_properties {
195 QtMocHelpers::PropertyData<QQuickItem*>(37, 0x80000000 | 38, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
197 QtMocHelpers::PropertyData<int>(39, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
199 QtMocHelpers::PropertyData<int>(40, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
201 QtMocHelpers::PropertyData<int>(41, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
203 QtMocHelpers::PropertyData<QColor>(42, QMetaType::QColor, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5),
205 QtMocHelpers::PropertyData<QString>(43, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
207 QtMocHelpers::PropertyData<Qt::Alignment>(44, 0x80000000 | 45, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 6),
209 QtMocHelpers::PropertyData<bool>(46, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 7),
211 QtMocHelpers::PropertyData<bool>(47, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 8),
213 QtMocHelpers::PropertyData<bool>(48, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 9),
215 QtMocHelpers::PropertyData<int>(49, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 10),
217 QtMocHelpers::PropertyData<QUrl>(50, QMetaType::QUrl, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 11),
219 QtMocHelpers::PropertyData<QString>(51, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 12),
221 QtMocHelpers::PropertyData<QSizeF>(52, QMetaType::QSizeF, QMC::DefaultPropertyFlags, 14),
223 QtMocHelpers::UintData qt_enums {
225 return QtMocHelpers::metaObjectData<QmlRichText, qt_meta_tag_ZN11QmlRichTextE_t>(QMC::MetaObjectFlag{}, qt_stringData,
226 qt_methods, qt_properties, qt_enums);
228Q_CONSTINIT
const QMetaObject QmlRichText::staticMetaObject = { {
229 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
230 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11QmlRichTextE_t>.stringdata,
231 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11QmlRichTextE_t>.data,
234 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11QmlRichTextE_t>.metaTypes,
238void QmlRichText::qt_static_metacall(QObject *_o, QMetaObject::Call _c,
int _id,
void **_a)
240 auto *_t =
static_cast<QmlRichText *
>(_o);
241 if (_c == QMetaObject::InvokeMetaMethod) {
243 case 0: _t->targetChanged();
break;
244 case 1: _t->cursorPositionChanged();
break;
245 case 2: _t->selectionStartChanged();
break;
246 case 3: _t->selectionEndChanged();
break;
247 case 4: _t->fontFamilyChanged();
break;
248 case 5: _t->textColorChanged();
break;
249 case 6: _t->alignmentChanged();
break;
250 case 7: _t->boldChanged();
break;
251 case 8: _t->italicChanged();
break;
252 case 9: _t->underlineChanged();
break;
253 case 10: _t->fontSizeChanged();
break;
254 case 11: _t->fileUrlChanged();
break;
255 case 12: _t->textChanged();
break;
256 case 13: _t->error((*
reinterpret_cast< std::add_pointer_t<QString>
>(_a[1])));
break;
257 case 14: _t->sizeChanged();
break;
258 case 15: _t->setBold((*
reinterpret_cast< std::add_pointer_t<bool>
>(_a[1])));
break;
259 case 16: _t->setItalic((*
reinterpret_cast< std::add_pointer_t<bool>
>(_a[1])));
break;
260 case 17: _t->setUnderline((*
reinterpret_cast< std::add_pointer_t<bool>
>(_a[1])));
break;
261 case 18: _t->setFontSize((*
reinterpret_cast< std::add_pointer_t<int>
>(_a[1])));
break;
262 case 19: _t->setTextColor((*
reinterpret_cast< std::add_pointer_t<QColor>
>(_a[1])));
break;
263 case 20: _t->setFontFamily((*
reinterpret_cast< std::add_pointer_t<QString>
>(_a[1])));
break;
264 case 21: _t->setFileUrl((*
reinterpret_cast< std::add_pointer_t<QUrl>
>(_a[1])));
break;
265 case 22: _t->setText((*
reinterpret_cast< std::add_pointer_t<QString>
>(_a[1])));
break;
266 case 23: _t->saveAs((*
reinterpret_cast< std::add_pointer_t<QUrl>
>(_a[1])),(*
reinterpret_cast< std::add_pointer_t<QString>
>(_a[2])));
break;
267 case 24: _t->saveAs((*
reinterpret_cast< std::add_pointer_t<QUrl>
>(_a[1])));
break;
268 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;
269 case 26: _t->insertTable((*
reinterpret_cast< std::add_pointer_t<int>
>(_a[1])),(*
reinterpret_cast< std::add_pointer_t<int>
>(_a[2])));
break;
270 case 27: _t->insertTable((*
reinterpret_cast< std::add_pointer_t<int>
>(_a[1])));
break;
271 case 28: _t->insertTable();
break;
272 case 29: _t->indentLess();
break;
273 case 30: _t->indentMore();
break;
274 case 31: _t->pastePlain();
break;
275 case 32: _t->reset();
break;
279 if (_c == QMetaObject::IndexOfMethod) {
280 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::targetChanged, 0))
282 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::cursorPositionChanged, 1))
284 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::selectionStartChanged, 2))
286 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::selectionEndChanged, 3))
288 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::fontFamilyChanged, 4))
290 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::textColorChanged, 5))
292 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::alignmentChanged, 6))
294 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::boldChanged, 7))
296 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::italicChanged, 8))
298 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::underlineChanged, 9))
300 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::fontSizeChanged, 10))
302 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::fileUrlChanged, 11))
304 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::textChanged, 12))
306 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)(QString )>(_a, &QmlRichText::error, 13))
308 if (QtMocHelpers::indexOfMethod<
void (QmlRichText::*)()>(_a, &QmlRichText::sizeChanged, 14))
311 if (_c == QMetaObject::RegisterPropertyMetaType) {
313 default: *
reinterpret_cast<int*
>(_a[0]) = -1;
break;
315 *
reinterpret_cast<int*
>(_a[0]) = qRegisterMetaType< QQuickItem* >();
break;
318 if (_c == QMetaObject::ReadProperty) {
321 case 0: *
reinterpret_cast<QQuickItem**
>(_v) = _t->target();
break;
322 case 1: *
reinterpret_cast<int*
>(_v) = _t->cursorPosition();
break;
323 case 2: *
reinterpret_cast<int*
>(_v) = _t->selectionStart();
break;
324 case 3: *
reinterpret_cast<int*
>(_v) = _t->selectionEnd();
break;
325 case 4: *
reinterpret_cast<QColor*
>(_v) = _t->textColor();
break;
326 case 5: *
reinterpret_cast<QString*
>(_v) = _t->fontFamily();
break;
327 case 6: *
reinterpret_cast<Qt::Alignment*
>(_v) = _t->alignment();
break;
328 case 7: *
reinterpret_cast<bool*
>(_v) = _t->bold();
break;
329 case 8: *
reinterpret_cast<bool*
>(_v) = _t->italic();
break;
330 case 9: *
reinterpret_cast<bool*
>(_v) = _t->underline();
break;
331 case 10: *
reinterpret_cast<int*
>(_v) = _t->fontSize();
break;
332 case 11: *
reinterpret_cast<QUrl*
>(_v) = _t->fileUrl();
break;
333 case 12: *
reinterpret_cast<QString*
>(_v) = _t->text();
break;
334 case 13: *
reinterpret_cast<QSizeF*
>(_v) = _t->size();
break;
338 if (_c == QMetaObject::WriteProperty) {
341 case 0: _t->setTarget(*
reinterpret_cast<QQuickItem**
>(_v));
break;
342 case 1: _t->setCursorPosition(*
reinterpret_cast<int*
>(_v));
break;
343 case 2: _t->setSelectionStart(*
reinterpret_cast<int*
>(_v));
break;
344 case 3: _t->setSelectionEnd(*
reinterpret_cast<int*
>(_v));
break;
345 case 4: _t->setTextColor(*
reinterpret_cast<QColor*
>(_v));
break;
346 case 5: _t->setFontFamily(*
reinterpret_cast<QString*
>(_v));
break;
347 case 6: _t->setAlignment(*
reinterpret_cast<Qt::Alignment*
>(_v));
break;
348 case 7: _t->setBold(*
reinterpret_cast<bool*
>(_v));
break;
349 case 8: _t->setItalic(*
reinterpret_cast<bool*
>(_v));
break;
350 case 9: _t->setUnderline(*
reinterpret_cast<bool*
>(_v));
break;
351 case 10: _t->setFontSize(*
reinterpret_cast<int*
>(_v));
break;
352 case 11: _t->setFileUrl(*
reinterpret_cast<QUrl*
>(_v));
break;
353 case 12: _t->setText(*
reinterpret_cast<QString*
>(_v));
break;
359const QMetaObject *QmlRichText::metaObject()
const
361 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
364void *QmlRichText::qt_metacast(
const char *_clname)
366 if (!_clname)
return nullptr;
367 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11QmlRichTextE_t>.strings))
368 return static_cast<void*
>(
this);
369 return QObject::qt_metacast(_clname);
372int QmlRichText::qt_metacall(QMetaObject::Call _c,
int _id,
void **_a)
374 _id = QObject::qt_metacall(_c, _id, _a);
377 if (_c == QMetaObject::InvokeMetaMethod) {
379 qt_static_metacall(
this, _c, _id, _a);
382 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
384 *
reinterpret_cast<QMetaType *
>(_a[0]) = QMetaType();
387 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
388 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
389 || _c == QMetaObject::RegisterPropertyMetaType) {
390 qt_static_metacall(
this, _c, _id, _a);
397void QmlRichText::targetChanged()
399 QMetaObject::activate(
this, &staticMetaObject, 0,
nullptr);
403void QmlRichText::cursorPositionChanged()
405 QMetaObject::activate(
this, &staticMetaObject, 1,
nullptr);
409void QmlRichText::selectionStartChanged()
411 QMetaObject::activate(
this, &staticMetaObject, 2,
nullptr);
415void QmlRichText::selectionEndChanged()
417 QMetaObject::activate(
this, &staticMetaObject, 3,
nullptr);
421void QmlRichText::fontFamilyChanged()
423 QMetaObject::activate(
this, &staticMetaObject, 4,
nullptr);
427void QmlRichText::textColorChanged()
429 QMetaObject::activate(
this, &staticMetaObject, 5,
nullptr);
433void QmlRichText::alignmentChanged()
435 QMetaObject::activate(
this, &staticMetaObject, 6,
nullptr);
439void QmlRichText::boldChanged()
441 QMetaObject::activate(
this, &staticMetaObject, 7,
nullptr);
445void QmlRichText::italicChanged()
447 QMetaObject::activate(
this, &staticMetaObject, 8,
nullptr);
451void QmlRichText::underlineChanged()
453 QMetaObject::activate(
this, &staticMetaObject, 9,
nullptr);
457void QmlRichText::fontSizeChanged()
459 QMetaObject::activate(
this, &staticMetaObject, 10,
nullptr);
463void QmlRichText::fileUrlChanged()
465 QMetaObject::activate(
this, &staticMetaObject, 11,
nullptr);
469void QmlRichText::textChanged()
471 QMetaObject::activate(
this, &staticMetaObject, 12,
nullptr);
475void QmlRichText::error(QString _t1)
477 QMetaObject::activate<void>(
this, &staticMetaObject, 13,
nullptr, _t1);
481void QmlRichText::sizeChanged()
483 QMetaObject::activate(
this, &staticMetaObject, 14,
nullptr);