1/****************************************************************************
2** Meta object code from reading C++ file 'qcompleter.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.0.0)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include <memory>
10#include "util/qcompleter.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qcompleter.h' doesn't include <QObject>."
15#elif Q_MOC_OUTPUT_REVISION != 68
16#error "This file was generated using the moc from 6.0.0. 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
21QT_BEGIN_MOC_NAMESPACE
22QT_WARNING_PUSH
23QT_WARNING_DISABLE_DEPRECATED
24struct qt_meta_stringdata_QCompleter_t {
25 const uint offsetsAndSize[74];
26 char stringdata0[542];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QCompleter_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QCompleter_t qt_meta_stringdata_QCompleter = {
31 {
32QT_MOC_LITERAL(0, 10), // "QCompleter"
33QT_MOC_LITERAL(11, 9), // "activated"
34QT_MOC_LITERAL(21, 0), // ""
35QT_MOC_LITERAL(22, 4), // "text"
36QT_MOC_LITERAL(27, 11), // "QModelIndex"
37QT_MOC_LITERAL(39, 5), // "index"
38QT_MOC_LITERAL(45, 11), // "highlighted"
39QT_MOC_LITERAL(57, 19), // "setCompletionPrefix"
40QT_MOC_LITERAL(77, 6), // "prefix"
41QT_MOC_LITERAL(84, 8), // "complete"
42QT_MOC_LITERAL(93, 4), // "rect"
43QT_MOC_LITERAL(98, 13), // "setWrapAround"
44QT_MOC_LITERAL(112, 4), // "wrap"
45QT_MOC_LITERAL(117, 11), // "_q_complete"
46QT_MOC_LITERAL(129, 21), // "_q_completionSelected"
47QT_MOC_LITERAL(151, 14), // "QItemSelection"
48QT_MOC_LITERAL(166, 18), // "_q_autoResizePopup"
49QT_MOC_LITERAL(185, 33), // "_q_fileSystemModelDirectoryLo..."
50QT_MOC_LITERAL(219, 16), // "completionPrefix"
51QT_MOC_LITERAL(236, 12), // "modelSorting"
52QT_MOC_LITERAL(249, 12), // "ModelSorting"
53QT_MOC_LITERAL(262, 10), // "filterMode"
54QT_MOC_LITERAL(273, 14), // "Qt::MatchFlags"
55QT_MOC_LITERAL(288, 14), // "completionMode"
56QT_MOC_LITERAL(303, 14), // "CompletionMode"
57QT_MOC_LITERAL(318, 16), // "completionColumn"
58QT_MOC_LITERAL(335, 14), // "completionRole"
59QT_MOC_LITERAL(350, 15), // "maxVisibleItems"
60QT_MOC_LITERAL(366, 15), // "caseSensitivity"
61QT_MOC_LITERAL(382, 19), // "Qt::CaseSensitivity"
62QT_MOC_LITERAL(402, 10), // "wrapAround"
63QT_MOC_LITERAL(413, 15), // "PopupCompletion"
64QT_MOC_LITERAL(429, 25), // "UnfilteredPopupCompletion"
65QT_MOC_LITERAL(455, 16), // "InlineCompletion"
66QT_MOC_LITERAL(472, 13), // "UnsortedModel"
67QT_MOC_LITERAL(486, 26), // "CaseSensitivelySortedModel"
68QT_MOC_LITERAL(513, 28) // "CaseInsensitivelySortedModel"
69
70 },
71 "QCompleter\0activated\0\0text\0QModelIndex\0"
72 "index\0highlighted\0setCompletionPrefix\0"
73 "prefix\0complete\0rect\0setWrapAround\0"
74 "wrap\0_q_complete\0_q_completionSelected\0"
75 "QItemSelection\0_q_autoResizePopup\0"
76 "_q_fileSystemModelDirectoryLoaded\0"
77 "completionPrefix\0modelSorting\0"
78 "ModelSorting\0filterMode\0Qt::MatchFlags\0"
79 "completionMode\0CompletionMode\0"
80 "completionColumn\0completionRole\0"
81 "maxVisibleItems\0caseSensitivity\0"
82 "Qt::CaseSensitivity\0wrapAround\0"
83 "PopupCompletion\0UnfilteredPopupCompletion\0"
84 "InlineCompletion\0UnsortedModel\0"
85 "CaseSensitivelySortedModel\0"
86 "CaseInsensitivelySortedModel"
87};
88#undef QT_MOC_LITERAL
89
90static const uint qt_meta_data_QCompleter[] = {
91
92 // content:
93 9, // revision
94 0, // classname
95 0, 0, // classinfo
96 12, 14, // methods
97 9, 118, // properties
98 2, 163, // enums/sets
99 0, 0, // constructors
100 0, // flags
101 4, // signalCount
102
103 // signals: name, argc, parameters, tag, flags, initial metatype offsets
104 1, 1, 86, 2, 0x06, 9 /* Public */,
105 1, 1, 89, 2, 0x06, 11 /* Public */,
106 6, 1, 92, 2, 0x06, 13 /* Public */,
107 6, 1, 95, 2, 0x06, 15 /* Public */,
108
109 // slots: name, argc, parameters, tag, flags, initial metatype offsets
110 7, 1, 98, 2, 0x0a, 17 /* Public */,
111 9, 1, 101, 2, 0x0a, 19 /* Public */,
112 9, 0, 104, 2, 0x2a, 21 /* Public | MethodCloned */,
113 11, 1, 105, 2, 0x0a, 22 /* Public */,
114 13, 1, 108, 2, 0x08, 24 /* Private */,
115 14, 1, 111, 2, 0x08, 26 /* Private */,
116 16, 0, 114, 2, 0x08, 28 /* Private */,
117 17, 1, 115, 2, 0x08, 29 /* Private */,
118
119 // signals: parameters
120 QMetaType::Void, QMetaType::QString, 3,
121 QMetaType::Void, 0x80000000 | 4, 5,
122 QMetaType::Void, QMetaType::QString, 3,
123 QMetaType::Void, 0x80000000 | 4, 5,
124
125 // slots: parameters
126 QMetaType::Void, QMetaType::QString, 8,
127 QMetaType::Void, QMetaType::QRect, 10,
128 QMetaType::Void,
129 QMetaType::Void, QMetaType::Bool, 12,
130 QMetaType::Void, 0x80000000 | 4, 2,
131 QMetaType::Void, 0x80000000 | 15, 2,
132 QMetaType::Void,
133 QMetaType::Void, QMetaType::QString, 2,
134
135 // properties: name, type, flags
136 18, QMetaType::QString, 0x00015103, uint(-1), 0,
137 19, 0x80000000 | 20, 0x0001510b, uint(-1), 0,
138 21, 0x80000000 | 22, 0x0001510b, uint(-1), 0,
139 23, 0x80000000 | 24, 0x0001510b, uint(-1), 0,
140 25, QMetaType::Int, 0x00015103, uint(-1), 0,
141 26, QMetaType::Int, 0x00015103, uint(-1), 0,
142 27, QMetaType::Int, 0x00015103, uint(-1), 0,
143 28, 0x80000000 | 29, 0x0001510b, uint(-1), 0,
144 30, QMetaType::Bool, 0x00015103, uint(-1), 0,
145
146 // enums: name, alias, flags, count, data
147 24, 24, 0x0, 3, 173,
148 20, 20, 0x0, 3, 179,
149
150 // enum data: key, value
151 31, uint(QCompleter::PopupCompletion),
152 32, uint(QCompleter::UnfilteredPopupCompletion),
153 33, uint(QCompleter::InlineCompletion),
154 34, uint(QCompleter::UnsortedModel),
155 35, uint(QCompleter::CaseSensitivelySortedModel),
156 36, uint(QCompleter::CaseInsensitivelySortedModel),
157
158 0 // eod
159};
160
161void QCompleter::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
162{
163 if (_c == QMetaObject::InvokeMetaMethod) {
164 Q_ASSERT(staticMetaObject.cast(_o));
165 auto *_t = static_cast<QCompleter *>(_o);
166 Q_UNUSED(_t)
167 switch (_id) {
168 case 0: _t->activated((*reinterpret_cast< const QString(*)>(_a[1]))); break;
169 case 1: _t->activated((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
170 case 2: _t->highlighted((*reinterpret_cast< const QString(*)>(_a[1]))); break;
171 case 3: _t->highlighted((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
172 case 4: _t->setCompletionPrefix((*reinterpret_cast< const QString(*)>(_a[1]))); break;
173 case 5: _t->complete((*reinterpret_cast< const QRect(*)>(_a[1]))); break;
174 case 6: _t->complete(); break;
175 case 7: _t->setWrapAround((*reinterpret_cast< bool(*)>(_a[1]))); break;
176 case 8: _t->d_func()->_q_complete((*reinterpret_cast< QModelIndex(*)>(_a[1]))); break;
177 case 9: _t->d_func()->_q_completionSelected((*reinterpret_cast< const QItemSelection(*)>(_a[1]))); break;
178 case 10: _t->d_func()->_q_autoResizePopup(); break;
179 case 11: _t->d_func()->_q_fileSystemModelDirectoryLoaded((*reinterpret_cast< const QString(*)>(_a[1]))); break;
180 default: ;
181 }
182 } else if (_c == QMetaObject::IndexOfMethod) {
183 int *result = reinterpret_cast<int *>(_a[0]);
184 {
185 using _t = void (QCompleter::*)(const QString & );
186 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QCompleter::activated)) {
187 *result = 0;
188 return;
189 }
190 }
191 {
192 using _t = void (QCompleter::*)(const QModelIndex & );
193 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QCompleter::activated)) {
194 *result = 1;
195 return;
196 }
197 }
198 {
199 using _t = void (QCompleter::*)(const QString & );
200 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QCompleter::highlighted)) {
201 *result = 2;
202 return;
203 }
204 }
205 {
206 using _t = void (QCompleter::*)(const QModelIndex & );
207 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QCompleter::highlighted)) {
208 *result = 3;
209 return;
210 }
211 }
212 }
213#ifndef QT_NO_PROPERTIES
214 else if (_c == QMetaObject::ReadProperty) {
215 Q_ASSERT(staticMetaObject.cast(_o));
216 auto *_t = static_cast<QCompleter *>(_o);
217 Q_UNUSED(_t)
218 void *_v = _a[0];
219 switch (_id) {
220 case 0: *reinterpret_cast< QString*>(_v) = _t->completionPrefix(); break;
221 case 1: *reinterpret_cast< ModelSorting*>(_v) = _t->modelSorting(); break;
222 case 2: *reinterpret_cast< Qt::MatchFlags*>(_v) = _t->filterMode(); break;
223 case 3: *reinterpret_cast< CompletionMode*>(_v) = _t->completionMode(); break;
224 case 4: *reinterpret_cast< int*>(_v) = _t->completionColumn(); break;
225 case 5: *reinterpret_cast< int*>(_v) = _t->completionRole(); break;
226 case 6: *reinterpret_cast< int*>(_v) = _t->maxVisibleItems(); break;
227 case 7: *reinterpret_cast< Qt::CaseSensitivity*>(_v) = _t->caseSensitivity(); break;
228 case 8: *reinterpret_cast< bool*>(_v) = _t->wrapAround(); break;
229 default: break;
230 }
231 } else if (_c == QMetaObject::WriteProperty) {
232 Q_ASSERT(staticMetaObject.cast(_o));
233 auto *_t = static_cast<QCompleter *>(_o);
234 Q_UNUSED(_t)
235 void *_v = _a[0];
236 switch (_id) {
237 case 0: _t->setCompletionPrefix(*reinterpret_cast< QString*>(_v)); break;
238 case 1: _t->setModelSorting(*reinterpret_cast< ModelSorting*>(_v)); break;
239 case 2: _t->setFilterMode(*reinterpret_cast< Qt::MatchFlags*>(_v)); break;
240 case 3: _t->setCompletionMode(*reinterpret_cast< CompletionMode*>(_v)); break;
241 case 4: _t->setCompletionColumn(*reinterpret_cast< int*>(_v)); break;
242 case 5: _t->setCompletionRole(*reinterpret_cast< int*>(_v)); break;
243 case 6: _t->setMaxVisibleItems(*reinterpret_cast< int*>(_v)); break;
244 case 7: _t->setCaseSensitivity(*reinterpret_cast< Qt::CaseSensitivity*>(_v)); break;
245 case 8: _t->setWrapAround(*reinterpret_cast< bool*>(_v)); break;
246 default: break;
247 }
248 } else if (_c == QMetaObject::ResetProperty) {
249 } else if (_c == QMetaObject::BindableProperty) {
250 }
251#endif // QT_NO_PROPERTIES
252}
253
254const QMetaObject QCompleter::staticMetaObject = { {
255 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
256 qt_meta_stringdata_QCompleter.offsetsAndSize,
257 qt_meta_data_QCompleter,
258 qt_static_metacall,
259 nullptr,
260qt_incomplete_metaTypeArray<qt_meta_stringdata_QCompleter_t
261, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<ModelSorting, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::MatchFlags, std::true_type>, QtPrivate::TypeAndForceComplete<CompletionMode, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::CaseSensitivity, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>
262, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QRect &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QModelIndex, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QItemSelection &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>
263
264
265>,
266 nullptr
267} };
268
269
270const QMetaObject *QCompleter::metaObject() const
271{
272 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
273}
274
275void *QCompleter::qt_metacast(const char *_clname)
276{
277 if (!_clname) return nullptr;
278 if (!strcmp(_clname, qt_meta_stringdata_QCompleter.stringdata0))
279 return static_cast<void*>(this);
280 return QObject::qt_metacast(_clname);
281}
282
283int QCompleter::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
284{
285 _id = QObject::qt_metacall(_c, _id, _a);
286 if (_id < 0)
287 return _id;
288 if (_c == QMetaObject::InvokeMetaMethod) {
289 if (_id < 12)
290 qt_static_metacall(this, _c, _id, _a);
291 _id -= 12;
292 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
293 if (_id < 12)
294 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
295 _id -= 12;
296 }
297#ifndef QT_NO_PROPERTIES
298 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
299 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
300 || _c == QMetaObject::RegisterPropertyMetaType) {
301 qt_static_metacall(this, _c, _id, _a);
302 _id -= 9;
303 }
304#endif // QT_NO_PROPERTIES
305 return _id;
306}
307
308// SIGNAL 0
309void QCompleter::activated(const QString & _t1)
310{
311 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
312 QMetaObject::activate(this, &staticMetaObject, 0, _a);
313}
314
315// SIGNAL 1
316void QCompleter::activated(const QModelIndex & _t1)
317{
318 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
319 QMetaObject::activate(this, &staticMetaObject, 1, _a);
320}
321
322// SIGNAL 2
323void QCompleter::highlighted(const QString & _t1)
324{
325 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
326 QMetaObject::activate(this, &staticMetaObject, 2, _a);
327}
328
329// SIGNAL 3
330void QCompleter::highlighted(const QModelIndex & _t1)
331{
332 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
333 QMetaObject::activate(this, &staticMetaObject, 3, _a);
334}
335QT_WARNING_POP
336QT_END_MOC_NAMESPACE
337