CuteLogger
Fast and simple logging solution for Qt based applications
moc_qmlprofile.cpp
1/****************************************************************************
2** Meta object code from reading C++ file 'qmlprofile.h'
3**
4** Created by: The Qt Meta Object Compiler version 69 (Qt 6.9.0)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include "../../../../src/qmltypes/qmlprofile.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 'qmlprofile.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 69
21#error "This file was generated using the moc from 6.9.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_ZN10QmlProfileE_t {};
35} // unnamed namespace
36
37template <> constexpr inline auto QmlProfile::qt_create_metaobjectdata<qt_meta_tag_ZN10QmlProfileE_t>()
38{
39 namespace QMC = QtMocConstants;
40 QtMocHelpers::StringRefStorage qt_stringData {
41 "QmlProfile",
42 "profileChanged",
43 "",
44 "width",
45 "height",
46 "aspectRatio",
47 "fps",
48 "sar"
49 };
50
51 QtMocHelpers::UintData qt_methods {
52 // Signal 'profileChanged'
53 QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
54 };
55 QtMocHelpers::UintData qt_properties {
56 // property 'width'
57 QtMocHelpers::PropertyData<int>(3, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
58 // property 'height'
59 QtMocHelpers::PropertyData<int>(4, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
60 // property 'aspectRatio'
61 QtMocHelpers::PropertyData<double>(5, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Constant),
62 // property 'fps'
63 QtMocHelpers::PropertyData<double>(6, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Constant),
64 // property 'sar'
65 QtMocHelpers::PropertyData<double>(7, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Constant),
66 };
67 QtMocHelpers::UintData qt_enums {
68 };
69 return QtMocHelpers::metaObjectData<QmlProfile, qt_meta_tag_ZN10QmlProfileE_t>(QMC::MetaObjectFlag{}, qt_stringData,
70 qt_methods, qt_properties, qt_enums);
71}
72Q_CONSTINIT const QMetaObject QmlProfile::staticMetaObject = { {
73 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
74 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QmlProfileE_t>.stringdata,
75 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QmlProfileE_t>.data,
76 qt_static_metacall,
77 nullptr,
78 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10QmlProfileE_t>.metaTypes,
79 nullptr
80} };
81
82void QmlProfile::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
83{
84 auto *_t = static_cast<QmlProfile *>(_o);
85 if (_c == QMetaObject::InvokeMetaMethod) {
86 switch (_id) {
87 case 0: _t->profileChanged(); break;
88 default: ;
89 }
90 }
91 if (_c == QMetaObject::IndexOfMethod) {
92 if (QtMocHelpers::indexOfMethod<void (QmlProfile::*)()>(_a, &QmlProfile::profileChanged, 0))
93 return;
94 }
95 if (_c == QMetaObject::ReadProperty) {
96 void *_v = _a[0];
97 switch (_id) {
98 case 0: *reinterpret_cast<int*>(_v) = _t->width(); break;
99 case 1: *reinterpret_cast<int*>(_v) = _t->height(); break;
100 case 2: *reinterpret_cast<double*>(_v) = _t->aspectRatio(); break;
101 case 3: *reinterpret_cast<double*>(_v) = _t->fps(); break;
102 case 4: *reinterpret_cast<double*>(_v) = _t->sar(); break;
103 default: break;
104 }
105 }
106}
107
108const QMetaObject *QmlProfile::metaObject() const
109{
110 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
111}
112
113void *QmlProfile::qt_metacast(const char *_clname)
114{
115 if (!_clname) return nullptr;
116 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QmlProfileE_t>.strings))
117 return static_cast<void*>(this);
118 return QObject::qt_metacast(_clname);
119}
120
121int QmlProfile::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
122{
123 _id = QObject::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 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
137 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
138 || _c == QMetaObject::RegisterPropertyMetaType) {
139 qt_static_metacall(this, _c, _id, _a);
140 _id -= 5;
141 }
142 return _id;
143}
144
145// SIGNAL 0
146void QmlProfile::profileChanged()
147{
148 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
149}
150QT_WARNING_POP