1/****************************************************************************
2** Meta object code from reading C++ file 'textedit.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 "textedit.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'textedit.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_TextEdit_t {
25 const uint offsetsAndSize[68];
26 char stringdata0[352];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_TextEdit_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_TextEdit_t qt_meta_stringdata_TextEdit = {
31 {
32QT_MOC_LITERAL(0, 8), // "TextEdit"
33QT_MOC_LITERAL(9, 7), // "fileNew"
34QT_MOC_LITERAL(17, 0), // ""
35QT_MOC_LITERAL(18, 8), // "fileOpen"
36QT_MOC_LITERAL(27, 8), // "fileSave"
37QT_MOC_LITERAL(36, 10), // "fileSaveAs"
38QT_MOC_LITERAL(47, 9), // "filePrint"
39QT_MOC_LITERAL(57, 16), // "filePrintPreview"
40QT_MOC_LITERAL(74, 12), // "filePrintPdf"
41QT_MOC_LITERAL(87, 8), // "textBold"
42QT_MOC_LITERAL(96, 13), // "textUnderline"
43QT_MOC_LITERAL(110, 10), // "textItalic"
44QT_MOC_LITERAL(121, 10), // "textFamily"
45QT_MOC_LITERAL(132, 1), // "f"
46QT_MOC_LITERAL(134, 8), // "textSize"
47QT_MOC_LITERAL(143, 1), // "p"
48QT_MOC_LITERAL(145, 9), // "textStyle"
49QT_MOC_LITERAL(155, 10), // "styleIndex"
50QT_MOC_LITERAL(166, 9), // "textColor"
51QT_MOC_LITERAL(176, 9), // "textAlign"
52QT_MOC_LITERAL(186, 8), // "QAction*"
53QT_MOC_LITERAL(195, 1), // "a"
54QT_MOC_LITERAL(197, 10), // "setChecked"
55QT_MOC_LITERAL(208, 7), // "checked"
56QT_MOC_LITERAL(216, 6), // "indent"
57QT_MOC_LITERAL(223, 8), // "unindent"
58QT_MOC_LITERAL(232, 24), // "currentCharFormatChanged"
59QT_MOC_LITERAL(257, 15), // "QTextCharFormat"
60QT_MOC_LITERAL(273, 6), // "format"
61QT_MOC_LITERAL(280, 21), // "cursorPositionChanged"
62QT_MOC_LITERAL(302, 20), // "clipboardDataChanged"
63QT_MOC_LITERAL(323, 5), // "about"
64QT_MOC_LITERAL(329, 12), // "printPreview"
65QT_MOC_LITERAL(342, 9) // "QPrinter*"
66
67 },
68 "TextEdit\0fileNew\0\0fileOpen\0fileSave\0"
69 "fileSaveAs\0filePrint\0filePrintPreview\0"
70 "filePrintPdf\0textBold\0textUnderline\0"
71 "textItalic\0textFamily\0f\0textSize\0p\0"
72 "textStyle\0styleIndex\0textColor\0textAlign\0"
73 "QAction*\0a\0setChecked\0checked\0indent\0"
74 "unindent\0currentCharFormatChanged\0"
75 "QTextCharFormat\0format\0cursorPositionChanged\0"
76 "clipboardDataChanged\0about\0printPreview\0"
77 "QPrinter*"
78};
79#undef QT_MOC_LITERAL
80
81static const uint qt_meta_data_TextEdit[] = {
82
83 // content:
84 9, // revision
85 0, // classname
86 0, 0, // classinfo
87 23, 14, // methods
88 0, 0, // properties
89 0, 0, // enums/sets
90 0, 0, // constructors
91 0, // flags
92 0, // signalCount
93
94 // slots: name, argc, parameters, tag, flags, initial metatype offsets
95 1, 0, 152, 2, 0x0a, 0 /* Public */,
96 3, 0, 153, 2, 0x08, 1 /* Private */,
97 4, 0, 154, 2, 0x08, 2 /* Private */,
98 5, 0, 155, 2, 0x08, 3 /* Private */,
99 6, 0, 156, 2, 0x08, 4 /* Private */,
100 7, 0, 157, 2, 0x08, 5 /* Private */,
101 8, 0, 158, 2, 0x08, 6 /* Private */,
102 9, 0, 159, 2, 0x08, 7 /* Private */,
103 10, 0, 160, 2, 0x08, 8 /* Private */,
104 11, 0, 161, 2, 0x08, 9 /* Private */,
105 12, 1, 162, 2, 0x08, 10 /* Private */,
106 14, 1, 165, 2, 0x08, 12 /* Private */,
107 16, 1, 168, 2, 0x08, 14 /* Private */,
108 18, 0, 171, 2, 0x08, 16 /* Private */,
109 19, 1, 172, 2, 0x08, 17 /* Private */,
110 22, 1, 175, 2, 0x08, 19 /* Private */,
111 24, 0, 178, 2, 0x08, 21 /* Private */,
112 25, 0, 179, 2, 0x08, 22 /* Private */,
113 26, 1, 180, 2, 0x08, 23 /* Private */,
114 29, 0, 183, 2, 0x08, 25 /* Private */,
115 30, 0, 184, 2, 0x08, 26 /* Private */,
116 31, 0, 185, 2, 0x08, 27 /* Private */,
117 32, 1, 186, 2, 0x08, 28 /* Private */,
118
119 // slots: parameters
120 QMetaType::Void,
121 QMetaType::Void,
122 QMetaType::Bool,
123 QMetaType::Bool,
124 QMetaType::Void,
125 QMetaType::Void,
126 QMetaType::Void,
127 QMetaType::Void,
128 QMetaType::Void,
129 QMetaType::Void,
130 QMetaType::Void, QMetaType::QString, 13,
131 QMetaType::Void, QMetaType::QString, 15,
132 QMetaType::Void, QMetaType::Int, 17,
133 QMetaType::Void,
134 QMetaType::Void, 0x80000000 | 20, 21,
135 QMetaType::Void, QMetaType::Bool, 23,
136 QMetaType::Void,
137 QMetaType::Void,
138 QMetaType::Void, 0x80000000 | 27, 28,
139 QMetaType::Void,
140 QMetaType::Void,
141 QMetaType::Void,
142 QMetaType::Void, 0x80000000 | 33, 2,
143
144 0 // eod
145};
146
147void TextEdit::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
148{
149 if (_c == QMetaObject::InvokeMetaMethod) {
150 Q_ASSERT(staticMetaObject.cast(_o));
151 auto *_t = static_cast<TextEdit *>(_o);
152 Q_UNUSED(_t)
153 switch (_id) {
154 case 0: _t->fileNew(); break;
155 case 1: _t->fileOpen(); break;
156 case 2: { bool _r = _t->fileSave();
157 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
158 case 3: { bool _r = _t->fileSaveAs();
159 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
160 case 4: _t->filePrint(); break;
161 case 5: _t->filePrintPreview(); break;
162 case 6: _t->filePrintPdf(); break;
163 case 7: _t->textBold(); break;
164 case 8: _t->textUnderline(); break;
165 case 9: _t->textItalic(); break;
166 case 10: _t->textFamily((*reinterpret_cast< const QString(*)>(_a[1]))); break;
167 case 11: _t->textSize((*reinterpret_cast< const QString(*)>(_a[1]))); break;
168 case 12: _t->textStyle((*reinterpret_cast< int(*)>(_a[1]))); break;
169 case 13: _t->textColor(); break;
170 case 14: _t->textAlign((*reinterpret_cast< QAction*(*)>(_a[1]))); break;
171 case 15: _t->setChecked((*reinterpret_cast< bool(*)>(_a[1]))); break;
172 case 16: _t->indent(); break;
173 case 17: _t->unindent(); break;
174 case 18: _t->currentCharFormatChanged((*reinterpret_cast< const QTextCharFormat(*)>(_a[1]))); break;
175 case 19: _t->cursorPositionChanged(); break;
176 case 20: _t->clipboardDataChanged(); break;
177 case 21: _t->about(); break;
178 case 22: _t->printPreview((*reinterpret_cast< QPrinter*(*)>(_a[1]))); break;
179 default: ;
180 }
181 }
182}
183
184const QMetaObject TextEdit::staticMetaObject = { {
185 QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(),
186 qt_meta_stringdata_TextEdit.offsetsAndSize,
187 qt_meta_data_TextEdit,
188 qt_static_metacall,
189 nullptr,
190qt_incomplete_metaTypeArray<qt_meta_stringdata_TextEdit_t
191
192, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, 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<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<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QAction *, 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 QTextCharFormat &, 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<QPrinter *, std::false_type>
193
194
195>,
196 nullptr
197} };
198
199
200const QMetaObject *TextEdit::metaObject() const
201{
202 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
203}
204
205void *TextEdit::qt_metacast(const char *_clname)
206{
207 if (!_clname) return nullptr;
208 if (!strcmp(_clname, qt_meta_stringdata_TextEdit.stringdata0))
209 return static_cast<void*>(this);
210 return QMainWindow::qt_metacast(_clname);
211}
212
213int TextEdit::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
214{
215 _id = QMainWindow::qt_metacall(_c, _id, _a);
216 if (_id < 0)
217 return _id;
218 if (_c == QMetaObject::InvokeMetaMethod) {
219 if (_id < 23)
220 qt_static_metacall(this, _c, _id, _a);
221 _id -= 23;
222 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
223 if (_id < 23)
224 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
225 _id -= 23;
226 }
227 return _id;
228}
229QT_WARNING_POP
230QT_END_MOC_NAMESPACE
231