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