1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'printview.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 "printview.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'printview.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 | |
21 | QT_BEGIN_MOC_NAMESPACE |
22 | QT_WARNING_PUSH |
23 | QT_WARNING_DISABLE_DEPRECATED |
24 | struct qt_meta_stringdata_PrintView_t { |
25 | const uint offsetsAndSize[10]; |
26 | char stringdata0[35]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_PrintView_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_PrintView_t qt_meta_stringdata_PrintView = { |
31 | { |
32 | QT_MOC_LITERAL(0, 9), // "PrintView" |
33 | QT_MOC_LITERAL(10, 5), // "print" |
34 | QT_MOC_LITERAL(16, 0), // "" |
35 | QT_MOC_LITERAL(17, 9), // "QPrinter*" |
36 | QT_MOC_LITERAL(27, 7) // "printer" |
37 | |
38 | }, |
39 | "PrintView\0print\0\0QPrinter*\0printer" |
40 | }; |
41 | #undef QT_MOC_LITERAL |
42 | |
43 | static const uint qt_meta_data_PrintView[] = { |
44 | |
45 | // content: |
46 | 9, // revision |
47 | 0, // classname |
48 | 0, 0, // classinfo |
49 | 1, 14, // methods |
50 | 0, 0, // properties |
51 | 0, 0, // enums/sets |
52 | 0, 0, // constructors |
53 | 0, // flags |
54 | 0, // signalCount |
55 | |
56 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
57 | 1, 1, 20, 2, 0x0a, 0 /* Public */, |
58 | |
59 | // slots: parameters |
60 | QMetaType::Void, 0x80000000 | 3, 4, |
61 | |
62 | 0 // eod |
63 | }; |
64 | |
65 | void PrintView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
66 | { |
67 | if (_c == QMetaObject::InvokeMetaMethod) { |
68 | Q_ASSERT(staticMetaObject.cast(_o)); |
69 | auto *_t = static_cast<PrintView *>(_o); |
70 | Q_UNUSED(_t) |
71 | switch (_id) { |
72 | case 0: _t->print((*reinterpret_cast< QPrinter*(*)>(_a[1]))); break; |
73 | default: ; |
74 | } |
75 | } |
76 | } |
77 | |
78 | const QMetaObject PrintView::staticMetaObject = { { |
79 | QMetaObject::SuperData::link<QTableView::staticMetaObject>(), |
80 | qt_meta_stringdata_PrintView.offsetsAndSize, |
81 | qt_meta_data_PrintView, |
82 | qt_static_metacall, |
83 | nullptr, |
84 | qt_incomplete_metaTypeArray<qt_meta_stringdata_PrintView_t |
85 | |
86 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QPrinter *, std::false_type> |
87 | |
88 | |
89 | >, |
90 | nullptr |
91 | } }; |
92 | |
93 | |
94 | const QMetaObject *PrintView::metaObject() const |
95 | { |
96 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
97 | } |
98 | |
99 | void *PrintView::qt_metacast(const char *_clname) |
100 | { |
101 | if (!_clname) return nullptr; |
102 | if (!strcmp(_clname, qt_meta_stringdata_PrintView.stringdata0)) |
103 | return static_cast<void*>(this); |
104 | return QTableView::qt_metacast(_clname); |
105 | } |
106 | |
107 | int PrintView::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
108 | { |
109 | _id = QTableView::qt_metacall(_c, _id, _a); |
110 | if (_id < 0) |
111 | return _id; |
112 | if (_c == QMetaObject::InvokeMetaMethod) { |
113 | if (_id < 1) |
114 | qt_static_metacall(this, _c, _id, _a); |
115 | _id -= 1; |
116 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
117 | if (_id < 1) |
118 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
119 | _id -= 1; |
120 | } |
121 | return _id; |
122 | } |
123 | QT_WARNING_POP |
124 | QT_END_MOC_NAMESPACE |
125 | |