edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
moc_chartextdocument.cpp
Go to the documentation of this file.
1/****************************************************************************
2** Meta object code from reading C++ file 'chartextdocument.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.6.3)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
10#include <QtCore/qmetatype.h>
11
12#if __has_include(<QtCore/qtmochelpers.h>)
13#include <QtCore/qtmochelpers.h>
14#else
15QT_BEGIN_MOC_NAMESPACE
16#endif
17
18
19#include <memory>
20
21#if !defined(Q_MOC_OUTPUT_REVISION)
22#error "The header file 'chartextdocument.h' doesn't include <QObject>."
23#elif Q_MOC_OUTPUT_REVISION != 68
24#error "This file was generated using the moc from 6.6.3. It"
25#error "cannot be used with the include files from this version of Qt."
26#error "(The moc has changed too much.)"
27#endif
28
29#ifndef Q_CONSTINIT
30#define Q_CONSTINIT
31#endif
32
33QT_WARNING_PUSH
35QT_WARNING_DISABLE_GCC("-Wuseless-cast")
36namespace {
37
38#ifdef QT_MOC_HAS_STRINGDATA
39struct qt_meta_stringdata_CLASSedbeeSCOPECharTextDocumentENDCLASS_t {};
40constexpr auto qt_meta_stringdata_CLASSedbeeSCOPECharTextDocumentENDCLASS = QtMocHelpers::stringData(
41 "edbee::CharTextDocument",
42 "textBufferChanged",
43 "",
44 "edbee::TextBufferChange",
45 "change",
46 "oldText"
47);
48#else // !QT_MOC_HAS_STRING_DATA
58#define QT_MOC_LITERAL(ofs, len) \
59 uint(sizeof(qt_meta_stringdata_CLASSedbeeSCOPECharTextDocumentENDCLASS_t::offsetsAndSizes) + ofs), len
60Q_CONSTINIT static const qt_meta_stringdata_CLASSedbeeSCOPECharTextDocumentENDCLASS_t qt_meta_stringdata_CLASSedbeeSCOPECharTextDocumentENDCLASS = {
61 {
62 QT_MOC_LITERAL(0, 23), // "edbee::CharTextDocument"
63 QT_MOC_LITERAL(24, 17), // "textBufferChanged"
64 QT_MOC_LITERAL(42, 0), // ""
65 QT_MOC_LITERAL(43, 23), // "edbee::TextBufferChange"
66 QT_MOC_LITERAL(67, 6), // "change"
67 QT_MOC_LITERAL(74, 7) // "oldText"
68 },
69 "edbee::CharTextDocument",
70 "textBufferChanged",
71 "",
72 "edbee::TextBufferChange",
73 "change",
74 "oldText"
75};
76#undef QT_MOC_LITERAL
77#endif // !QT_MOC_HAS_STRING_DATA
78} // unnamed namespace
79
80Q_CONSTINIT static const uint qt_meta_data_CLASSedbeeSCOPECharTextDocumentENDCLASS[] = {
81
82 // content:
83 12, // revision
84 0, // classname
85 0, 0, // classinfo
86 2, 14, // methods
87 0, 0, // properties
88 0, 0, // enums/sets
89 0, 0, // constructors
90 0, // flags
91 0, // signalCount
92
93 // slots: name, argc, parameters, tag, flags, initial metatype offsets
94 1, 2, 26, 2, 0x09, 1 /* Protected */,
95 1, 1, 31, 2, 0x29, 4 /* Protected | MethodCloned */,
96
97 // slots: parameters
98 QMetaType::Void, 0x80000000 | 3, QMetaType::QString, 4, 5,
99 QMetaType::Void, 0x80000000 | 3, 4,
100
101 0 // eod
102};
103
104Q_CONSTINIT const QMetaObject edbee::CharTextDocument::staticMetaObject = { {
105 QMetaObject::SuperData::link<TextDocument::staticMetaObject>(),
106 qt_meta_stringdata_CLASSedbeeSCOPECharTextDocumentENDCLASS.offsetsAndSizes,
107 qt_meta_data_CLASSedbeeSCOPECharTextDocumentENDCLASS,
108 qt_static_metacall,
109 nullptr,
110 qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSedbeeSCOPECharTextDocumentENDCLASS_t,
111 // Q_OBJECT / Q_GADGET
112 QtPrivate::TypeAndForceComplete<CharTextDocument, std::true_type>,
113 // method 'textBufferChanged'
114 QtPrivate::TypeAndForceComplete<void, std::false_type>,
115 QtPrivate::TypeAndForceComplete<const edbee::TextBufferChange &, std::false_type>,
116 QtPrivate::TypeAndForceComplete<QString, std::false_type>,
117 // method 'textBufferChanged'
118 QtPrivate::TypeAndForceComplete<void, std::false_type>,
119 QtPrivate::TypeAndForceComplete<const edbee::TextBufferChange &, std::false_type>
120 >,
121 nullptr
122} };
123
124void edbee::CharTextDocument::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
125{
126 if (_c == QMetaObject::InvokeMetaMethod) {
127 auto *_t = static_cast<CharTextDocument *>(_o);
128 (void)_t;
129 switch (_id) {
130 case 0: _t->textBufferChanged((*reinterpret_cast< std::add_pointer_t<edbee::TextBufferChange>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QString>>(_a[2]))); break;
131 case 1: _t->textBufferChanged((*reinterpret_cast< std::add_pointer_t<edbee::TextBufferChange>>(_a[1]))); break;
132 default: ;
133 }
134 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
135 switch (_id) {
136 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
137 case 0:
138 switch (*reinterpret_cast<int*>(_a[1])) {
139 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
140 case 0:
141 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< edbee::TextBufferChange >(); break;
142 }
143 break;
144 case 1:
145 switch (*reinterpret_cast<int*>(_a[1])) {
146 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
147 case 0:
148 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< edbee::TextBufferChange >(); break;
149 }
150 break;
151 }
152 }
153}
154
155const QMetaObject *edbee::CharTextDocument::metaObject() const
156{
157 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
158}
159
160void *edbee::CharTextDocument::qt_metacast(const char *_clname)
161{
162 if (!_clname) return nullptr;
163 if (!strcmp(_clname, qt_meta_stringdata_CLASSedbeeSCOPECharTextDocumentENDCLASS.stringdata0))
164 return static_cast<void*>(this);
165 return TextDocument::qt_metacast(_clname);
166}
167
168int edbee::CharTextDocument::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
169{
170 _id = TextDocument::qt_metacall(_c, _id, _a);
171 if (_id < 0)
172 return _id;
173 if (_c == QMetaObject::InvokeMetaMethod) {
174 if (_id < 2)
175 qt_static_metacall(this, _c, _id, _a);
176 _id -= 2;
177 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
178 if (_id < 2)
179 qt_static_metacall(this, _c, _id, _a);
180 _id -= 2;
181 }
182 return _id;
183}
184QT_WARNING_POP
CharTextDocument(QObject *object)
The main contstructor of the chartext document.
Definition chartextdocument.cpp:28
#define QT_MOC_LITERAL(ofs, len)
Definition moc_chartextdocument.cpp:58
#define Q_CONSTINIT
Definition moc_texteditorscrollarea.cpp:30
Definition moc_texteditorscrollarea.cpp:36