Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
moc_imageviewer.cpp
Go to the documentation of this file.
1/****************************************************************************
2** Meta object code from reading C++ file 'imageviewer.h'
3**
4** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.13)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include <memory>
10#include "imageviewer.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'imageviewer.h' doesn't include <QObject>."
15#elif Q_MOC_OUTPUT_REVISION != 67
16#error "This file was generated using the moc from 5.15.13. 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
25 QByteArrayData data[10];
26 char stringdata0[77];
27};
28#define QT_MOC_LITERAL(idx, ofs, len) \
29 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
30 qptrdiff(offsetof(qt_meta_stringdata_ImageViewer_t, stringdata0) + ofs \
31 - idx * sizeof(QByteArrayData)) \
32 )
34 {
35QT_MOC_LITERAL(0, 0, 11), // "ImageViewer"
36QT_MOC_LITERAL(1, 12, 4), // "open"
37QT_MOC_LITERAL(2, 17, 0), // ""
38QT_MOC_LITERAL(3, 18, 8), // "fileName"
39QT_MOC_LITERAL(4, 27, 5), // "print"
40QT_MOC_LITERAL(5, 33, 6), // "zoomIn"
41QT_MOC_LITERAL(6, 40, 7), // "zoomOut"
42QT_MOC_LITERAL(7, 48, 10), // "normalSize"
43QT_MOC_LITERAL(8, 59, 11), // "fitToWindow"
44QT_MOC_LITERAL(9, 71, 5) // "about"
45
46 },
47 "ImageViewer\0open\0\0fileName\0print\0"
48 "zoomIn\0zoomOut\0normalSize\0fitToWindow\0"
49 "about"
50};
51#undef QT_MOC_LITERAL
52
53static const uint qt_meta_data_ImageViewer[] = {
54
55 // content:
56 8, // revision
57 0, // classname
58 0, 0, // classinfo
59 7, 14, // methods
60 0, 0, // properties
61 0, 0, // enums/sets
62 0, 0, // constructors
63 0, // flags
64 0, // signalCount
65
66 // slots: name, argc, parameters, tag, flags
67 1, 1, 49, 2, 0x0a /* Public */,
68 4, 0, 52, 2, 0x0a /* Public */,
69 5, 0, 53, 2, 0x0a /* Public */,
70 6, 0, 54, 2, 0x0a /* Public */,
71 7, 0, 55, 2, 0x0a /* Public */,
72 8, 0, 56, 2, 0x0a /* Public */,
73 9, 0, 57, 2, 0x0a /* Public */,
74
75 // slots: parameters
76 QMetaType::Bool, QMetaType::QString, 3,
77 QMetaType::Void,
78 QMetaType::Void,
79 QMetaType::Void,
80 QMetaType::Void,
81 QMetaType::Void,
82 QMetaType::Void,
83
84 0 // eod
85};
86
87void ImageViewer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
88{
89 if (_c == QMetaObject::InvokeMetaMethod) {
90 auto *_t = static_cast<ImageViewer *>(_o);
91 (void)_t;
92 switch (_id) {
93 case 0: { bool _r = _t->open((*reinterpret_cast< const QString(*)>(_a[1])));
94 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
95 case 1: _t->print(); break;
96 case 2: _t->zoomIn(); break;
97 case 3: _t->zoomOut(); break;
98 case 4: _t->normalSize(); break;
99 case 5: _t->fitToWindow(); break;
100 case 6: _t->about(); break;
101 default: ;
102 }
103 }
104}
105
106QT_INIT_METAOBJECT const QMetaObject ImageViewer::staticMetaObject = { {
107 QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(),
110 qt_static_metacall,
111 nullptr,
112 nullptr
113} };
114
115
116const QMetaObject *ImageViewer::metaObject() const
117{
118 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
119}
120
121void *ImageViewer::qt_metacast(const char *_clname)
122{
123 if (!_clname) return nullptr;
124 if (!strcmp(_clname, qt_meta_stringdata_ImageViewer.stringdata0))
125 return static_cast<void*>(this);
126 return QMainWindow::qt_metacast(_clname);
127}
128
129int ImageViewer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
130{
131 _id = QMainWindow::qt_metacall(_c, _id, _a);
132 if (_id < 0)
133 return _id;
134 if (_c == QMetaObject::InvokeMetaMethod) {
135 if (_id < 7)
136 qt_static_metacall(this, _c, _id, _a);
137 _id -= 7;
138 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
139 if (_id < 7)
140 *reinterpret_cast<int*>(_a[0]) = -1;
141 _id -= 7;
142 }
143 return _id;
144}
145QT_WARNING_POP
146QT_END_MOC_NAMESPACE
bool open(const QString &fileName)
static const qt_meta_stringdata_ImageViewer_t qt_meta_stringdata_ImageViewer
#define QT_MOC_LITERAL(idx, ofs, len)
static const uint qt_meta_data_ImageViewer[]
Definition legal.c:50