CuteLogger
Fast and simple logging solution for Qt based applications
moc_actionsmodel.cpp
1/****************************************************************************
2** Meta object code from reading C++ file 'actionsmodel.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.8.1)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include "../../../../src/models/actionsmodel.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 'actionsmodel.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 68
21#error "This file was generated using the moc from 6.8.1. 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_ZN12ActionsModelE_t {};
35} // unnamed namespace
36
37
38#ifdef QT_MOC_HAS_STRINGDATA
39static constexpr auto qt_meta_stringdata_ZN12ActionsModelE = QtMocHelpers::stringData(
40 "ActionsModel",
41 "editError",
42 "",
43 "error"
44);
45#else // !QT_MOC_HAS_STRINGDATA
46#error "qtmochelpers.h not found or too old."
47#endif // !QT_MOC_HAS_STRINGDATA
48
49Q_CONSTINIT static const uint qt_meta_data_ZN12ActionsModelE[] = {
50
51 // content:
52 12, // revision
53 0, // classname
54 0, 0, // classinfo
55 1, 14, // methods
56 0, 0, // properties
57 0, 0, // enums/sets
58 0, 0, // constructors
59 0, // flags
60 1, // signalCount
61
62 // signals: name, argc, parameters, tag, flags, initial metatype offsets
63 1, 1, 20, 2, 0x06, 1 /* Public */,
64
65 // signals: parameters
66 QMetaType::Void, QMetaType::QString, 3,
67
68 0 // eod
69};
70
71Q_CONSTINIT const QMetaObject ActionsModel::staticMetaObject = { {
72 QMetaObject::SuperData::link<QAbstractItemModel::staticMetaObject>(),
73 qt_meta_stringdata_ZN12ActionsModelE.offsetsAndSizes,
74 qt_meta_data_ZN12ActionsModelE,
75 qt_static_metacall,
76 nullptr,
77 qt_incomplete_metaTypeArray<qt_meta_tag_ZN12ActionsModelE_t,
78 // Q_OBJECT / Q_GADGET
79 QtPrivate::TypeAndForceComplete<ActionsModel, std::true_type>,
80 // method 'editError'
81 QtPrivate::TypeAndForceComplete<void, std::false_type>,
82 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>
83 >,
84 nullptr
85} };
86
87void ActionsModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
88{
89 auto *_t = static_cast<ActionsModel *>(_o);
90 if (_c == QMetaObject::InvokeMetaMethod) {
91 switch (_id) {
92 case 0: _t->editError((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
93 default: ;
94 }
95 }
96 if (_c == QMetaObject::IndexOfMethod) {
97 int *result = reinterpret_cast<int *>(_a[0]);
98 {
99 using _q_method_type = void (ActionsModel::*)(const QString & );
100 if (_q_method_type _q_method = &ActionsModel::editError; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
101 *result = 0;
102 return;
103 }
104 }
105 }
106}
107
108const QMetaObject *ActionsModel::metaObject() const
109{
110 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
111}
112
113void *ActionsModel::qt_metacast(const char *_clname)
114{
115 if (!_clname) return nullptr;
116 if (!strcmp(_clname, qt_meta_stringdata_ZN12ActionsModelE.stringdata0))
117 return static_cast<void*>(this);
118 return QAbstractItemModel::qt_metacast(_clname);
119}
120
121int ActionsModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
122{
123 _id = QAbstractItemModel::qt_metacall(_c, _id, _a);
124 if (_id < 0)
125 return _id;
126 if (_c == QMetaObject::InvokeMetaMethod) {
127 if (_id < 1)
128 qt_static_metacall(this, _c, _id, _a);
129 _id -= 1;
130 }
131 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
132 if (_id < 1)
133 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
134 _id -= 1;
135 }
136 return _id;
137}
138
139// SIGNAL 0
140void ActionsModel::editError(const QString & _t1)
141{
142 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
143 QMetaObject::activate(this, &staticMetaObject, 0, _a);
144}
145QT_WARNING_POP