1/****************************************************************************
2** Meta object code from reading C++ file 'qtextedit.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/qtextedit.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 'qtextedit.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_QTextEdit_t {
26 const uint offsetsAndSize[182];
27 char stringdata0[1120];
28};
29#define QT_MOC_LITERAL(ofs, len) \
30 uint(offsetof(qt_meta_stringdata_QTextEdit_t, stringdata0) + ofs), len
31static const qt_meta_stringdata_QTextEdit_t qt_meta_stringdata_QTextEdit = {
32 {
33QT_MOC_LITERAL(0, 9), // "QTextEdit"
34QT_MOC_LITERAL(10, 11), // "textChanged"
35QT_MOC_LITERAL(22, 0), // ""
36QT_MOC_LITERAL(23, 13), // "undoAvailable"
37QT_MOC_LITERAL(37, 1), // "b"
38QT_MOC_LITERAL(39, 13), // "redoAvailable"
39QT_MOC_LITERAL(53, 24), // "currentCharFormatChanged"
40QT_MOC_LITERAL(78, 15), // "QTextCharFormat"
41QT_MOC_LITERAL(94, 6), // "format"
42QT_MOC_LITERAL(101, 13), // "copyAvailable"
43QT_MOC_LITERAL(115, 16), // "selectionChanged"
44QT_MOC_LITERAL(132, 21), // "cursorPositionChanged"
45QT_MOC_LITERAL(154, 16), // "setFontPointSize"
46QT_MOC_LITERAL(171, 1), // "s"
47QT_MOC_LITERAL(173, 13), // "setFontFamily"
48QT_MOC_LITERAL(187, 10), // "fontFamily"
49QT_MOC_LITERAL(198, 13), // "setFontWeight"
50QT_MOC_LITERAL(212, 1), // "w"
51QT_MOC_LITERAL(214, 16), // "setFontUnderline"
52QT_MOC_LITERAL(231, 13), // "setFontItalic"
53QT_MOC_LITERAL(245, 12), // "setTextColor"
54QT_MOC_LITERAL(258, 1), // "c"
55QT_MOC_LITERAL(260, 22), // "setTextBackgroundColor"
56QT_MOC_LITERAL(283, 14), // "setCurrentFont"
57QT_MOC_LITERAL(298, 1), // "f"
58QT_MOC_LITERAL(300, 12), // "setAlignment"
59QT_MOC_LITERAL(313, 13), // "Qt::Alignment"
60QT_MOC_LITERAL(327, 1), // "a"
61QT_MOC_LITERAL(329, 12), // "setPlainText"
62QT_MOC_LITERAL(342, 4), // "text"
63QT_MOC_LITERAL(347, 7), // "setHtml"
64QT_MOC_LITERAL(355, 11), // "setMarkdown"
65QT_MOC_LITERAL(367, 8), // "markdown"
66QT_MOC_LITERAL(376, 7), // "setText"
67QT_MOC_LITERAL(384, 3), // "cut"
68QT_MOC_LITERAL(388, 4), // "copy"
69QT_MOC_LITERAL(393, 5), // "paste"
70QT_MOC_LITERAL(399, 4), // "undo"
71QT_MOC_LITERAL(404, 4), // "redo"
72QT_MOC_LITERAL(409, 5), // "clear"
73QT_MOC_LITERAL(415, 9), // "selectAll"
74QT_MOC_LITERAL(425, 15), // "insertPlainText"
75QT_MOC_LITERAL(441, 10), // "insertHtml"
76QT_MOC_LITERAL(452, 6), // "append"
77QT_MOC_LITERAL(459, 14), // "scrollToAnchor"
78QT_MOC_LITERAL(474, 4), // "name"
79QT_MOC_LITERAL(479, 6), // "zoomIn"
80QT_MOC_LITERAL(486, 5), // "range"
81QT_MOC_LITERAL(492, 7), // "zoomOut"
82QT_MOC_LITERAL(500, 18), // "_q_repaintContents"
83QT_MOC_LITERAL(519, 1), // "r"
84QT_MOC_LITERAL(521, 27), // "_q_currentCharFormatChanged"
85QT_MOC_LITERAL(549, 19), // "_q_adjustScrollbars"
86QT_MOC_LITERAL(569, 16), // "_q_ensureVisible"
87QT_MOC_LITERAL(586, 24), // "_q_cursorPositionChanged"
88QT_MOC_LITERAL(611, 32), // "_q_hoveredBlockWithMarkerChanged"
89QT_MOC_LITERAL(644, 10), // "QTextBlock"
90QT_MOC_LITERAL(655, 12), // "loadResource"
91QT_MOC_LITERAL(668, 4), // "type"
92QT_MOC_LITERAL(673, 16), // "inputMethodQuery"
93QT_MOC_LITERAL(690, 20), // "Qt::InputMethodQuery"
94QT_MOC_LITERAL(711, 5), // "query"
95QT_MOC_LITERAL(717, 8), // "argument"
96QT_MOC_LITERAL(726, 14), // "autoFormatting"
97QT_MOC_LITERAL(741, 14), // "AutoFormatting"
98QT_MOC_LITERAL(756, 15), // "tabChangesFocus"
99QT_MOC_LITERAL(772, 13), // "documentTitle"
100QT_MOC_LITERAL(786, 15), // "undoRedoEnabled"
101QT_MOC_LITERAL(802, 12), // "lineWrapMode"
102QT_MOC_LITERAL(815, 12), // "LineWrapMode"
103QT_MOC_LITERAL(828, 21), // "lineWrapColumnOrWidth"
104QT_MOC_LITERAL(850, 8), // "readOnly"
105QT_MOC_LITERAL(859, 4), // "html"
106QT_MOC_LITERAL(864, 9), // "plainText"
107QT_MOC_LITERAL(874, 13), // "overwriteMode"
108QT_MOC_LITERAL(888, 15), // "tabStopDistance"
109QT_MOC_LITERAL(904, 14), // "acceptRichText"
110QT_MOC_LITERAL(919, 11), // "cursorWidth"
111QT_MOC_LITERAL(931, 20), // "textInteractionFlags"
112QT_MOC_LITERAL(952, 24), // "Qt::TextInteractionFlags"
113QT_MOC_LITERAL(977, 8), // "document"
114QT_MOC_LITERAL(986, 14), // "QTextDocument*"
115QT_MOC_LITERAL(1001, 15), // "placeholderText"
116QT_MOC_LITERAL(1017, 6), // "NoWrap"
117QT_MOC_LITERAL(1024, 11), // "WidgetWidth"
118QT_MOC_LITERAL(1036, 15), // "FixedPixelWidth"
119QT_MOC_LITERAL(1052, 16), // "FixedColumnWidth"
120QT_MOC_LITERAL(1069, 18), // "AutoFormattingFlag"
121QT_MOC_LITERAL(1088, 8), // "AutoNone"
122QT_MOC_LITERAL(1097, 14), // "AutoBulletList"
123QT_MOC_LITERAL(1112, 7) // "AutoAll"
124
125 },
126 "QTextEdit\0textChanged\0\0undoAvailable\0"
127 "b\0redoAvailable\0currentCharFormatChanged\0"
128 "QTextCharFormat\0format\0copyAvailable\0"
129 "selectionChanged\0cursorPositionChanged\0"
130 "setFontPointSize\0s\0setFontFamily\0"
131 "fontFamily\0setFontWeight\0w\0setFontUnderline\0"
132 "setFontItalic\0setTextColor\0c\0"
133 "setTextBackgroundColor\0setCurrentFont\0"
134 "f\0setAlignment\0Qt::Alignment\0a\0"
135 "setPlainText\0text\0setHtml\0setMarkdown\0"
136 "markdown\0setText\0cut\0copy\0paste\0undo\0"
137 "redo\0clear\0selectAll\0insertPlainText\0"
138 "insertHtml\0append\0scrollToAnchor\0name\0"
139 "zoomIn\0range\0zoomOut\0_q_repaintContents\0"
140 "r\0_q_currentCharFormatChanged\0"
141 "_q_adjustScrollbars\0_q_ensureVisible\0"
142 "_q_cursorPositionChanged\0"
143 "_q_hoveredBlockWithMarkerChanged\0"
144 "QTextBlock\0loadResource\0type\0"
145 "inputMethodQuery\0Qt::InputMethodQuery\0"
146 "query\0argument\0autoFormatting\0"
147 "AutoFormatting\0tabChangesFocus\0"
148 "documentTitle\0undoRedoEnabled\0"
149 "lineWrapMode\0LineWrapMode\0"
150 "lineWrapColumnOrWidth\0readOnly\0html\0"
151 "plainText\0overwriteMode\0tabStopDistance\0"
152 "acceptRichText\0cursorWidth\0"
153 "textInteractionFlags\0Qt::TextInteractionFlags\0"
154 "document\0QTextDocument*\0placeholderText\0"
155 "NoWrap\0WidgetWidth\0FixedPixelWidth\0"
156 "FixedColumnWidth\0AutoFormattingFlag\0"
157 "AutoNone\0AutoBulletList\0AutoAll"
158};
159#undef QT_MOC_LITERAL
160
161static const uint qt_meta_data_QTextEdit[] = {
162
163 // content:
164 9, // revision
165 0, // classname
166 0, 0, // classinfo
167 43, 14, // methods
168 17, 377, // properties
169 2, 462, // enums/sets
170 0, 0, // constructors
171 0, // flags
172 7, // signalCount
173
174 // signals: name, argc, parameters, tag, flags, initial metatype offsets
175 1, 0, 272, 2, 0x06, 17 /* Public */,
176 3, 1, 273, 2, 0x06, 18 /* Public */,
177 5, 1, 276, 2, 0x06, 20 /* Public */,
178 6, 1, 279, 2, 0x06, 22 /* Public */,
179 9, 1, 282, 2, 0x06, 24 /* Public */,
180 10, 0, 285, 2, 0x06, 26 /* Public */,
181 11, 0, 286, 2, 0x06, 27 /* Public */,
182
183 // slots: name, argc, parameters, tag, flags, initial metatype offsets
184 12, 1, 287, 2, 0x0a, 28 /* Public */,
185 14, 1, 290, 2, 0x0a, 30 /* Public */,
186 16, 1, 293, 2, 0x0a, 32 /* Public */,
187 18, 1, 296, 2, 0x0a, 34 /* Public */,
188 19, 1, 299, 2, 0x0a, 36 /* Public */,
189 20, 1, 302, 2, 0x0a, 38 /* Public */,
190 22, 1, 305, 2, 0x0a, 40 /* Public */,
191 23, 1, 308, 2, 0x0a, 42 /* Public */,
192 25, 1, 311, 2, 0x0a, 44 /* Public */,
193 28, 1, 314, 2, 0x0a, 46 /* Public */,
194 30, 1, 317, 2, 0x0a, 48 /* Public */,
195 31, 1, 320, 2, 0x0a, 50 /* Public */,
196 33, 1, 323, 2, 0x0a, 52 /* Public */,
197 34, 0, 326, 2, 0x0a, 54 /* Public */,
198 35, 0, 327, 2, 0x0a, 55 /* Public */,
199 36, 0, 328, 2, 0x0a, 56 /* Public */,
200 37, 0, 329, 2, 0x0a, 57 /* Public */,
201 38, 0, 330, 2, 0x0a, 58 /* Public */,
202 39, 0, 331, 2, 0x0a, 59 /* Public */,
203 40, 0, 332, 2, 0x0a, 60 /* Public */,
204 41, 1, 333, 2, 0x0a, 61 /* Public */,
205 42, 1, 336, 2, 0x0a, 63 /* Public */,
206 43, 1, 339, 2, 0x0a, 65 /* Public */,
207 44, 1, 342, 2, 0x0a, 67 /* Public */,
208 46, 1, 345, 2, 0x0a, 69 /* Public */,
209 46, 0, 348, 2, 0x2a, 71 /* Public | MethodCloned */,
210 48, 1, 349, 2, 0x0a, 72 /* Public */,
211 48, 0, 352, 2, 0x2a, 74 /* Public | MethodCloned */,
212 49, 1, 353, 2, 0x08, 75 /* Private */,
213 51, 1, 356, 2, 0x08, 77 /* Private */,
214 52, 0, 359, 2, 0x08, 79 /* Private */,
215 53, 1, 360, 2, 0x08, 80 /* Private */,
216 54, 0, 363, 2, 0x08, 82 /* Private */,
217 55, 1, 364, 2, 0x08, 83 /* Private */,
218
219 // methods: name, argc, parameters, tag, flags, initial metatype offsets
220 57, 2, 367, 2, 0x02, 85 /* Public */,
221 59, 2, 372, 2, 0x02, 88 /* Public */,
222
223 // signals: parameters
224 QMetaType::Void,
225 QMetaType::Void, QMetaType::Bool, 4,
226 QMetaType::Void, QMetaType::Bool, 4,
227 QMetaType::Void, 0x80000000 | 7, 8,
228 QMetaType::Void, QMetaType::Bool, 4,
229 QMetaType::Void,
230 QMetaType::Void,
231
232 // slots: parameters
233 QMetaType::Void, QMetaType::QReal, 13,
234 QMetaType::Void, QMetaType::QString, 15,
235 QMetaType::Void, QMetaType::Int, 17,
236 QMetaType::Void, QMetaType::Bool, 4,
237 QMetaType::Void, QMetaType::Bool, 4,
238 QMetaType::Void, QMetaType::QColor, 21,
239 QMetaType::Void, QMetaType::QColor, 21,
240 QMetaType::Void, QMetaType::QFont, 24,
241 QMetaType::Void, 0x80000000 | 26, 27,
242 QMetaType::Void, QMetaType::QString, 29,
243 QMetaType::Void, QMetaType::QString, 29,
244 QMetaType::Void, QMetaType::QString, 32,
245 QMetaType::Void, QMetaType::QString, 29,
246 QMetaType::Void,
247 QMetaType::Void,
248 QMetaType::Void,
249 QMetaType::Void,
250 QMetaType::Void,
251 QMetaType::Void,
252 QMetaType::Void,
253 QMetaType::Void, QMetaType::QString, 29,
254 QMetaType::Void, QMetaType::QString, 29,
255 QMetaType::Void, QMetaType::QString, 29,
256 QMetaType::Void, QMetaType::QString, 45,
257 QMetaType::Void, QMetaType::Int, 47,
258 QMetaType::Void,
259 QMetaType::Void, QMetaType::Int, 47,
260 QMetaType::Void,
261 QMetaType::Void, QMetaType::QRectF, 50,
262 QMetaType::Void, 0x80000000 | 7, 2,
263 QMetaType::Void,
264 QMetaType::Void, QMetaType::QRectF, 2,
265 QMetaType::Void,
266 QMetaType::Void, 0x80000000 | 56, 2,
267
268 // methods: parameters
269 QMetaType::QVariant, QMetaType::Int, QMetaType::QUrl, 58, 45,
270 QMetaType::QVariant, 0x80000000 | 60, QMetaType::QVariant, 61, 62,
271
272 // properties: name, type, flags
273 63, 0x80000000 | 64, 0x0001510b, uint(-1), 0,
274 65, QMetaType::Bool, 0x00015103, uint(-1), 0,
275 66, QMetaType::QString, 0x00015103, uint(-1), 0,
276 67, QMetaType::Bool, 0x00015103, uint(-1), 0,
277 68, 0x80000000 | 69, 0x0001510b, uint(-1), 0,
278 70, QMetaType::Int, 0x00015103, uint(-1), 0,
279 71, QMetaType::Bool, 0x00015103, uint(-1), 0,
280 32, QMetaType::QString, 0x00015103, uint(0), 0,
281 72, QMetaType::QString, 0x00115103, uint(0), 0,
282 73, QMetaType::QString, 0x00014103, uint(-1), 0,
283 74, QMetaType::Bool, 0x00015103, uint(-1), 0,
284 75, QMetaType::QReal, 0x00015103, uint(-1), 0,
285 76, QMetaType::Bool, 0x00015103, uint(-1), 0,
286 77, QMetaType::Int, 0x00015103, uint(-1), 0,
287 78, 0x80000000 | 79, 0x0001510b, uint(-1), 0,
288 80, 0x80000000 | 81, 0x0001410b, uint(-1), 0,
289 82, QMetaType::QString, 0x00015103, uint(-1), 0,
290
291 // enums: name, alias, flags, count, data
292 69, 69, 0x0, 4, 472,
293 64, 87, 0x1, 3, 480,
294
295 // enum data: key, value
296 83, uint(QTextEdit::NoWrap),
297 84, uint(QTextEdit::WidgetWidth),
298 85, uint(QTextEdit::FixedPixelWidth),
299 86, uint(QTextEdit::FixedColumnWidth),
300 88, uint(QTextEdit::AutoNone),
301 89, uint(QTextEdit::AutoBulletList),
302 90, uint(QTextEdit::AutoAll),
303
304 0 // eod
305};
306
307void QTextEdit::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
308{
309 if (_c == QMetaObject::InvokeMetaMethod) {
310 Q_ASSERT(staticMetaObject.cast(_o));
311 auto *_t = static_cast<QTextEdit *>(_o);
312 Q_UNUSED(_t)
313 switch (_id) {
314 case 0: _t->textChanged(); break;
315 case 1: _t->undoAvailable((*reinterpret_cast< bool(*)>(_a[1]))); break;
316 case 2: _t->redoAvailable((*reinterpret_cast< bool(*)>(_a[1]))); break;
317 case 3: _t->currentCharFormatChanged((*reinterpret_cast< const QTextCharFormat(*)>(_a[1]))); break;
318 case 4: _t->copyAvailable((*reinterpret_cast< bool(*)>(_a[1]))); break;
319 case 5: _t->selectionChanged(); break;
320 case 6: _t->cursorPositionChanged(); break;
321 case 7: _t->setFontPointSize((*reinterpret_cast< qreal(*)>(_a[1]))); break;
322 case 8: _t->setFontFamily((*reinterpret_cast< const QString(*)>(_a[1]))); break;
323 case 9: _t->setFontWeight((*reinterpret_cast< int(*)>(_a[1]))); break;
324 case 10: _t->setFontUnderline((*reinterpret_cast< bool(*)>(_a[1]))); break;
325 case 11: _t->setFontItalic((*reinterpret_cast< bool(*)>(_a[1]))); break;
326 case 12: _t->setTextColor((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
327 case 13: _t->setTextBackgroundColor((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
328 case 14: _t->setCurrentFont((*reinterpret_cast< const QFont(*)>(_a[1]))); break;
329 case 15: _t->setAlignment((*reinterpret_cast< Qt::Alignment(*)>(_a[1]))); break;
330 case 16: _t->setPlainText((*reinterpret_cast< const QString(*)>(_a[1]))); break;
331 case 17: _t->setHtml((*reinterpret_cast< const QString(*)>(_a[1]))); break;
332 case 18: _t->setMarkdown((*reinterpret_cast< const QString(*)>(_a[1]))); break;
333 case 19: _t->setText((*reinterpret_cast< const QString(*)>(_a[1]))); break;
334 case 20: _t->cut(); break;
335 case 21: _t->copy(); break;
336 case 22: _t->paste(); break;
337 case 23: _t->undo(); break;
338 case 24: _t->redo(); break;
339 case 25: _t->clear(); break;
340 case 26: _t->selectAll(); break;
341 case 27: _t->insertPlainText((*reinterpret_cast< const QString(*)>(_a[1]))); break;
342 case 28: _t->insertHtml((*reinterpret_cast< const QString(*)>(_a[1]))); break;
343 case 29: _t->append((*reinterpret_cast< const QString(*)>(_a[1]))); break;
344 case 30: _t->scrollToAnchor((*reinterpret_cast< const QString(*)>(_a[1]))); break;
345 case 31: _t->zoomIn((*reinterpret_cast< int(*)>(_a[1]))); break;
346 case 32: _t->zoomIn(); break;
347 case 33: _t->zoomOut((*reinterpret_cast< int(*)>(_a[1]))); break;
348 case 34: _t->zoomOut(); break;
349 case 35: _t->d_func()->_q_repaintContents((*reinterpret_cast< const QRectF(*)>(_a[1]))); break;
350 case 36: _t->d_func()->_q_currentCharFormatChanged((*reinterpret_cast< const QTextCharFormat(*)>(_a[1]))); break;
351 case 37: _t->d_func()->_q_adjustScrollbars(); break;
352 case 38: _t->d_func()->_q_ensureVisible((*reinterpret_cast< const QRectF(*)>(_a[1]))); break;
353 case 39: _t->d_func()->_q_cursorPositionChanged(); break;
354 case 40: _t->d_func()->_q_hoveredBlockWithMarkerChanged((*reinterpret_cast< const QTextBlock(*)>(_a[1]))); break;
355 case 41: { QVariant _r = _t->loadResource((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QUrl(*)>(_a[2])));
356 if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = std::move(_r); } break;
357 case 42: { QVariant _r = _t->inputMethodQuery((*reinterpret_cast< Qt::InputMethodQuery(*)>(_a[1])),(*reinterpret_cast< QVariant(*)>(_a[2])));
358 if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = std::move(_r); } break;
359 default: ;
360 }
361 } else if (_c == QMetaObject::IndexOfMethod) {
362 int *result = reinterpret_cast<int *>(_a[0]);
363 {
364 using _t = void (QTextEdit::*)();
365 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextEdit::textChanged)) {
366 *result = 0;
367 return;
368 }
369 }
370 {
371 using _t = void (QTextEdit::*)(bool );
372 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextEdit::undoAvailable)) {
373 *result = 1;
374 return;
375 }
376 }
377 {
378 using _t = void (QTextEdit::*)(bool );
379 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextEdit::redoAvailable)) {
380 *result = 2;
381 return;
382 }
383 }
384 {
385 using _t = void (QTextEdit::*)(const QTextCharFormat & );
386 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextEdit::currentCharFormatChanged)) {
387 *result = 3;
388 return;
389 }
390 }
391 {
392 using _t = void (QTextEdit::*)(bool );
393 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextEdit::copyAvailable)) {
394 *result = 4;
395 return;
396 }
397 }
398 {
399 using _t = void (QTextEdit::*)();
400 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextEdit::selectionChanged)) {
401 *result = 5;
402 return;
403 }
404 }
405 {
406 using _t = void (QTextEdit::*)();
407 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextEdit::cursorPositionChanged)) {
408 *result = 6;
409 return;
410 }
411 }
412 } else if (_c == QMetaObject::RegisterPropertyMetaType) {
413 switch (_id) {
414 default: *reinterpret_cast<int*>(_a[0]) = -1; break;
415 case 15:
416 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QTextDocument* >(); break;
417 }
418 }
419
420#ifndef QT_NO_PROPERTIES
421 else if (_c == QMetaObject::ReadProperty) {
422 Q_ASSERT(staticMetaObject.cast(_o));
423 auto *_t = static_cast<QTextEdit *>(_o);
424 Q_UNUSED(_t)
425 void *_v = _a[0];
426 switch (_id) {
427 case 0: *reinterpret_cast<int*>(_v) = QFlag(_t->autoFormatting()); break;
428 case 1: *reinterpret_cast< bool*>(_v) = _t->tabChangesFocus(); break;
429 case 2: *reinterpret_cast< QString*>(_v) = _t->documentTitle(); break;
430 case 3: *reinterpret_cast< bool*>(_v) = _t->isUndoRedoEnabled(); break;
431 case 4: *reinterpret_cast< LineWrapMode*>(_v) = _t->lineWrapMode(); break;
432 case 5: *reinterpret_cast< int*>(_v) = _t->lineWrapColumnOrWidth(); break;
433 case 6: *reinterpret_cast< bool*>(_v) = _t->isReadOnly(); break;
434 case 7: *reinterpret_cast< QString*>(_v) = _t->toMarkdown(); break;
435 case 8: *reinterpret_cast< QString*>(_v) = _t->toHtml(); break;
436 case 9: *reinterpret_cast< QString*>(_v) = _t->toPlainText(); break;
437 case 10: *reinterpret_cast< bool*>(_v) = _t->overwriteMode(); break;
438 case 11: *reinterpret_cast< qreal*>(_v) = _t->tabStopDistance(); break;
439 case 12: *reinterpret_cast< bool*>(_v) = _t->acceptRichText(); break;
440 case 13: *reinterpret_cast< int*>(_v) = _t->cursorWidth(); break;
441 case 14: *reinterpret_cast< Qt::TextInteractionFlags*>(_v) = _t->textInteractionFlags(); break;
442 case 15: *reinterpret_cast< QTextDocument**>(_v) = _t->document(); break;
443 case 16: *reinterpret_cast< QString*>(_v) = _t->placeholderText(); break;
444 default: break;
445 }
446 } else if (_c == QMetaObject::WriteProperty) {
447 Q_ASSERT(staticMetaObject.cast(_o));
448 auto *_t = static_cast<QTextEdit *>(_o);
449 Q_UNUSED(_t)
450 void *_v = _a[0];
451 switch (_id) {
452 case 0: _t->setAutoFormatting(QFlag(*reinterpret_cast<int*>(_v))); break;
453 case 1: _t->setTabChangesFocus(*reinterpret_cast< bool*>(_v)); break;
454 case 2: _t->setDocumentTitle(*reinterpret_cast< QString*>(_v)); break;
455 case 3: _t->setUndoRedoEnabled(*reinterpret_cast< bool*>(_v)); break;
456 case 4: _t->setLineWrapMode(*reinterpret_cast< LineWrapMode*>(_v)); break;
457 case 5: _t->setLineWrapColumnOrWidth(*reinterpret_cast< int*>(_v)); break;
458 case 6: _t->setReadOnly(*reinterpret_cast< bool*>(_v)); break;
459 case 7: _t->setMarkdown(*reinterpret_cast< QString*>(_v)); break;
460 case 8: _t->setHtml(*reinterpret_cast< QString*>(_v)); break;
461 case 9: _t->setPlainText(*reinterpret_cast< QString*>(_v)); break;
462 case 10: _t->setOverwriteMode(*reinterpret_cast< bool*>(_v)); break;
463 case 11: _t->setTabStopDistance(*reinterpret_cast< qreal*>(_v)); break;
464 case 12: _t->setAcceptRichText(*reinterpret_cast< bool*>(_v)); break;
465 case 13: _t->setCursorWidth(*reinterpret_cast< int*>(_v)); break;
466 case 14: _t->setTextInteractionFlags(*reinterpret_cast< Qt::TextInteractionFlags*>(_v)); break;
467 case 15: _t->setDocument(*reinterpret_cast< QTextDocument**>(_v)); break;
468 case 16: _t->setPlaceholderText(*reinterpret_cast< QString*>(_v)); break;
469 default: break;
470 }
471 } else if (_c == QMetaObject::ResetProperty) {
472 } else if (_c == QMetaObject::BindableProperty) {
473 }
474#endif // QT_NO_PROPERTIES
475}
476
477const QMetaObject QTextEdit::staticMetaObject = { {
478 QMetaObject::SuperData::link<QAbstractScrollArea::staticMetaObject>(),
479 qt_meta_stringdata_QTextEdit.offsetsAndSize,
480 qt_meta_data_QTextEdit,
481 qt_static_metacall,
482 nullptr,
483qt_incomplete_metaTypeArray<qt_meta_stringdata_QTextEdit_t
484, QtPrivate::TypeAndForceComplete<AutoFormatting, std::true_type>, 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<int, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::TextInteractionFlags, std::true_type>, QtPrivate::TypeAndForceComplete<QTextDocument*, 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<const QTextCharFormat &, 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>
485, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<qreal, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, 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>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QColor &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QColor &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QFont &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<Qt::Alignment, 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<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<const QString &, 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<const QTextCharFormat &, 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<const QTextBlock &, std::false_type>
486, QtPrivate::TypeAndForceComplete<QVariant, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<const QUrl &, std::false_type>, QtPrivate::TypeAndForceComplete<QVariant, std::false_type>, QtPrivate::TypeAndForceComplete<Qt::InputMethodQuery, std::false_type>, QtPrivate::TypeAndForceComplete<QVariant, std::false_type>
487
488>,
489 nullptr
490} };
491
492
493const QMetaObject *QTextEdit::metaObject() const
494{
495 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
496}
497
498void *QTextEdit::qt_metacast(const char *_clname)
499{
500 if (!_clname) return nullptr;
501 if (!strcmp(_clname, qt_meta_stringdata_QTextEdit.stringdata0))
502 return static_cast<void*>(this);
503 return QAbstractScrollArea::qt_metacast(_clname);
504}
505
506int QTextEdit::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
507{
508 _id = QAbstractScrollArea::qt_metacall(_c, _id, _a);
509 if (_id < 0)
510 return _id;
511 if (_c == QMetaObject::InvokeMetaMethod) {
512 if (_id < 43)
513 qt_static_metacall(this, _c, _id, _a);
514 _id -= 43;
515 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
516 if (_id < 43)
517 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
518 _id -= 43;
519 }
520#ifndef QT_NO_PROPERTIES
521 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
522 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
523 || _c == QMetaObject::RegisterPropertyMetaType) {
524 qt_static_metacall(this, _c, _id, _a);
525 _id -= 17;
526 }
527#endif // QT_NO_PROPERTIES
528 return _id;
529}
530
531// SIGNAL 0
532void QTextEdit::textChanged()
533{
534 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
535}
536
537// SIGNAL 1
538void QTextEdit::undoAvailable(bool _t1)
539{
540 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
541 QMetaObject::activate(this, &staticMetaObject, 1, _a);
542}
543
544// SIGNAL 2
545void QTextEdit::redoAvailable(bool _t1)
546{
547 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
548 QMetaObject::activate(this, &staticMetaObject, 2, _a);
549}
550
551// SIGNAL 3
552void QTextEdit::currentCharFormatChanged(const QTextCharFormat & _t1)
553{
554 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
555 QMetaObject::activate(this, &staticMetaObject, 3, _a);
556}
557
558// SIGNAL 4
559void QTextEdit::copyAvailable(bool _t1)
560{
561 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
562 QMetaObject::activate(this, &staticMetaObject, 4, _a);
563}
564
565// SIGNAL 5
566void QTextEdit::selectionChanged()
567{
568 QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
569}
570
571// SIGNAL 6
572void QTextEdit::cursorPositionChanged()
573{
574 QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
575}
576QT_WARNING_POP
577QT_END_MOC_NAMESPACE
578