edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
moc_textdocumentscopes.cpp
Go to the documentation of this file.
1/****************************************************************************
2** Meta object code from reading C++ file 'textdocumentscopes.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 'textdocumentscopes.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_CLASSedbeeSCOPETextDocumentScopesENDCLASS_t {};
40constexpr auto qt_meta_stringdata_CLASSedbeeSCOPETextDocumentScopesENDCLASS = QtMocHelpers::stringData(
41 "edbee::TextDocumentScopes",
42 "lastScopedOffsetChanged",
43 "",
44 "previousOffset",
45 "lastScopedOffset",
46 "grammarChanged"
47);
48#else // !QT_MOC_HAS_STRING_DATA
58#define QT_MOC_LITERAL(ofs, len) \
59 uint(sizeof(qt_meta_stringdata_CLASSedbeeSCOPETextDocumentScopesENDCLASS_t::offsetsAndSizes) + ofs), len
60Q_CONSTINIT static const qt_meta_stringdata_CLASSedbeeSCOPETextDocumentScopesENDCLASS_t qt_meta_stringdata_CLASSedbeeSCOPETextDocumentScopesENDCLASS = {
61 {
62 QT_MOC_LITERAL(0, 25), // "edbee::TextDocumentScopes"
63 QT_MOC_LITERAL(26, 23), // "lastScopedOffsetChanged"
64 QT_MOC_LITERAL(50, 0), // ""
65 QT_MOC_LITERAL(51, 14), // "previousOffset"
66 QT_MOC_LITERAL(66, 16), // "lastScopedOffset"
67 QT_MOC_LITERAL(83, 14) // "grammarChanged"
68 },
69 "edbee::TextDocumentScopes",
70 "lastScopedOffsetChanged",
71 "",
72 "previousOffset",
73 "lastScopedOffset",
74 "grammarChanged"
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_CLASSedbeeSCOPETextDocumentScopesENDCLASS[] = {
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 1, // signalCount
92
93 // signals: name, argc, parameters, tag, flags, initial metatype offsets
94 1, 2, 26, 2, 0x06, 1 /* Public */,
95
96 // slots: name, argc, parameters, tag, flags, initial metatype offsets
97 5, 0, 31, 2, 0x09, 4 /* Protected */,
98
99 // signals: parameters
100 QMetaType::Void, QMetaType::Int, QMetaType::Int, 3, 4,
101
102 // slots: parameters
103 QMetaType::Void,
104
105 0 // eod
106};
107
108Q_CONSTINIT const QMetaObject edbee::TextDocumentScopes::staticMetaObject = { {
109 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
110 qt_meta_stringdata_CLASSedbeeSCOPETextDocumentScopesENDCLASS.offsetsAndSizes,
111 qt_meta_data_CLASSedbeeSCOPETextDocumentScopesENDCLASS,
112 qt_static_metacall,
113 nullptr,
114 qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSedbeeSCOPETextDocumentScopesENDCLASS_t,
115 // Q_OBJECT / Q_GADGET
116 QtPrivate::TypeAndForceComplete<TextDocumentScopes, std::true_type>,
117 // method 'lastScopedOffsetChanged'
118 QtPrivate::TypeAndForceComplete<void, std::false_type>,
119 QtPrivate::TypeAndForceComplete<int, std::false_type>,
120 QtPrivate::TypeAndForceComplete<int, std::false_type>,
121 // method 'grammarChanged'
122 QtPrivate::TypeAndForceComplete<void, std::false_type>
123 >,
124 nullptr
125} };
126
127void edbee::TextDocumentScopes::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
128{
129 if (_c == QMetaObject::InvokeMetaMethod) {
130 auto *_t = static_cast<TextDocumentScopes *>(_o);
131 (void)_t;
132 switch (_id) {
133 case 0: _t->lastScopedOffsetChanged((*reinterpret_cast< std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<int>>(_a[2]))); break;
134 case 1: _t->grammarChanged(); break;
135 default: ;
136 }
137 } else if (_c == QMetaObject::IndexOfMethod) {
138 int *result = reinterpret_cast<int *>(_a[0]);
139 {
140 using _t = void (TextDocumentScopes::*)(int , int );
141 if (_t _q_method = &TextDocumentScopes::lastScopedOffsetChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
142 *result = 0;
143 return;
144 }
145 }
146 }
147}
148
149const QMetaObject *edbee::TextDocumentScopes::metaObject() const
150{
151 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
152}
153
154void *edbee::TextDocumentScopes::qt_metacast(const char *_clname)
155{
156 if (!_clname) return nullptr;
157 if (!strcmp(_clname, qt_meta_stringdata_CLASSedbeeSCOPETextDocumentScopesENDCLASS.stringdata0))
158 return static_cast<void*>(this);
159 return QObject::qt_metacast(_clname);
160}
161
162int edbee::TextDocumentScopes::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
163{
164 _id = QObject::qt_metacall(_c, _id, _a);
165 if (_id < 0)
166 return _id;
167 if (_c == QMetaObject::InvokeMetaMethod) {
168 if (_id < 2)
169 qt_static_metacall(this, _c, _id, _a);
170 _id -= 2;
171 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
172 if (_id < 2)
173 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
174 _id -= 2;
175 }
176 return _id;
177}
178
179// SIGNAL 0
181{
182 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
183 QMetaObject::activate(this, &staticMetaObject, 0, _a);
184}
185QT_WARNING_POP
void lastScopedOffsetChanged(int previousOffset, int lastScopedOffset)
Definition moc_textdocumentscopes.cpp:180
TextDocumentScopes(TextDocument *textDocument)
The constructor for storing/managing the textdocument scopes.
Definition textdocumentscopes.cpp:768
#define QT_MOC_LITERAL(ofs, len)
Definition moc_textdocumentscopes.cpp:58
#define Q_CONSTINIT
Definition moc_texteditorscrollarea.cpp:30
Definition moc_texteditorscrollarea.cpp:36