edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
moc_textbuffer.cpp
Go to the documentation of this file.
1/****************************************************************************
2** Meta object code from reading C++ file 'textbuffer.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 'textbuffer.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_CLASSedbeeSCOPETextBufferENDCLASS_t {};
40constexpr auto qt_meta_stringdata_CLASSedbeeSCOPETextBufferENDCLASS = QtMocHelpers::stringData(
41 "edbee::TextBuffer",
42 "textAboutToBeChanged",
43 "",
44 "edbee::TextBufferChange",
45 "change",
46 "textChanged",
47 "oldText"
48);
49#else // !QT_MOC_HAS_STRING_DATA
60#define QT_MOC_LITERAL(ofs, len) \
61 uint(sizeof(qt_meta_stringdata_CLASSedbeeSCOPETextBufferENDCLASS_t::offsetsAndSizes) + ofs), len
62Q_CONSTINIT static const qt_meta_stringdata_CLASSedbeeSCOPETextBufferENDCLASS_t qt_meta_stringdata_CLASSedbeeSCOPETextBufferENDCLASS = {
63 {
64 QT_MOC_LITERAL(0, 17), // "edbee::TextBuffer"
65 QT_MOC_LITERAL(18, 20), // "textAboutToBeChanged"
66 QT_MOC_LITERAL(39, 0), // ""
67 QT_MOC_LITERAL(40, 23), // "edbee::TextBufferChange"
68 QT_MOC_LITERAL(64, 6), // "change"
69 QT_MOC_LITERAL(71, 11), // "textChanged"
70 QT_MOC_LITERAL(83, 7) // "oldText"
71 },
72 "edbee::TextBuffer",
73 "textAboutToBeChanged",
74 "",
75 "edbee::TextBufferChange",
76 "change",
77 "textChanged",
78 "oldText"
79};
80#undef QT_MOC_LITERAL
81#endif // !QT_MOC_HAS_STRING_DATA
82} // unnamed namespace
83
84Q_CONSTINIT static const uint qt_meta_data_CLASSedbeeSCOPETextBufferENDCLASS[] = {
85
86 // content:
87 12, // revision
88 0, // classname
89 0, 0, // classinfo
90 3, 14, // methods
91 0, 0, // properties
92 0, 0, // enums/sets
93 0, 0, // constructors
94 0, // flags
95 3, // signalCount
96
97 // signals: name, argc, parameters, tag, flags, initial metatype offsets
98 1, 1, 32, 2, 0x06, 1 /* Public */,
99 5, 2, 35, 2, 0x06, 3 /* Public */,
100 5, 1, 40, 2, 0x26, 6 /* Public | MethodCloned */,
101
102 // signals: parameters
103 QMetaType::Void, 0x80000000 | 3, 4,
104 QMetaType::Void, 0x80000000 | 3, QMetaType::QString, 4, 6,
105 QMetaType::Void, 0x80000000 | 3, 4,
106
107 0 // eod
108};
109
110Q_CONSTINIT const QMetaObject edbee::TextBuffer::staticMetaObject = { {
111 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
112 qt_meta_stringdata_CLASSedbeeSCOPETextBufferENDCLASS.offsetsAndSizes,
113 qt_meta_data_CLASSedbeeSCOPETextBufferENDCLASS,
114 qt_static_metacall,
115 nullptr,
116 qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSedbeeSCOPETextBufferENDCLASS_t,
117 // Q_OBJECT / Q_GADGET
118 QtPrivate::TypeAndForceComplete<TextBuffer, std::true_type>,
119 // method 'textAboutToBeChanged'
120 QtPrivate::TypeAndForceComplete<void, std::false_type>,
121 QtPrivate::TypeAndForceComplete<edbee::TextBufferChange, std::false_type>,
122 // method 'textChanged'
123 QtPrivate::TypeAndForceComplete<void, std::false_type>,
124 QtPrivate::TypeAndForceComplete<edbee::TextBufferChange, std::false_type>,
125 QtPrivate::TypeAndForceComplete<QString, std::false_type>,
126 // method 'textChanged'
127 QtPrivate::TypeAndForceComplete<void, std::false_type>,
128 QtPrivate::TypeAndForceComplete<edbee::TextBufferChange, std::false_type>
129 >,
130 nullptr
131} };
132
133void edbee::TextBuffer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
134{
135 if (_c == QMetaObject::InvokeMetaMethod) {
136 auto *_t = static_cast<TextBuffer *>(_o);
137 (void)_t;
138 switch (_id) {
139 case 0: _t->textAboutToBeChanged((*reinterpret_cast< std::add_pointer_t<edbee::TextBufferChange>>(_a[1]))); break;
140 case 1: _t->textChanged((*reinterpret_cast< std::add_pointer_t<edbee::TextBufferChange>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QString>>(_a[2]))); break;
141 case 2: _t->textChanged((*reinterpret_cast< std::add_pointer_t<edbee::TextBufferChange>>(_a[1]))); break;
142 default: ;
143 }
144 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
145 switch (_id) {
146 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
147 case 0:
148 switch (*reinterpret_cast<int*>(_a[1])) {
149 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
150 case 0:
151 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< edbee::TextBufferChange >(); break;
152 }
153 break;
154 case 1:
155 switch (*reinterpret_cast<int*>(_a[1])) {
156 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
157 case 0:
158 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< edbee::TextBufferChange >(); break;
159 }
160 break;
161 case 2:
162 switch (*reinterpret_cast<int*>(_a[1])) {
163 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
164 case 0:
165 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< edbee::TextBufferChange >(); break;
166 }
167 break;
168 }
169 } else if (_c == QMetaObject::IndexOfMethod) {
170 int *result = reinterpret_cast<int *>(_a[0]);
171 {
172 using _t = void (TextBuffer::*)(edbee::TextBufferChange );
173 if (_t _q_method = &TextBuffer::textAboutToBeChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
174 *result = 0;
175 return;
176 }
177 }
178 {
179 using _t = void (TextBuffer::*)(edbee::TextBufferChange , QString );
180 if (_t _q_method = &TextBuffer::textChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
181 *result = 1;
182 return;
183 }
184 }
185 }
186}
187
188const QMetaObject *edbee::TextBuffer::metaObject() const
189{
190 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
191}
192
193void *edbee::TextBuffer::qt_metacast(const char *_clname)
194{
195 if (!_clname) return nullptr;
196 if (!strcmp(_clname, qt_meta_stringdata_CLASSedbeeSCOPETextBufferENDCLASS.stringdata0))
197 return static_cast<void*>(this);
198 return QObject::qt_metacast(_clname);
199}
200
201int edbee::TextBuffer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
202{
203 _id = QObject::qt_metacall(_c, _id, _a);
204 if (_id < 0)
205 return _id;
206 if (_c == QMetaObject::InvokeMetaMethod) {
207 if (_id < 3)
208 qt_static_metacall(this, _c, _id, _a);
209 _id -= 3;
210 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
211 if (_id < 3)
212 qt_static_metacall(this, _c, _id, _a);
213 _id -= 3;
214 }
215 return _id;
216}
217
218// SIGNAL 0
220{
221 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
222 QMetaObject::activate(this, &staticMetaObject, 0, _a);
223}
224
225// SIGNAL 1
227{
228 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
229 QMetaObject::activate(this, &staticMetaObject, 1, _a);
230}
231QT_WARNING_POP
This clas represents a text buffer change and is used to pass around between events This is a sharedd...
Definition textbuffer.h:45
TextBuffer(QObject *parent=0)
The textbuffer constructor.
Definition textbuffer.cpp:90
void textChanged(edbee::TextBufferChange change, QString oldText=QString())
Definition moc_textbuffer.cpp:226
void textAboutToBeChanged(edbee::TextBufferChange change)
Definition moc_textbuffer.cpp:219
#define QT_MOC_LITERAL(ofs, len)
Definition moc_textbuffer.cpp:60
#define Q_CONSTINIT
Definition moc_texteditorscrollarea.cpp:30
Definition moc_texteditorscrollarea.cpp:36