1/****************************************************************************
2** Meta object code from reading C++ file 'qplaintextedit.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 "widgets/qplaintextedit.h"
11#include <QtGui/qtextcursor.h>
12#include <QtCore/qbytearray.h>
13#include <QtCore/qmetatype.h>
14#if !defined(Q_MOC_OUTPUT_REVISION)
15#error "The header file 'qplaintextedit.h' doesn't include <QObject>."
16#elif Q_MOC_OUTPUT_REVISION != 68
17#error "This file was generated using the moc from 6.0.0. It"
18#error "cannot be used with the include files from this version of Qt."
19#error "(The moc has changed too much.)"
20#endif
21
22QT_BEGIN_MOC_NAMESPACE
23QT_WARNING_PUSH
24QT_WARNING_DISABLE_DEPRECATED
25struct qt_meta_stringdata_QPlainTextEdit_t {
26 const uint offsetsAndSize[122];
27 char stringdata0[772];
28};
29#define QT_MOC_LITERAL(ofs, len) \
30 uint(offsetof(qt_meta_stringdata_QPlainTextEdit_t, stringdata0) + ofs), len
31static const qt_meta_stringdata_QPlainTextEdit_t qt_meta_stringdata_QPlainTextEdit = {
32 {
33QT_MOC_LITERAL(0, 14), // "QPlainTextEdit"
34QT_MOC_LITERAL(15, 11), // "textChanged"
35QT_MOC_LITERAL(27, 0), // ""
36QT_MOC_LITERAL(28, 13), // "undoAvailable"
37QT_MOC_LITERAL(42, 1), // "b"
38QT_MOC_LITERAL(44, 13), // "redoAvailable"
39QT_MOC_LITERAL(58, 13), // "copyAvailable"
40QT_MOC_LITERAL(72, 16), // "selectionChanged"
41QT_MOC_LITERAL(89, 21), // "cursorPositionChanged"
42QT_MOC_LITERAL(111, 13), // "updateRequest"
43QT_MOC_LITERAL(125, 4), // "rect"
44QT_MOC_LITERAL(130, 2), // "dy"
45QT_MOC_LITERAL(133, 17), // "blockCountChanged"
46QT_MOC_LITERAL(151, 13), // "newBlockCount"
47QT_MOC_LITERAL(165, 19), // "modificationChanged"
48QT_MOC_LITERAL(185, 12), // "setPlainText"
49QT_MOC_LITERAL(198, 4), // "text"
50QT_MOC_LITERAL(203, 3), // "cut"
51QT_MOC_LITERAL(207, 4), // "copy"
52QT_MOC_LITERAL(212, 5), // "paste"
53QT_MOC_LITERAL(218, 4), // "undo"
54QT_MOC_LITERAL(223, 4), // "redo"
55QT_MOC_LITERAL(228, 5), // "clear"
56QT_MOC_LITERAL(234, 9), // "selectAll"
57QT_MOC_LITERAL(244, 15), // "insertPlainText"
58QT_MOC_LITERAL(260, 15), // "appendPlainText"
59QT_MOC_LITERAL(276, 10), // "appendHtml"
60QT_MOC_LITERAL(287, 4), // "html"
61QT_MOC_LITERAL(292, 12), // "centerCursor"
62QT_MOC_LITERAL(305, 6), // "zoomIn"
63QT_MOC_LITERAL(312, 5), // "range"
64QT_MOC_LITERAL(318, 7), // "zoomOut"
65QT_MOC_LITERAL(326, 18), // "_q_repaintContents"
66QT_MOC_LITERAL(345, 1), // "r"
67QT_MOC_LITERAL(347, 14), // "_q_textChanged"
68QT_MOC_LITERAL(362, 19), // "_q_adjustScrollbars"
69QT_MOC_LITERAL(382, 35), // "_q_verticalScrollbarActionTri..."
70QT_MOC_LITERAL(418, 24), // "_q_cursorPositionChanged"
71QT_MOC_LITERAL(443, 16), // "inputMethodQuery"
72QT_MOC_LITERAL(460, 20), // "Qt::InputMethodQuery"
73QT_MOC_LITERAL(481, 5), // "query"
74QT_MOC_LITERAL(487, 8), // "argument"
75QT_MOC_LITERAL(496, 15), // "tabChangesFocus"
76QT_MOC_LITERAL(512, 13), // "documentTitle"
77QT_MOC_LITERAL(526, 15), // "undoRedoEnabled"
78QT_MOC_LITERAL(542, 12), // "lineWrapMode"
79QT_MOC_LITERAL(555, 12), // "LineWrapMode"
80QT_MOC_LITERAL(568, 8), // "readOnly"
81QT_MOC_LITERAL(577, 9), // "plainText"
82QT_MOC_LITERAL(587, 13), // "overwriteMode"
83QT_MOC_LITERAL(601, 15), // "tabStopDistance"
84QT_MOC_LITERAL(617, 11), // "cursorWidth"
85QT_MOC_LITERAL(629, 20), // "textInteractionFlags"
86QT_MOC_LITERAL(650, 24), // "Qt::TextInteractionFlags"
87QT_MOC_LITERAL(675, 10), // "blockCount"
88QT_MOC_LITERAL(686, 17), // "maximumBlockCount"
89QT_MOC_LITERAL(704, 17), // "backgroundVisible"
90QT_MOC_LITERAL(722, 14), // "centerOnScroll"
91QT_MOC_LITERAL(737, 15), // "placeholderText"
92QT_MOC_LITERAL(753, 6), // "NoWrap"
93QT_MOC_LITERAL(760, 11) // "WidgetWidth"
94
95 },
96 "QPlainTextEdit\0textChanged\0\0undoAvailable\0"
97 "b\0redoAvailable\0copyAvailable\0"
98 "selectionChanged\0cursorPositionChanged\0"
99 "updateRequest\0rect\0dy\0blockCountChanged\0"
100 "newBlockCount\0modificationChanged\0"
101 "setPlainText\0text\0cut\0copy\0paste\0undo\0"
102 "redo\0clear\0selectAll\0insertPlainText\0"
103 "appendPlainText\0appendHtml\0html\0"
104 "centerCursor\0zoomIn\0range\0zoomOut\0"
105 "_q_repaintContents\0r\0_q_textChanged\0"
106 "_q_adjustScrollbars\0"
107 "_q_verticalScrollbarActionTriggered\0"
108 "_q_cursorPositionChanged\0inputMethodQuery\0"
109 "Qt::InputMethodQuery\0query\0argument\0"
110 "tabChangesFocus\0documentTitle\0"
111 "undoRedoEnabled\0lineWrapMode\0LineWrapMode\0"
112 "readOnly\0plainText\0overwriteMode\0"
113 "tabStopDistance\0cursorWidth\0"
114 "textInteractionFlags\0Qt::TextInteractionFlags\0"
115 "blockCount\0maximumBlockCount\0"
116 "backgroundVisible\0centerOnScroll\0"
117 "placeholderText\0NoWrap\0WidgetWidth"
118};
119#undef QT_MOC_LITERAL
120
121static const uint qt_meta_data_QPlainTextEdit[] = {
122
123 // content:
124 9, // revision
125 0, // classname
126 0, 0, // classinfo
127 31, 14, // methods
128 15, 265, // properties
129 1, 340, // enums/sets
130 0, 0, // constructors
131 0, // flags
132 9, // signalCount
133
134 // signals: name, argc, parameters, tag, flags, initial metatype offsets
135 1, 0, 200, 2, 0x06, 15 /* Public */,
136 3, 1, 201, 2, 0x06, 16 /* Public */,
137 5, 1, 204, 2, 0x06, 18 /* Public */,
138 6, 1, 207, 2, 0x06, 20 /* Public */,
139 7, 0, 210, 2, 0x06, 22 /* Public */,
140 8, 0, 211, 2, 0x06, 23 /* Public */,
141 9, 2, 212, 2, 0x06, 24 /* Public */,
142 12, 1, 217, 2, 0x06, 27 /* Public */,
143 14, 1, 220, 2, 0x06, 29 /* Public */,
144
145 // slots: name, argc, parameters, tag, flags, initial metatype offsets
146 15, 1, 223, 2, 0x0a, 31 /* Public */,
147 17, 0, 226, 2, 0x0a, 33 /* Public */,
148 18, 0, 227, 2, 0x0a, 34 /* Public */,
149 19, 0, 228, 2, 0x0a, 35 /* Public */,
150 20, 0, 229, 2, 0x0a, 36 /* Public */,
151 21, 0, 230, 2, 0x0a, 37 /* Public */,
152 22, 0, 231, 2, 0x0a, 38 /* Public */,
153 23, 0, 232, 2, 0x0a, 39 /* Public */,
154 24, 1, 233, 2, 0x0a, 40 /* Public */,
155 25, 1, 236, 2, 0x0a, 42 /* Public */,
156 26, 1, 239, 2, 0x0a, 44 /* Public */,
157 28, 0, 242, 2, 0x0a, 46 /* Public */,
158 29, 1, 243, 2, 0x0a, 47 /* Public */,
159 29, 0, 246, 2, 0x2a, 49 /* Public | MethodCloned */,
160 31, 1, 247, 2, 0x0a, 50 /* Public */,
161 31, 0, 250, 2, 0x2a, 52 /* Public | MethodCloned */,
162 32, 1, 251, 2, 0x08, 53 /* Private */,
163 34, 0, 254, 2, 0x08, 55 /* Private */,
164 35, 0, 255, 2, 0x08, 56 /* Private */,
165 36, 1, 256, 2, 0x08, 57 /* Private */,
166 37, 0, 259, 2, 0x08, 59 /* Private */,
167
168 // methods: name, argc, parameters, tag, flags, initial metatype offsets
169 38, 2, 260, 2, 0x02, 60 /* Public */,
170
171 // signals: parameters
172 QMetaType::Void,
173 QMetaType::Void, QMetaType::Bool, 4,
174 QMetaType::Void, QMetaType::Bool, 4,
175 QMetaType::Void, QMetaType::Bool, 4,
176 QMetaType::Void,
177 QMetaType::Void,
178 QMetaType::Void, QMetaType::QRect, QMetaType::Int, 10, 11,
179 QMetaType::Void, QMetaType::Int, 13,
180 QMetaType::Void, QMetaType::Bool, 2,
181
182 // slots: parameters
183 QMetaType::Void, QMetaType::QString, 16,
184 QMetaType::Void,
185 QMetaType::Void,
186 QMetaType::Void,
187 QMetaType::Void,
188 QMetaType::Void,
189 QMetaType::Void,
190 QMetaType::Void,
191 QMetaType::Void, QMetaType::QString, 16,
192 QMetaType::Void, QMetaType::QString, 16,
193 QMetaType::Void, QMetaType::QString, 27,
194 QMetaType::Void,
195 QMetaType::Void, QMetaType::Int, 30,
196 QMetaType::Void,
197 QMetaType::Void, QMetaType::Int, 30,
198 QMetaType::Void,
199 QMetaType::Void, QMetaType::QRectF, 33,
200 QMetaType::Void,
201 QMetaType::Void,
202 QMetaType::Void, QMetaType::Int, 2,
203 QMetaType::Void,
204
205 // methods: parameters
206 QMetaType::QVariant, 0x80000000 | 39, QMetaType::QVariant, 40, 41,
207
208 // properties: name, type, flags
209 42, QMetaType::Bool, 0x00015103, uint(-1), 0,
210 43, QMetaType::QString, 0x00015103, uint(-1), 0,
211 44, QMetaType::Bool, 0x00015103, uint(-1), 0,
212 45, 0x80000000 | 46, 0x0001510b, uint(-1), 0,
213 47, QMetaType::Bool, 0x00015103, uint(-1), 0,
214 48, QMetaType::QString, 0x00115103, uint(0), 0,
215 49, QMetaType::Bool, 0x00015103, uint(-1), 0,
216 50, QMetaType::QReal, 0x00015103, uint(-1), 0,
217 51, QMetaType::Int, 0x00015103, uint(-1), 0,
218 52, 0x80000000 | 53, 0x0001510b, uint(-1), 0,
219 54, QMetaType::Int, 0x00015001, uint(-1), 0,
220 55, QMetaType::Int, 0x00015103, uint(-1), 0,
221 56, QMetaType::Bool, 0x00015103, uint(-1), 0,
222 57, QMetaType::Bool, 0x00015103, uint(-1), 0,
223 58, QMetaType::QString, 0x00015103, uint(-1), 0,
224
225 // enums: name, alias, flags, count, data
226 46, 46, 0x0, 2, 345,
227
228 // enum data: key, value
229 59, uint(QPlainTextEdit::NoWrap),
230 60, uint(QPlainTextEdit::WidgetWidth),
231
232 0 // eod
233};
234
235void QPlainTextEdit::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
236{
237 if (_c == QMetaObject::InvokeMetaMethod) {
238 Q_ASSERT(staticMetaObject.cast(_o));
239 auto *_t = static_cast<QPlainTextEdit *>(_o);
240 Q_UNUSED(_t)
241 switch (_id) {
242 case 0: _t->textChanged(); break;
243 case 1: _t->undoAvailable((*reinterpret_cast< bool(*)>(_a[1]))); break;
244 case 2: _t->redoAvailable((*reinterpret_cast< bool(*)>(_a[1]))); break;
245 case 3: _t->copyAvailable((*reinterpret_cast< bool(*)>(_a[1]))); break;
246 case 4: _t->selectionChanged(); break;
247 case 5: _t->cursorPositionChanged(); break;
248 case 6: _t->updateRequest((*reinterpret_cast< const QRect(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
249 case 7: _t->blockCountChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
250 case 8: _t->modificationChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
251 case 9: _t->setPlainText((*reinterpret_cast< const QString(*)>(_a[1]))); break;
252 case 10: _t->cut(); break;
253 case 11: _t->copy(); break;
254 case 12: _t->paste(); break;
255 case 13: _t->undo(); break;
256 case 14: _t->redo(); break;
257 case 15: _t->clear(); break;
258 case 16: _t->selectAll(); break;
259 case 17: _t->insertPlainText((*reinterpret_cast< const QString(*)>(_a[1]))); break;
260 case 18: _t->appendPlainText((*reinterpret_cast< const QString(*)>(_a[1]))); break;
261 case 19: _t->appendHtml((*reinterpret_cast< const QString(*)>(_a[1]))); break;
262 case 20: _t->centerCursor(); break;
263 case 21: _t->zoomIn((*reinterpret_cast< int(*)>(_a[1]))); break;
264 case 22: _t->zoomIn(); break;
265 case 23: _t->zoomOut((*reinterpret_cast< int(*)>(_a[1]))); break;
266 case 24: _t->zoomOut(); break;
267 case 25: _t->d_func()->_q_repaintContents((*reinterpret_cast< const QRectF(*)>(_a[1]))); break;
268 case 26: _t->d_func()->_q_textChanged(); break;
269 case 27: _t->d_func()->_q_adjustScrollbars(); break;
270 case 28: _t->d_func()->_q_verticalScrollbarActionTriggered((*reinterpret_cast< int(*)>(_a[1]))); break;
271 case 29: _t->d_func()->_q_cursorPositionChanged(); break;
272 case 30: { QVariant _r = _t->inputMethodQuery((*reinterpret_cast< Qt::InputMethodQuery(*)>(_a[1])),(*reinterpret_cast< QVariant(*)>(_a[2])));
273 if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = std::move(_r); } break;
274 default: ;
275 }
276 } else if (_c == QMetaObject::IndexOfMethod) {
277 int *result = reinterpret_cast<int *>(_a[0]);
278 {
279 using _t = void (QPlainTextEdit::*)();
280 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPlainTextEdit::textChanged)) {
281 *result = 0;
282 return;
283 }
284 }
285 {
286 using _t = void (QPlainTextEdit::*)(bool );
287 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPlainTextEdit::undoAvailable)) {
288 *result = 1;
289 return;
290 }
291 }
292 {
293 using _t = void (QPlainTextEdit::*)(bool );
294 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPlainTextEdit::redoAvailable)) {
295 *result = 2;
296 return;
297 }
298 }
299 {
300 using _t = void (QPlainTextEdit::*)(bool );
301 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPlainTextEdit::copyAvailable)) {
302 *result = 3;
303 return;
304 }
305 }
306 {
307 using _t = void (QPlainTextEdit::*)();
308 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPlainTextEdit::selectionChanged)) {
309 *result = 4;
310 return;
311 }
312 }
313 {
314 using _t = void (QPlainTextEdit::*)();
315 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPlainTextEdit::cursorPositionChanged)) {
316 *result = 5;
317 return;
318 }
319 }
320 {
321 using _t = void (QPlainTextEdit::*)(const QRect & , int );
322 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPlainTextEdit::updateRequest)) {
323 *result = 6;
324 return;
325 }
326 }
327 {
328 using _t = void (QPlainTextEdit::*)(int );
329 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPlainTextEdit::blockCountChanged)) {
330 *result = 7;
331 return;
332 }
333 }
334 {
335 using _t = void (QPlainTextEdit::*)(bool );
336 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPlainTextEdit::modificationChanged)) {
337 *result = 8;
338 return;
339 }
340 }
341 }
342#ifndef QT_NO_PROPERTIES
343 else if (_c == QMetaObject::ReadProperty) {
344 Q_ASSERT(staticMetaObject.cast(_o));
345 auto *_t = static_cast<QPlainTextEdit *>(_o);
346 Q_UNUSED(_t)
347 void *_v = _a[0];
348 switch (_id) {
349 case 0: *reinterpret_cast< bool*>(_v) = _t->tabChangesFocus(); break;
350 case 1: *reinterpret_cast< QString*>(_v) = _t->documentTitle(); break;
351 case 2: *reinterpret_cast< bool*>(_v) = _t->isUndoRedoEnabled(); break;
352 case 3: *reinterpret_cast< LineWrapMode*>(_v) = _t->lineWrapMode(); break;
353 case 4: *reinterpret_cast< bool*>(_v) = _t->isReadOnly(); break;
354 case 5: *reinterpret_cast< QString*>(_v) = _t->toPlainText(); break;
355 case 6: *reinterpret_cast< bool*>(_v) = _t->overwriteMode(); break;
356 case 7: *reinterpret_cast< qreal*>(_v) = _t->tabStopDistance(); break;
357 case 8: *reinterpret_cast< int*>(_v) = _t->cursorWidth(); break;
358 case 9: *reinterpret_cast< Qt::TextInteractionFlags*>(_v) = _t->textInteractionFlags(); break;
359 case 10: *reinterpret_cast< int*>(_v) = _t->blockCount(); break;
360 case 11: *reinterpret_cast< int*>(_v) = _t->maximumBlockCount(); break;
361 case 12: *reinterpret_cast< bool*>(_v) = _t->backgroundVisible(); break;
362 case 13: *reinterpret_cast< bool*>(_v) = _t->centerOnScroll(); break;
363 case 14: *reinterpret_cast< QString*>(_v) = _t->placeholderText(); break;
364 default: break;
365 }
366 } else if (_c == QMetaObject::WriteProperty) {
367 Q_ASSERT(staticMetaObject.cast(_o));
368 auto *_t = static_cast<QPlainTextEdit *>(_o);
369 Q_UNUSED(_t)
370 void *_v = _a[0];
371 switch (_id) {
372 case 0: _t->setTabChangesFocus(*reinterpret_cast< bool*>(_v)); break;
373 case 1: _t->setDocumentTitle(*reinterpret_cast< QString*>(_v)); break;
374 case 2: _t->setUndoRedoEnabled(*reinterpret_cast< bool*>(_v)); break;
375 case 3: _t->setLineWrapMode(*reinterpret_cast< LineWrapMode*>(_v)); break;
376 case 4: _t->setReadOnly(*reinterpret_cast< bool*>(_v)); break;
377 case 5: _t->setPlainText(*reinterpret_cast< QString*>(_v)); break;
378 case 6: _t->setOverwriteMode(*reinterpret_cast< bool*>(_v)); break;
379 case 7: _t->setTabStopDistance(*reinterpret_cast< qreal*>(_v)); break;
380 case 8: _t->setCursorWidth(*reinterpret_cast< int*>(_v)); break;
381 case 9: _t->setTextInteractionFlags(*reinterpret_cast< Qt::TextInteractionFlags*>(_v)); break;
382 case 11: _t->setMaximumBlockCount(*reinterpret_cast< int*>(_v)); break;
383 case 12: _t->setBackgroundVisible(*reinterpret_cast< bool*>(_v)); break;
384 case 13: _t->setCenterOnScroll(*reinterpret_cast< bool*>(_v)); break;
385 case 14: _t->setPlaceholderText(*reinterpret_cast< QString*>(_v)); break;
386 default: break;
387 }
388 } else if (_c == QMetaObject::ResetProperty) {
389 } else if (_c == QMetaObject::BindableProperty) {
390 }
391#endif // QT_NO_PROPERTIES
392}
393
394const QMetaObject QPlainTextEdit::staticMetaObject = { {
395 QMetaObject::SuperData::link<QAbstractScrollArea::staticMetaObject>(),
396 qt_meta_stringdata_QPlainTextEdit.offsetsAndSize,
397 qt_meta_data_QPlainTextEdit,
398 qt_static_metacall,
399 nullptr,
400qt_incomplete_metaTypeArray<qt_meta_stringdata_QPlainTextEdit_t
401, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<LineWrapMode, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::TextInteractionFlags, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_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<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QRect &, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>
402, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, 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 QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QRectF &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
403, QtPrivate::TypeAndForceComplete<QVariant, std::false_type>, QtPrivate::TypeAndForceComplete<Qt::InputMethodQuery, std::false_type>, QtPrivate::TypeAndForceComplete<QVariant, std::false_type>
404
405>,
406 nullptr
407} };
408
409
410const QMetaObject *QPlainTextEdit::metaObject() const
411{
412 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
413}
414
415void *QPlainTextEdit::qt_metacast(const char *_clname)
416{
417 if (!_clname) return nullptr;
418 if (!strcmp(_clname, qt_meta_stringdata_QPlainTextEdit.stringdata0))
419 return static_cast<void*>(this);
420 return QAbstractScrollArea::qt_metacast(_clname);
421}
422
423int QPlainTextEdit::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
424{
425 _id = QAbstractScrollArea::qt_metacall(_c, _id, _a);
426 if (_id < 0)
427 return _id;
428 if (_c == QMetaObject::InvokeMetaMethod) {
429 if (_id < 31)
430 qt_static_metacall(this, _c, _id, _a);
431 _id -= 31;
432 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
433 if (_id < 31)
434 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
435 _id -= 31;
436 }
437#ifndef QT_NO_PROPERTIES
438 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
439 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
440 || _c == QMetaObject::RegisterPropertyMetaType) {
441 qt_static_metacall(this, _c, _id, _a);
442 _id -= 15;
443 }
444#endif // QT_NO_PROPERTIES
445 return _id;
446}
447
448// SIGNAL 0
449void QPlainTextEdit::textChanged()
450{
451 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
452}
453
454// SIGNAL 1
455void QPlainTextEdit::undoAvailable(bool _t1)
456{
457 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
458 QMetaObject::activate(this, &staticMetaObject, 1, _a);
459}
460
461// SIGNAL 2
462void QPlainTextEdit::redoAvailable(bool _t1)
463{
464 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
465 QMetaObject::activate(this, &staticMetaObject, 2, _a);
466}
467
468// SIGNAL 3
469void QPlainTextEdit::copyAvailable(bool _t1)
470{
471 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
472 QMetaObject::activate(this, &staticMetaObject, 3, _a);
473}
474
475// SIGNAL 4
476void QPlainTextEdit::selectionChanged()
477{
478 QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
479}
480
481// SIGNAL 5
482void QPlainTextEdit::cursorPositionChanged()
483{
484 QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
485}
486
487// SIGNAL 6
488void QPlainTextEdit::updateRequest(const QRect & _t1, int _t2)
489{
490 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
491 QMetaObject::activate(this, &staticMetaObject, 6, _a);
492}
493
494// SIGNAL 7
495void QPlainTextEdit::blockCountChanged(int _t1)
496{
497 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
498 QMetaObject::activate(this, &staticMetaObject, 7, _a);
499}
500
501// SIGNAL 8
502void QPlainTextEdit::modificationChanged(bool _t1)
503{
504 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
505 QMetaObject::activate(this, &staticMetaObject, 8, _a);
506}
507struct qt_meta_stringdata_QPlainTextDocumentLayout_t {
508 const uint offsetsAndSize[4];
509 char stringdata0[37];
510};
511#define QT_MOC_LITERAL(ofs, len) \
512 uint(offsetof(qt_meta_stringdata_QPlainTextDocumentLayout_t, stringdata0) + ofs), len
513static const qt_meta_stringdata_QPlainTextDocumentLayout_t qt_meta_stringdata_QPlainTextDocumentLayout = {
514 {
515QT_MOC_LITERAL(0, 24), // "QPlainTextDocumentLayout"
516QT_MOC_LITERAL(25, 11) // "cursorWidth"
517
518 },
519 "QPlainTextDocumentLayout\0cursorWidth"
520};
521#undef QT_MOC_LITERAL
522
523static const uint qt_meta_data_QPlainTextDocumentLayout[] = {
524
525 // content:
526 9, // revision
527 0, // classname
528 0, 0, // classinfo
529 0, 0, // methods
530 1, 14, // properties
531 0, 0, // enums/sets
532 0, 0, // constructors
533 0, // flags
534 0, // signalCount
535
536 // properties: name, type, flags
537 1, QMetaType::Int, 0x00015103, uint(-1), 0,
538
539 0 // eod
540};
541
542void QPlainTextDocumentLayout::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
543{
544
545#ifndef QT_NO_PROPERTIES
546 if (_c == QMetaObject::ReadProperty) {
547 Q_ASSERT(staticMetaObject.cast(_o));
548 auto *_t = static_cast<QPlainTextDocumentLayout *>(_o);
549 Q_UNUSED(_t)
550 void *_v = _a[0];
551 switch (_id) {
552 case 0: *reinterpret_cast< int*>(_v) = _t->cursorWidth(); break;
553 default: break;
554 }
555 } else if (_c == QMetaObject::WriteProperty) {
556 Q_ASSERT(staticMetaObject.cast(_o));
557 auto *_t = static_cast<QPlainTextDocumentLayout *>(_o);
558 Q_UNUSED(_t)
559 void *_v = _a[0];
560 switch (_id) {
561 case 0: _t->setCursorWidth(*reinterpret_cast< int*>(_v)); break;
562 default: break;
563 }
564 } else if (_c == QMetaObject::ResetProperty) {
565 } else if (_c == QMetaObject::BindableProperty) {
566 }
567#endif // QT_NO_PROPERTIES
568 Q_UNUSED(_o);
569 Q_UNUSED(_id);
570 Q_UNUSED(_c);
571 Q_UNUSED(_a);
572}
573
574const QMetaObject QPlainTextDocumentLayout::staticMetaObject = { {
575 QMetaObject::SuperData::link<QAbstractTextDocumentLayout::staticMetaObject>(),
576 qt_meta_stringdata_QPlainTextDocumentLayout.offsetsAndSize,
577 qt_meta_data_QPlainTextDocumentLayout,
578 qt_static_metacall,
579 nullptr,
580qt_incomplete_metaTypeArray<qt_meta_stringdata_QPlainTextDocumentLayout_t
581, QtPrivate::TypeAndForceComplete<int, std::true_type>
582
583
584
585>,
586 nullptr
587} };
588
589
590const QMetaObject *QPlainTextDocumentLayout::metaObject() const
591{
592 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
593}
594
595void *QPlainTextDocumentLayout::qt_metacast(const char *_clname)
596{
597 if (!_clname) return nullptr;
598 if (!strcmp(_clname, qt_meta_stringdata_QPlainTextDocumentLayout.stringdata0))
599 return static_cast<void*>(this);
600 return QAbstractTextDocumentLayout::qt_metacast(_clname);
601}
602
603int QPlainTextDocumentLayout::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
604{
605 _id = QAbstractTextDocumentLayout::qt_metacall(_c, _id, _a);
606 if (_id < 0)
607 return _id;
608
609#ifndef QT_NO_PROPERTIES
610 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
611 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
612 || _c == QMetaObject::RegisterPropertyMetaType) {
613 qt_static_metacall(this, _c, _id, _a);
614 _id -= 1;
615 }
616#endif // QT_NO_PROPERTIES
617 return _id;
618}
619QT_WARNING_POP
620QT_END_MOC_NAMESPACE
621