1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'document.h' |
3 | ** |
4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.7) |
5 | ** |
6 | ** WARNING! All changes made in this file will be lost! |
7 | *****************************************************************************/ |
8 | |
9 | #include <memory> |
10 | #include "../../../../../3rdparty/unioncode-GitQlient/src/git_server/document.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'document.h' doesn't include <QObject>." |
15 | #elif Q_MOC_OUTPUT_REVISION != 67 |
16 | #error "This file was generated using the moc from 5.15.7. It" |
17 | #error "cannot be used with the include files from this version of Qt." |
18 | #error "(The moc has changed too much.)" |
19 | #endif |
20 | |
21 | QT_BEGIN_MOC_NAMESPACE |
22 | QT_WARNING_PUSH |
23 | QT_WARNING_DISABLE_DEPRECATED |
24 | struct qt_meta_stringdata_Document_t { |
25 | QByteArrayData data[4]; |
26 | char stringdata0[27]; |
27 | }; |
28 | #define QT_MOC_LITERAL(idx, ofs, len) \ |
29 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ |
30 | qptrdiff(offsetof(qt_meta_stringdata_Document_t, stringdata0) + ofs \ |
31 | - idx * sizeof(QByteArrayData)) \ |
32 | ) |
33 | static const qt_meta_stringdata_Document_t qt_meta_stringdata_Document = { |
34 | { |
35 | QT_MOC_LITERAL(0, 0, 8), // "Document" |
36 | QT_MOC_LITERAL(1, 9, 11), // "textChanged" |
37 | QT_MOC_LITERAL(2, 21, 0), // "" |
38 | QT_MOC_LITERAL(3, 22, 4) // "text" |
39 | |
40 | }, |
41 | "Document\0textChanged\0\0text" |
42 | }; |
43 | #undef QT_MOC_LITERAL |
44 | |
45 | static const uint qt_meta_data_Document[] = { |
46 | |
47 | // content: |
48 | 8, // revision |
49 | 0, // classname |
50 | 0, 0, // classinfo |
51 | 1, 14, // methods |
52 | 1, 22, // properties |
53 | 0, 0, // enums/sets |
54 | 0, 0, // constructors |
55 | 0, // flags |
56 | 1, // signalCount |
57 | |
58 | // signals: name, argc, parameters, tag, flags |
59 | 1, 1, 19, 2, 0x06 /* Public */, |
60 | |
61 | // signals: parameters |
62 | QMetaType::Void, QMetaType::QString, 3, |
63 | |
64 | // properties: name, type, flags |
65 | 3, QMetaType::QString, 0x00495803, |
66 | |
67 | // properties: notify_signal_id |
68 | 0, |
69 | |
70 | 0 // eod |
71 | }; |
72 | |
73 | void Document::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
74 | { |
75 | if (_c == QMetaObject::InvokeMetaMethod) { |
76 | auto *_t = static_cast<Document *>(_o); |
77 | (void)_t; |
78 | switch (_id) { |
79 | case 0: _t->textChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break; |
80 | default: ; |
81 | } |
82 | } else if (_c == QMetaObject::IndexOfMethod) { |
83 | int *result = reinterpret_cast<int *>(_a[0]); |
84 | { |
85 | using _t = void (Document::*)(const QString & ); |
86 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Document::textChanged)) { |
87 | *result = 0; |
88 | return; |
89 | } |
90 | } |
91 | } |
92 | #ifndef QT_NO_PROPERTIES |
93 | else if (_c == QMetaObject::ReadProperty) { |
94 | auto *_t = static_cast<Document *>(_o); |
95 | (void)_t; |
96 | void *_v = _a[0]; |
97 | switch (_id) { |
98 | case 0: *reinterpret_cast< QString*>(_v) = _t->m_text; break; |
99 | default: break; |
100 | } |
101 | } else if (_c == QMetaObject::WriteProperty) { |
102 | auto *_t = static_cast<Document *>(_o); |
103 | (void)_t; |
104 | void *_v = _a[0]; |
105 | switch (_id) { |
106 | case 0: |
107 | if (_t->m_text != *reinterpret_cast< QString*>(_v)) { |
108 | _t->m_text = *reinterpret_cast< QString*>(_v); |
109 | Q_EMIT _t->textChanged(_t->m_text); |
110 | } |
111 | break; |
112 | default: break; |
113 | } |
114 | } else if (_c == QMetaObject::ResetProperty) { |
115 | } |
116 | #endif // QT_NO_PROPERTIES |
117 | } |
118 | |
119 | QT_INIT_METAOBJECT const QMetaObject Document::staticMetaObject = { { |
120 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
121 | qt_meta_stringdata_Document.data, |
122 | qt_meta_data_Document, |
123 | qt_static_metacall, |
124 | nullptr, |
125 | nullptr |
126 | } }; |
127 | |
128 | |
129 | const QMetaObject *Document::metaObject() const |
130 | { |
131 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
132 | } |
133 | |
134 | void *Document::qt_metacast(const char *_clname) |
135 | { |
136 | if (!_clname) return nullptr; |
137 | if (!strcmp(_clname, qt_meta_stringdata_Document.stringdata0)) |
138 | return static_cast<void*>(this); |
139 | return QObject::qt_metacast(_clname); |
140 | } |
141 | |
142 | int Document::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
143 | { |
144 | _id = QObject::qt_metacall(_c, _id, _a); |
145 | if (_id < 0) |
146 | return _id; |
147 | if (_c == QMetaObject::InvokeMetaMethod) { |
148 | if (_id < 1) |
149 | qt_static_metacall(this, _c, _id, _a); |
150 | _id -= 1; |
151 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
152 | if (_id < 1) |
153 | *reinterpret_cast<int*>(_a[0]) = -1; |
154 | _id -= 1; |
155 | } |
156 | #ifndef QT_NO_PROPERTIES |
157 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
158 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) { |
159 | qt_static_metacall(this, _c, _id, _a); |
160 | _id -= 1; |
161 | } else if (_c == QMetaObject::QueryPropertyDesignable) { |
162 | _id -= 1; |
163 | } else if (_c == QMetaObject::QueryPropertyScriptable) { |
164 | _id -= 1; |
165 | } else if (_c == QMetaObject::QueryPropertyStored) { |
166 | _id -= 1; |
167 | } else if (_c == QMetaObject::QueryPropertyEditable) { |
168 | _id -= 1; |
169 | } else if (_c == QMetaObject::QueryPropertyUser) { |
170 | _id -= 1; |
171 | } |
172 | #endif // QT_NO_PROPERTIES |
173 | return _id; |
174 | } |
175 | |
176 | // SIGNAL 0 |
177 | void Document::textChanged(const QString & _t1) |
178 | { |
179 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
180 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
181 | } |
182 | QT_WARNING_POP |
183 | QT_END_MOC_NAMESPACE |
184 | |