CuteLogger
Fast and simple logging solution for Qt based applications
moc_markersmodel.cpp
1/****************************************************************************
2** Meta object code from reading C++ file 'markersmodel.h'
3**
4** Created by: The Qt Meta Object Compiler version 69 (Qt 6.11.0)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include "../../../../src/models/markersmodel.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 'markersmodel.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 69
21#error "This file was generated using the moc from 6.11.0. 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_ZN12MarkersModelE_t {};
35} // unnamed namespace
36
37template <> constexpr inline auto MarkersModel::qt_create_metaobjectdata<qt_meta_tag_ZN12MarkersModelE_t>()
38{
39 namespace QMC = QtMocConstants;
40 QtMocHelpers::StringRefStorage qt_stringData {
41 "MarkersModel",
42 "rangesChanged",
43 "",
44 "modified",
45 "recentColorsChanged",
46 "remove",
47 "markerIndex",
48 "append",
49 "Markers::Marker",
50 "marker",
51 "update",
52 "move",
53 "start",
54 "end",
55 "setColor",
56 "QColor",
57 "color",
58 "clear",
59 "nextMarkerPosition",
60 "position",
61 "prevMarkerPosition",
62 "recentColors"
63 };
64
65 QtMocHelpers::UintData qt_methods {
66 // Signal 'rangesChanged'
67 QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
68 // Signal 'modified'
69 QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
70 // Signal 'recentColorsChanged'
71 QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
72 // Slot 'remove'
73 QtMocHelpers::SlotData<void(int)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
74 { QMetaType::Int, 6 },
75 }}),
76 // Slot 'append'
77 QtMocHelpers::SlotData<void(const Markers::Marker &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
78 { 0x80000000 | 8, 9 },
79 }}),
80 // Slot 'update'
81 QtMocHelpers::SlotData<void(int, const Markers::Marker &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
82 { QMetaType::Int, 6 }, { 0x80000000 | 8, 9 },
83 }}),
84 // Slot 'move'
85 QtMocHelpers::SlotData<void(int, int, int)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
86 { QMetaType::Int, 6 }, { QMetaType::Int, 12 }, { QMetaType::Int, 13 },
87 }}),
88 // Slot 'setColor'
89 QtMocHelpers::SlotData<void(int, const QColor &)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
90 { QMetaType::Int, 6 }, { 0x80000000 | 15, 16 },
91 }}),
92 // Slot 'clear'
93 QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPublic, QMetaType::Void),
94 // Method 'nextMarkerPosition'
95 QtMocHelpers::MethodData<int(int)>(18, 2, QMC::AccessPublic, QMetaType::Int, {{
96 { QMetaType::Int, 19 },
97 }}),
98 // Method 'prevMarkerPosition'
99 QtMocHelpers::MethodData<int(int)>(20, 2, QMC::AccessPublic, QMetaType::Int, {{
100 { QMetaType::Int, 19 },
101 }}),
102 };
103 QtMocHelpers::UintData qt_properties {
104 // property 'recentColors'
105 QtMocHelpers::PropertyData<QStringList>(21, QMetaType::QStringList, QMC::DefaultPropertyFlags, 2),
106 };
107 QtMocHelpers::UintData qt_enums {
108 };
109 return QtMocHelpers::metaObjectData<MarkersModel, qt_meta_tag_ZN12MarkersModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
110 qt_methods, qt_properties, qt_enums);
111}
112Q_CONSTINIT const QMetaObject MarkersModel::staticMetaObject = { {
113 QMetaObject::SuperData::link<QAbstractItemModel::staticMetaObject>(),
114 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12MarkersModelE_t>.stringdata,
115 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12MarkersModelE_t>.data,
116 qt_static_metacall,
117 nullptr,
118 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12MarkersModelE_t>.metaTypes,
119 nullptr
120} };
121
122void MarkersModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
123{
124 auto *_t = static_cast<MarkersModel *>(_o);
125 if (_c == QMetaObject::InvokeMetaMethod) {
126 switch (_id) {
127 case 0: _t->rangesChanged(); break;
128 case 1: _t->modified(); break;
129 case 2: _t->recentColorsChanged(); break;
130 case 3: _t->remove((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
131 case 4: _t->append((*reinterpret_cast<std::add_pointer_t<Markers::Marker>>(_a[1]))); break;
132 case 5: _t->update((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Markers::Marker>>(_a[2]))); break;
133 case 6: _t->move((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
134 case 7: _t->setColor((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QColor>>(_a[2]))); break;
135 case 8: _t->clear(); break;
136 case 9: { int _r = _t->nextMarkerPosition((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
137 if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); } break;
138 case 10: { int _r = _t->prevMarkerPosition((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
139 if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); } break;
140 default: ;
141 }
142 }
143 if (_c == QMetaObject::IndexOfMethod) {
144 if (QtMocHelpers::indexOfMethod<void (MarkersModel::*)()>(_a, &MarkersModel::rangesChanged, 0))
145 return;
146 if (QtMocHelpers::indexOfMethod<void (MarkersModel::*)()>(_a, &MarkersModel::modified, 1))
147 return;
148 if (QtMocHelpers::indexOfMethod<void (MarkersModel::*)()>(_a, &MarkersModel::recentColorsChanged, 2))
149 return;
150 }
151 if (_c == QMetaObject::ReadProperty) {
152 void *_v = _a[0];
153 switch (_id) {
154 case 0: *reinterpret_cast<QStringList*>(_v) = _t->recentColors(); break;
155 default: break;
156 }
157 }
158}
159
160const QMetaObject *MarkersModel::metaObject() const
161{
162 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
163}
164
165void *MarkersModel::qt_metacast(const char *_clname)
166{
167 if (!_clname) return nullptr;
168 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12MarkersModelE_t>.strings))
169 return static_cast<void*>(this);
170 return QAbstractItemModel::qt_metacast(_clname);
171}
172
173int MarkersModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
174{
175 _id = QAbstractItemModel::qt_metacall(_c, _id, _a);
176 if (_id < 0)
177 return _id;
178 if (_c == QMetaObject::InvokeMetaMethod) {
179 if (_id < 11)
180 qt_static_metacall(this, _c, _id, _a);
181 _id -= 11;
182 }
183 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
184 if (_id < 11)
185 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
186 _id -= 11;
187 }
188 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
189 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
190 || _c == QMetaObject::RegisterPropertyMetaType) {
191 qt_static_metacall(this, _c, _id, _a);
192 _id -= 1;
193 }
194 return _id;
195}
196
197// SIGNAL 0
198void MarkersModel::rangesChanged()
199{
200 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
201}
202
203// SIGNAL 1
204void MarkersModel::modified()
205{
206 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
207}
208
209// SIGNAL 2
210void MarkersModel::recentColorsChanged()
211{
212 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
213}
214QT_WARNING_POP