CuteLogger
Fast and simple logging solution for Qt based applications
moc_rectangleselector.cpp
1/****************************************************************************
2** Meta object code from reading C++ file 'rectangleselector.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.8.3)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include "../../../../src/screencapture/rectangleselector.h"
10#include <QtCore/qmetatype.h>
11
12#include <QtCore/qtmochelpers.h>
13
14#include <memory>
15
16
17#include <QtCore/qxptype_traits.h>
18#if !defined(Q_MOC_OUTPUT_REVISION)
19#error "The header file 'rectangleselector.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 68
21#error "This file was generated using the moc from 6.8.3. It"
22#error "cannot be used with the include files from this version of Qt."
23#error "(The moc has changed too much.)"
24#endif
25
26#ifndef Q_CONSTINIT
27#define Q_CONSTINIT
28#endif
29
30QT_WARNING_PUSH
31QT_WARNING_DISABLE_DEPRECATED
32QT_WARNING_DISABLE_GCC("-Wuseless-cast")
33namespace {
34struct qt_meta_tag_ZN17RectangleSelectorE_t {};
35} // unnamed namespace
36
37
38#ifdef QT_MOC_HAS_STRINGDATA
39static constexpr auto qt_meta_stringdata_ZN17RectangleSelectorE = QtMocHelpers::stringData(
40 "RectangleSelector",
41 "rectangleSelected",
42 "",
43 "rect",
44 "canceled"
45);
46#else // !QT_MOC_HAS_STRINGDATA
47#error "qtmochelpers.h not found or too old."
48#endif // !QT_MOC_HAS_STRINGDATA
49
50Q_CONSTINIT static const uint qt_meta_data_ZN17RectangleSelectorE[] = {
51
52 // content:
53 12, // revision
54 0, // classname
55 0, 0, // classinfo
56 2, 14, // methods
57 0, 0, // properties
58 0, 0, // enums/sets
59 0, 0, // constructors
60 0, // flags
61 2, // signalCount
62
63 // signals: name, argc, parameters, tag, flags, initial metatype offsets
64 1, 1, 26, 2, 0x06, 1 /* Public */,
65 4, 0, 29, 2, 0x06, 3 /* Public */,
66
67 // signals: parameters
68 QMetaType::Void, QMetaType::QRect, 3,
69 QMetaType::Void,
70
71 0 // eod
72};
73
74Q_CONSTINIT const QMetaObject RectangleSelector::staticMetaObject = { {
75 QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
76 qt_meta_stringdata_ZN17RectangleSelectorE.offsetsAndSizes,
77 qt_meta_data_ZN17RectangleSelectorE,
78 qt_static_metacall,
79 nullptr,
80 qt_incomplete_metaTypeArray<qt_meta_tag_ZN17RectangleSelectorE_t,
81 // Q_OBJECT / Q_GADGET
82 QtPrivate::TypeAndForceComplete<RectangleSelector, std::true_type>,
83 // method 'rectangleSelected'
84 QtPrivate::TypeAndForceComplete<void, std::false_type>,
85 QtPrivate::TypeAndForceComplete<const QRect &, std::false_type>,
86 // method 'canceled'
87 QtPrivate::TypeAndForceComplete<void, std::false_type>
88 >,
89 nullptr
90} };
91
92void RectangleSelector::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
93{
94 auto *_t = static_cast<RectangleSelector *>(_o);
95 if (_c == QMetaObject::InvokeMetaMethod) {
96 switch (_id) {
97 case 0: _t->rectangleSelected((*reinterpret_cast< std::add_pointer_t<QRect>>(_a[1]))); break;
98 case 1: _t->canceled(); break;
99 default: ;
100 }
101 }
102 if (_c == QMetaObject::IndexOfMethod) {
103 int *result = reinterpret_cast<int *>(_a[0]);
104 {
105 using _q_method_type = void (RectangleSelector::*)(const QRect & );
106 if (_q_method_type _q_method = &RectangleSelector::rectangleSelected; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
107 *result = 0;
108 return;
109 }
110 }
111 {
112 using _q_method_type = void (RectangleSelector::*)();
113 if (_q_method_type _q_method = &RectangleSelector::canceled; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
114 *result = 1;
115 return;
116 }
117 }
118 }
119}
120
121const QMetaObject *RectangleSelector::metaObject() const
122{
123 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
124}
125
126void *RectangleSelector::qt_metacast(const char *_clname)
127{
128 if (!_clname) return nullptr;
129 if (!strcmp(_clname, qt_meta_stringdata_ZN17RectangleSelectorE.stringdata0))
130 return static_cast<void*>(this);
131 return QWidget::qt_metacast(_clname);
132}
133
134int RectangleSelector::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
135{
136 _id = QWidget::qt_metacall(_c, _id, _a);
137 if (_id < 0)
138 return _id;
139 if (_c == QMetaObject::InvokeMetaMethod) {
140 if (_id < 2)
141 qt_static_metacall(this, _c, _id, _a);
142 _id -= 2;
143 }
144 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
145 if (_id < 2)
146 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
147 _id -= 2;
148 }
149 return _id;
150}
151
152// SIGNAL 0
153void RectangleSelector::rectangleSelected(const QRect & _t1)
154{
155 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
156 QMetaObject::activate(this, &staticMetaObject, 0, _a);
157}
158
159// SIGNAL 1
160void RectangleSelector::canceled()
161{
162 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
163}
164QT_WARNING_POP