1/****************************************************************************
2** Meta object code from reading C++ file 'qtextdocumentlayout_p.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.0.0)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include <memory>
10#include "text/qtextdocumentlayout_p.h"
11#include <QtGui/qtextcursor.h>
12#include <QtCore/qbytearray.h>
13#include <QtCore/qmetatype.h>
14#if !defined(Q_MOC_OUTPUT_REVISION)
15#error "The header file 'qtextdocumentlayout_p.h' doesn't include <QObject>."
16#elif Q_MOC_OUTPUT_REVISION != 68
17#error "This file was generated using the moc from 6.0.0. It"
18#error "cannot be used with the include files from this version of Qt."
19#error "(The moc has changed too much.)"
20#endif
21
22QT_BEGIN_MOC_NAMESPACE
23QT_WARNING_PUSH
24QT_WARNING_DISABLE_DEPRECATED
25struct qt_meta_stringdata_QTextDocumentLayout_t {
26 const uint offsetsAndSize[8];
27 char stringdata0[63];
28};
29#define QT_MOC_LITERAL(ofs, len) \
30 uint(offsetof(qt_meta_stringdata_QTextDocumentLayout_t, stringdata0) + ofs), len
31static const qt_meta_stringdata_QTextDocumentLayout_t qt_meta_stringdata_QTextDocumentLayout = {
32 {
33QT_MOC_LITERAL(0, 19), // "QTextDocumentLayout"
34QT_MOC_LITERAL(20, 11), // "cursorWidth"
35QT_MOC_LITERAL(32, 10), // "idealWidth"
36QT_MOC_LITERAL(43, 19) // "contentHasAlignment"
37
38 },
39 "QTextDocumentLayout\0cursorWidth\0"
40 "idealWidth\0contentHasAlignment"
41};
42#undef QT_MOC_LITERAL
43
44static const uint qt_meta_data_QTextDocumentLayout[] = {
45
46 // content:
47 9, // revision
48 0, // classname
49 0, 0, // classinfo
50 0, 0, // methods
51 3, 14, // properties
52 0, 0, // enums/sets
53 0, 0, // constructors
54 0, // flags
55 0, // signalCount
56
57 // properties: name, type, flags
58 1, QMetaType::Int, 0x00015103, uint(-1), 0,
59 2, QMetaType::QReal, 0x00015001, uint(-1), 0,
60 3, QMetaType::Bool, 0x00015001, uint(-1), 0,
61
62 0 // eod
63};
64
65void QTextDocumentLayout::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
66{
67
68#ifndef QT_NO_PROPERTIES
69 if (_c == QMetaObject::ReadProperty) {
70 Q_ASSERT(staticMetaObject.cast(_o));
71 auto *_t = static_cast<QTextDocumentLayout *>(_o);
72 Q_UNUSED(_t)
73 void *_v = _a[0];
74 switch (_id) {
75 case 0: *reinterpret_cast< int*>(_v) = _t->cursorWidth(); break;
76 case 1: *reinterpret_cast< qreal*>(_v) = _t->idealWidth(); break;
77 case 2: *reinterpret_cast< bool*>(_v) = _t->contentHasAlignment(); break;
78 default: break;
79 }
80 } else if (_c == QMetaObject::WriteProperty) {
81 Q_ASSERT(staticMetaObject.cast(_o));
82 auto *_t = static_cast<QTextDocumentLayout *>(_o);
83 Q_UNUSED(_t)
84 void *_v = _a[0];
85 switch (_id) {
86 case 0: _t->setCursorWidth(*reinterpret_cast< int*>(_v)); break;
87 default: break;
88 }
89 } else if (_c == QMetaObject::ResetProperty) {
90 } else if (_c == QMetaObject::BindableProperty) {
91 }
92#endif // QT_NO_PROPERTIES
93 Q_UNUSED(_o);
94 Q_UNUSED(_id);
95 Q_UNUSED(_c);
96 Q_UNUSED(_a);
97}
98
99const QMetaObject QTextDocumentLayout::staticMetaObject = { {
100 QMetaObject::SuperData::link<QAbstractTextDocumentLayout::staticMetaObject>(),
101 qt_meta_stringdata_QTextDocumentLayout.offsetsAndSize,
102 qt_meta_data_QTextDocumentLayout,
103 qt_static_metacall,
104 nullptr,
105qt_incomplete_metaTypeArray<qt_meta_stringdata_QTextDocumentLayout_t
106, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>
107
108
109
110>,
111 nullptr
112} };
113
114
115const QMetaObject *QTextDocumentLayout::metaObject() const
116{
117 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
118}
119
120void *QTextDocumentLayout::qt_metacast(const char *_clname)
121{
122 if (!_clname) return nullptr;
123 if (!strcmp(_clname, qt_meta_stringdata_QTextDocumentLayout.stringdata0))
124 return static_cast<void*>(this);
125 return QAbstractTextDocumentLayout::qt_metacast(_clname);
126}
127
128int QTextDocumentLayout::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
129{
130 _id = QAbstractTextDocumentLayout::qt_metacall(_c, _id, _a);
131 if (_id < 0)
132 return _id;
133
134#ifndef QT_NO_PROPERTIES
135 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
136 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
137 || _c == QMetaObject::RegisterPropertyMetaType) {
138 qt_static_metacall(this, _c, _id, _a);
139 _id -= 3;
140 }
141#endif // QT_NO_PROPERTIES
142 return _id;
143}
144QT_WARNING_POP
145QT_END_MOC_NAMESPACE
146