edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
moc_texteditorcomponent.cpp
Go to the documentation of this file.
1/****************************************************************************
2** Meta object code from reading C++ file 'texteditorcomponent.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 'texteditorcomponent.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_CLASSedbeeSCOPETextEditorComponentENDCLASS_t {};
40constexpr auto qt_meta_stringdata_CLASSedbeeSCOPETextEditorComponentENDCLASS = QtMocHelpers::stringData(
41 "edbee::TextEditorComponent",
42 "textKeyPressed",
43 "",
44 "repaintCarets",
45 "updateLineAtOffset",
46 "offset",
47 "updateAreaAroundOffset",
48 "width",
49 "updateLine",
50 "line",
51 "length"
52);
53#else // !QT_MOC_HAS_STRING_DATA
68#define QT_MOC_LITERAL(ofs, len) \
69 uint(sizeof(qt_meta_stringdata_CLASSedbeeSCOPETextEditorComponentENDCLASS_t::offsetsAndSizes) + ofs), len
70Q_CONSTINIT static const qt_meta_stringdata_CLASSedbeeSCOPETextEditorComponentENDCLASS_t qt_meta_stringdata_CLASSedbeeSCOPETextEditorComponentENDCLASS = {
71 {
72 QT_MOC_LITERAL(0, 26), // "edbee::TextEditorComponent"
73 QT_MOC_LITERAL(27, 14), // "textKeyPressed"
74 QT_MOC_LITERAL(42, 0), // ""
75 QT_MOC_LITERAL(43, 13), // "repaintCarets"
76 QT_MOC_LITERAL(57, 18), // "updateLineAtOffset"
77 QT_MOC_LITERAL(76, 6), // "offset"
78 QT_MOC_LITERAL(83, 22), // "updateAreaAroundOffset"
79 QT_MOC_LITERAL(106, 5), // "width"
80 QT_MOC_LITERAL(112, 10), // "updateLine"
81 QT_MOC_LITERAL(123, 4), // "line"
82 QT_MOC_LITERAL(128, 6) // "length"
83 },
84 "edbee::TextEditorComponent",
85 "textKeyPressed",
86 "",
87 "repaintCarets",
88 "updateLineAtOffset",
89 "offset",
90 "updateAreaAroundOffset",
91 "width",
92 "updateLine",
93 "line",
94 "length"
95};
96#undef QT_MOC_LITERAL
97#endif // !QT_MOC_HAS_STRING_DATA
98} // unnamed namespace
99
100Q_CONSTINIT static const uint qt_meta_data_CLASSedbeeSCOPETextEditorComponentENDCLASS[] = {
101
102 // content:
103 12, // revision
104 0, // classname
105 0, 0, // classinfo
106 6, 14, // methods
107 0, 0, // properties
108 0, 0, // enums/sets
109 0, 0, // constructors
110 0, // flags
111 1, // signalCount
112
113 // signals: name, argc, parameters, tag, flags, initial metatype offsets
114 1, 0, 50, 2, 0x06, 1 /* Public */,
115
116 // slots: name, argc, parameters, tag, flags, initial metatype offsets
117 3, 0, 51, 2, 0x0a, 2 /* Public */,
118 4, 1, 52, 2, 0x0a, 3 /* Public */,
119 6, 2, 55, 2, 0x0a, 5 /* Public */,
120 6, 1, 60, 2, 0x2a, 8 /* Public | MethodCloned */,
121 8, 2, 63, 2, 0x0a, 10 /* Public */,
122
123 // signals: parameters
124 QMetaType::Void,
125
126 // slots: parameters
127 QMetaType::Void,
128 QMetaType::Void, QMetaType::Int, 5,
129 QMetaType::Void, QMetaType::Int, QMetaType::Int, 5, 7,
130 QMetaType::Void, QMetaType::Int, 5,
131 QMetaType::Void, QMetaType::Int, QMetaType::Int, 9, 10,
132
133 0 // eod
134};
135
136Q_CONSTINIT const QMetaObject edbee::TextEditorComponent::staticMetaObject = { {
137 QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
138 qt_meta_stringdata_CLASSedbeeSCOPETextEditorComponentENDCLASS.offsetsAndSizes,
139 qt_meta_data_CLASSedbeeSCOPETextEditorComponentENDCLASS,
140 qt_static_metacall,
141 nullptr,
142 qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSedbeeSCOPETextEditorComponentENDCLASS_t,
143 // Q_OBJECT / Q_GADGET
144 QtPrivate::TypeAndForceComplete<TextEditorComponent, std::true_type>,
145 // method 'textKeyPressed'
146 QtPrivate::TypeAndForceComplete<void, std::false_type>,
147 // method 'repaintCarets'
148 QtPrivate::TypeAndForceComplete<void, std::false_type>,
149 // method 'updateLineAtOffset'
150 QtPrivate::TypeAndForceComplete<void, std::false_type>,
151 QtPrivate::TypeAndForceComplete<int, std::false_type>,
152 // method 'updateAreaAroundOffset'
153 QtPrivate::TypeAndForceComplete<void, std::false_type>,
154 QtPrivate::TypeAndForceComplete<int, std::false_type>,
155 QtPrivate::TypeAndForceComplete<int, std::false_type>,
156 // method 'updateAreaAroundOffset'
157 QtPrivate::TypeAndForceComplete<void, std::false_type>,
158 QtPrivate::TypeAndForceComplete<int, std::false_type>,
159 // method 'updateLine'
160 QtPrivate::TypeAndForceComplete<void, std::false_type>,
161 QtPrivate::TypeAndForceComplete<int, std::false_type>,
162 QtPrivate::TypeAndForceComplete<int, std::false_type>
163 >,
164 nullptr
165} };
166
167void edbee::TextEditorComponent::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
168{
169 if (_c == QMetaObject::InvokeMetaMethod) {
170 auto *_t = static_cast<TextEditorComponent *>(_o);
171 (void)_t;
172 switch (_id) {
173 case 0: _t->textKeyPressed(); break;
174 case 1: _t->repaintCarets(); break;
175 case 2: _t->updateLineAtOffset((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
176 case 3: _t->updateAreaAroundOffset((*reinterpret_cast< std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<int>>(_a[2]))); break;
177 case 4: _t->updateAreaAroundOffset((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
178 case 5: _t->updateLine((*reinterpret_cast< std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<int>>(_a[2]))); break;
179 default: ;
180 }
181 } else if (_c == QMetaObject::IndexOfMethod) {
182 int *result = reinterpret_cast<int *>(_a[0]);
183 {
184 using _t = void (TextEditorComponent::*)();
185 if (_t _q_method = &TextEditorComponent::textKeyPressed; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
186 *result = 0;
187 return;
188 }
189 }
190 }
191}
192
193const QMetaObject *edbee::TextEditorComponent::metaObject() const
194{
195 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
196}
197
198void *edbee::TextEditorComponent::qt_metacast(const char *_clname)
199{
200 if (!_clname) return nullptr;
201 if (!strcmp(_clname, qt_meta_stringdata_CLASSedbeeSCOPETextEditorComponentENDCLASS.stringdata0))
202 return static_cast<void*>(this);
203 return QWidget::qt_metacast(_clname);
204}
205
206int edbee::TextEditorComponent::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
207{
208 _id = QWidget::qt_metacall(_c, _id, _a);
209 if (_id < 0)
210 return _id;
211 if (_c == QMetaObject::InvokeMetaMethod) {
212 if (_id < 6)
213 qt_static_metacall(this, _c, _id, _a);
214 _id -= 6;
215 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
216 if (_id < 6)
217 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
218 _id -= 6;
219 }
220 return _id;
221}
222
223// SIGNAL 0
225{
226 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
227}
228QT_WARNING_POP
void textKeyPressed()
Definition moc_texteditorcomponent.cpp:224
TextEditorComponent(TextEditorController *controller, QWidget *parent=0)
The default texteditor compenent constructor.
Definition texteditorcomponent.cpp:40
#define QT_MOC_LITERAL(ofs, len)
Definition moc_texteditorcomponent.cpp:68
#define Q_CONSTINIT
Definition moc_texteditorscrollarea.cpp:30
Definition moc_texteditorscrollarea.cpp:36