1/****************************************************************************
2** Meta object code from reading C++ file 'qprintpreviewwidget.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/qprintpreviewwidget.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qprintpreviewwidget.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_QPrintPreviewWidget_t {
25 const uint offsetsAndSize[66];
26 char stringdata0[433];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QPrintPreviewWidget_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QPrintPreviewWidget_t qt_meta_stringdata_QPrintPreviewWidget = {
31 {
32QT_MOC_LITERAL(0, 19), // "QPrintPreviewWidget"
33QT_MOC_LITERAL(20, 14), // "paintRequested"
34QT_MOC_LITERAL(35, 0), // ""
35QT_MOC_LITERAL(36, 9), // "QPrinter*"
36QT_MOC_LITERAL(46, 7), // "printer"
37QT_MOC_LITERAL(54, 14), // "previewChanged"
38QT_MOC_LITERAL(69, 5), // "print"
39QT_MOC_LITERAL(75, 6), // "zoomIn"
40QT_MOC_LITERAL(82, 4), // "zoom"
41QT_MOC_LITERAL(87, 7), // "zoomOut"
42QT_MOC_LITERAL(95, 13), // "setZoomFactor"
43QT_MOC_LITERAL(109, 10), // "zoomFactor"
44QT_MOC_LITERAL(120, 14), // "setOrientation"
45QT_MOC_LITERAL(135, 24), // "QPageLayout::Orientation"
46QT_MOC_LITERAL(160, 11), // "orientation"
47QT_MOC_LITERAL(172, 11), // "setViewMode"
48QT_MOC_LITERAL(184, 8), // "ViewMode"
49QT_MOC_LITERAL(193, 8), // "viewMode"
50QT_MOC_LITERAL(202, 11), // "setZoomMode"
51QT_MOC_LITERAL(214, 8), // "ZoomMode"
52QT_MOC_LITERAL(223, 8), // "zoomMode"
53QT_MOC_LITERAL(232, 14), // "setCurrentPage"
54QT_MOC_LITERAL(247, 10), // "pageNumber"
55QT_MOC_LITERAL(258, 10), // "fitToWidth"
56QT_MOC_LITERAL(269, 9), // "fitInView"
57QT_MOC_LITERAL(279, 23), // "setLandscapeOrientation"
58QT_MOC_LITERAL(303, 22), // "setPortraitOrientation"
59QT_MOC_LITERAL(326, 21), // "setSinglePageViewMode"
60QT_MOC_LITERAL(348, 22), // "setFacingPagesViewMode"
61QT_MOC_LITERAL(371, 19), // "setAllPagesViewMode"
62QT_MOC_LITERAL(391, 13), // "updatePreview"
63QT_MOC_LITERAL(405, 6), // "_q_fit"
64QT_MOC_LITERAL(412, 20) // "_q_updateCurrentPage"
65
66 },
67 "QPrintPreviewWidget\0paintRequested\0\0"
68 "QPrinter*\0printer\0previewChanged\0print\0"
69 "zoomIn\0zoom\0zoomOut\0setZoomFactor\0"
70 "zoomFactor\0setOrientation\0"
71 "QPageLayout::Orientation\0orientation\0"
72 "setViewMode\0ViewMode\0viewMode\0setZoomMode\0"
73 "ZoomMode\0zoomMode\0setCurrentPage\0"
74 "pageNumber\0fitToWidth\0fitInView\0"
75 "setLandscapeOrientation\0setPortraitOrientation\0"
76 "setSinglePageViewMode\0setFacingPagesViewMode\0"
77 "setAllPagesViewMode\0updatePreview\0"
78 "_q_fit\0_q_updateCurrentPage"
79};
80#undef QT_MOC_LITERAL
81
82static const uint qt_meta_data_QPrintPreviewWidget[] = {
83
84 // content:
85 9, // revision
86 0, // classname
87 0, 0, // classinfo
88 22, 14, // methods
89 0, 0, // properties
90 0, 0, // enums/sets
91 0, 0, // constructors
92 0, // flags
93 2, // signalCount
94
95 // signals: name, argc, parameters, tag, flags, initial metatype offsets
96 1, 1, 146, 2, 0x06, 0 /* Public */,
97 5, 0, 149, 2, 0x06, 2 /* Public */,
98
99 // slots: name, argc, parameters, tag, flags, initial metatype offsets
100 6, 0, 150, 2, 0x0a, 3 /* Public */,
101 7, 1, 151, 2, 0x0a, 4 /* Public */,
102 7, 0, 154, 2, 0x2a, 6 /* Public | MethodCloned */,
103 9, 1, 155, 2, 0x0a, 7 /* Public */,
104 9, 0, 158, 2, 0x2a, 9 /* Public | MethodCloned */,
105 10, 1, 159, 2, 0x0a, 10 /* Public */,
106 12, 1, 162, 2, 0x0a, 12 /* Public */,
107 15, 1, 165, 2, 0x0a, 14 /* Public */,
108 18, 1, 168, 2, 0x0a, 16 /* Public */,
109 21, 1, 171, 2, 0x0a, 18 /* Public */,
110 23, 0, 174, 2, 0x0a, 20 /* Public */,
111 24, 0, 175, 2, 0x0a, 21 /* Public */,
112 25, 0, 176, 2, 0x0a, 22 /* Public */,
113 26, 0, 177, 2, 0x0a, 23 /* Public */,
114 27, 0, 178, 2, 0x0a, 24 /* Public */,
115 28, 0, 179, 2, 0x0a, 25 /* Public */,
116 29, 0, 180, 2, 0x0a, 26 /* Public */,
117 30, 0, 181, 2, 0x0a, 27 /* Public */,
118 31, 0, 182, 2, 0x08, 28 /* Private */,
119 32, 0, 183, 2, 0x08, 29 /* Private */,
120
121 // signals: parameters
122 QMetaType::Void, 0x80000000 | 3, 4,
123 QMetaType::Void,
124
125 // slots: parameters
126 QMetaType::Void,
127 QMetaType::Void, QMetaType::QReal, 8,
128 QMetaType::Void,
129 QMetaType::Void, QMetaType::QReal, 8,
130 QMetaType::Void,
131 QMetaType::Void, QMetaType::QReal, 11,
132 QMetaType::Void, 0x80000000 | 13, 14,
133 QMetaType::Void, 0x80000000 | 16, 17,
134 QMetaType::Void, 0x80000000 | 19, 20,
135 QMetaType::Void, QMetaType::Int, 22,
136 QMetaType::Void,
137 QMetaType::Void,
138 QMetaType::Void,
139 QMetaType::Void,
140 QMetaType::Void,
141 QMetaType::Void,
142 QMetaType::Void,
143 QMetaType::Void,
144 QMetaType::Void,
145 QMetaType::Void,
146
147 0 // eod
148};
149
150void QPrintPreviewWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
151{
152 if (_c == QMetaObject::InvokeMetaMethod) {
153 Q_ASSERT(staticMetaObject.cast(_o));
154 auto *_t = static_cast<QPrintPreviewWidget *>(_o);
155 Q_UNUSED(_t)
156 switch (_id) {
157 case 0: _t->paintRequested((*reinterpret_cast< QPrinter*(*)>(_a[1]))); break;
158 case 1: _t->previewChanged(); break;
159 case 2: _t->print(); break;
160 case 3: _t->zoomIn((*reinterpret_cast< qreal(*)>(_a[1]))); break;
161 case 4: _t->zoomIn(); break;
162 case 5: _t->zoomOut((*reinterpret_cast< qreal(*)>(_a[1]))); break;
163 case 6: _t->zoomOut(); break;
164 case 7: _t->setZoomFactor((*reinterpret_cast< qreal(*)>(_a[1]))); break;
165 case 8: _t->setOrientation((*reinterpret_cast< QPageLayout::Orientation(*)>(_a[1]))); break;
166 case 9: _t->setViewMode((*reinterpret_cast< ViewMode(*)>(_a[1]))); break;
167 case 10: _t->setZoomMode((*reinterpret_cast< ZoomMode(*)>(_a[1]))); break;
168 case 11: _t->setCurrentPage((*reinterpret_cast< int(*)>(_a[1]))); break;
169 case 12: _t->fitToWidth(); break;
170 case 13: _t->fitInView(); break;
171 case 14: _t->setLandscapeOrientation(); break;
172 case 15: _t->setPortraitOrientation(); break;
173 case 16: _t->setSinglePageViewMode(); break;
174 case 17: _t->setFacingPagesViewMode(); break;
175 case 18: _t->setAllPagesViewMode(); break;
176 case 19: _t->updatePreview(); break;
177 case 20: _t->d_func()->_q_fit(); break;
178 case 21: _t->d_func()->_q_updateCurrentPage(); break;
179 default: ;
180 }
181 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
182 switch (_id) {
183 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
184 case 8:
185 switch (*reinterpret_cast<int*>(_a[1])) {
186 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
187 case 0:
188 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QPageLayout::Orientation >(); break;
189 }
190 break;
191 }
192 } else if (_c == QMetaObject::IndexOfMethod) {
193 int *result = reinterpret_cast<int *>(_a[0]);
194 {
195 using _t = void (QPrintPreviewWidget::*)(QPrinter * );
196 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPrintPreviewWidget::paintRequested)) {
197 *result = 0;
198 return;
199 }
200 }
201 {
202 using _t = void (QPrintPreviewWidget::*)();
203 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPrintPreviewWidget::previewChanged)) {
204 *result = 1;
205 return;
206 }
207 }
208 }
209}
210
211const QMetaObject QPrintPreviewWidget::staticMetaObject = { {
212 QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
213 qt_meta_stringdata_QPrintPreviewWidget.offsetsAndSize,
214 qt_meta_data_QPrintPreviewWidget,
215 qt_static_metacall,
216 nullptr,
217qt_incomplete_metaTypeArray<qt_meta_stringdata_QPrintPreviewWidget_t
218, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QPrinter *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
219, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<qreal, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<qreal, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<qreal, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QPageLayout::Orientation, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<ViewMode, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<ZoomMode, 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<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>
220
221
222>,
223 nullptr
224} };
225
226
227const QMetaObject *QPrintPreviewWidget::metaObject() const
228{
229 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
230}
231
232void *QPrintPreviewWidget::qt_metacast(const char *_clname)
233{
234 if (!_clname) return nullptr;
235 if (!strcmp(_clname, qt_meta_stringdata_QPrintPreviewWidget.stringdata0))
236 return static_cast<void*>(this);
237 return QWidget::qt_metacast(_clname);
238}
239
240int QPrintPreviewWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
241{
242 _id = QWidget::qt_metacall(_c, _id, _a);
243 if (_id < 0)
244 return _id;
245 if (_c == QMetaObject::InvokeMetaMethod) {
246 if (_id < 22)
247 qt_static_metacall(this, _c, _id, _a);
248 _id -= 22;
249 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
250 if (_id < 22)
251 qt_static_metacall(this, _c, _id, _a);
252 _id -= 22;
253 }
254 return _id;
255}
256
257// SIGNAL 0
258void QPrintPreviewWidget::paintRequested(QPrinter * _t1)
259{
260 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
261 QMetaObject::activate(this, &staticMetaObject, 0, _a);
262}
263
264// SIGNAL 1
265void QPrintPreviewWidget::previewChanged()
266{
267 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
268}
269QT_WARNING_POP
270QT_END_MOC_NAMESPACE
271