CuteLogger
Fast and simple logging solution for Qt based applications
moc_qmlapplication.cpp
1/****************************************************************************
2** Meta object code from reading C++ file 'qmlapplication.h'
3**
4** Created by: The Qt Meta Object Compiler version 69 (Qt 6.11.1)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include "../../../../src/qmltypes/qmlapplication.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 'qmlapplication.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 69
21#error "This file was generated using the moc from 6.11.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_ZN14QmlApplicationE_t {};
35} // unnamed namespace
36
37template <> constexpr inline auto QmlApplication::qt_create_metaobjectdata<qt_meta_tag_ZN14QmlApplicationE_t>()
38{
39 namespace QMC = QtMocConstants;
40 QtMocHelpers::StringRefStorage qt_stringData {
41 "QmlApplication",
42 "paletteChanged",
43 "",
44 "filtersCopied",
45 "filtersPasted",
46 "Mlt::Producer*",
47 "copyAllFilters",
48 "copyEnabledFilters",
49 "copyCurrentFilter",
50 "clockFromFrames",
51 "frames",
52 "timeFromFrames",
53 "audioChannels",
54 "getNextProjectFile",
55 "filename",
56 "isProjectFolder",
57 "showStatusMessage",
58 "message",
59 "timeoutSeconds",
60 "showAddOnFiltersDialog",
61 "confirmOutputFilter",
62 "contrastingColor",
63 "QColor",
64 "color",
65 "addWipe",
66 "filePath",
67 "intersects",
68 "QRectF",
69 "a",
70 "b",
71 "actionFirstShortcut",
72 "actionName",
73 "triggerAction",
74 "dialogModality",
75 "Qt::WindowModality",
76 "mousePos",
77 "QPoint",
78 "playheadColor",
79 "toolTipBaseColor",
80 "toolTipTextColor",
81 "OS",
82 "mainWinRect",
83 "QRect",
84 "hasFiltersOnClipboard",
85 "devicePixelRatio",
86 "maxTextureSize",
87 "wipes"
88 };
89
90 QtMocHelpers::UintData qt_methods {
91 // Signal 'paletteChanged'
92 QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
93 // Signal 'filtersCopied'
94 QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
95 // Signal 'filtersPasted'
96 QtMocHelpers::SignalData<void(Mlt::Producer *)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
97 { 0x80000000 | 5, 2 },
98 }}),
99 // Method 'copyAllFilters'
100 QtMocHelpers::MethodData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
101 // Method 'copyEnabledFilters'
102 QtMocHelpers::MethodData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
103 // Method 'copyCurrentFilter'
104 QtMocHelpers::MethodData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
105 // Method 'clockFromFrames'
106 QtMocHelpers::MethodData<QString(int)>(9, 2, QMC::AccessPublic, QMetaType::QString, {{
107 { QMetaType::Int, 10 },
108 }}),
109 // Method 'timeFromFrames'
110 QtMocHelpers::MethodData<QString(int)>(11, 2, QMC::AccessPublic, QMetaType::QString, {{
111 { QMetaType::Int, 10 },
112 }}),
113 // Method 'audioChannels'
114 QtMocHelpers::MethodData<int()>(12, 2, QMC::AccessPublic, QMetaType::Int),
115 // Method 'getNextProjectFile'
116 QtMocHelpers::MethodData<QString(const QString &)>(13, 2, QMC::AccessPublic, QMetaType::QString, {{
117 { QMetaType::QString, 14 },
118 }}),
119 // Method 'isProjectFolder'
120 QtMocHelpers::MethodData<bool()>(15, 2, QMC::AccessPublic, QMetaType::Bool),
121 // Method 'showStatusMessage'
122 QtMocHelpers::MethodData<void(const QString &, int)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
123 { QMetaType::QString, 17 }, { QMetaType::Int, 18 },
124 }}),
125 // Method 'showStatusMessage'
126 QtMocHelpers::MethodData<void(const QString &)>(16, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
127 { QMetaType::QString, 17 },
128 }}),
129 // Method 'showAddOnFiltersDialog'
130 QtMocHelpers::MethodData<void()>(19, 2, QMC::AccessPublic, QMetaType::Void),
131 // Method 'confirmOutputFilter'
132 QtMocHelpers::MethodData<bool()>(20, 2, QMC::AccessPublic, QMetaType::Bool),
133 // Method 'contrastingColor'
134 QtMocHelpers::MethodData<QColor(QString)>(21, 2, QMC::AccessPublic, 0x80000000 | 22, {{
135 { QMetaType::QString, 23 },
136 }}),
137 // Method 'addWipe'
138 QtMocHelpers::MethodData<bool(const QString &)>(24, 2, QMC::AccessPublic, QMetaType::Bool, {{
139 { QMetaType::QString, 25 },
140 }}),
141 // Method 'intersects'
142 QtMocHelpers::MethodData<bool(const QRectF &, const QRectF &)>(26, 2, QMC::AccessPublic, QMetaType::Bool, {{
143 { 0x80000000 | 27, 28 }, { 0x80000000 | 27, 29 },
144 }}),
145 // Method 'actionFirstShortcut'
146 QtMocHelpers::MethodData<QString(const QString &)>(30, 2, QMC::AccessPublic, QMetaType::QString, {{
147 { QMetaType::QString, 31 },
148 }}),
149 // Method 'triggerAction'
150 QtMocHelpers::MethodData<void(const QString &)>(32, 2, QMC::AccessPublic, QMetaType::Void, {{
151 { QMetaType::QString, 31 },
152 }}),
153 };
154 QtMocHelpers::UintData qt_properties {
155 // property 'dialogModality'
156 QtMocHelpers::PropertyData<Qt::WindowModality>(33, 0x80000000 | 34, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
157 // property 'mousePos'
158 QtMocHelpers::PropertyData<QPoint>(35, 0x80000000 | 36, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
159 // property 'playheadColor'
160 QtMocHelpers::PropertyData<QColor>(37, 0x80000000 | 22, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
161 // property 'toolTipBaseColor'
162 QtMocHelpers::PropertyData<QColor>(38, 0x80000000 | 22, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 0),
163 // property 'toolTipTextColor'
164 QtMocHelpers::PropertyData<QColor>(39, 0x80000000 | 22, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 0),
165 // property 'OS'
166 QtMocHelpers::PropertyData<QString>(40, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
167 // property 'mainWinRect'
168 QtMocHelpers::PropertyData<QRect>(41, 0x80000000 | 42, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
169 // property 'hasFiltersOnClipboard'
170 QtMocHelpers::PropertyData<bool>(43, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
171 // property 'devicePixelRatio'
172 QtMocHelpers::PropertyData<qreal>(44, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Constant),
173 // property 'maxTextureSize'
174 QtMocHelpers::PropertyData<int>(45, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
175 // property 'wipes'
176 QtMocHelpers::PropertyData<QStringList>(46, QMetaType::QStringList, QMC::DefaultPropertyFlags | QMC::Constant),
177 };
178 QtMocHelpers::UintData qt_enums {
179 };
180 return QtMocHelpers::metaObjectData<QmlApplication, qt_meta_tag_ZN14QmlApplicationE_t>(QMC::MetaObjectFlag{}, qt_stringData,
181 qt_methods, qt_properties, qt_enums);
182}
183Q_CONSTINIT const QMetaObject QmlApplication::staticMetaObject = { {
184 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
185 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14QmlApplicationE_t>.stringdata,
186 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14QmlApplicationE_t>.data,
187 qt_static_metacall,
188 nullptr,
189 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN14QmlApplicationE_t>.metaTypes,
190 nullptr
191} };
192
193void QmlApplication::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
194{
195 auto *_t = static_cast<QmlApplication *>(_o);
196 if (_c == QMetaObject::InvokeMetaMethod) {
197 switch (_id) {
198 case 0: _t->paletteChanged(); break;
199 case 1: _t->filtersCopied(); break;
200 case 2: _t->filtersPasted((*reinterpret_cast<std::add_pointer_t<Mlt::Producer*>>(_a[1]))); break;
201 case 3: _t->copyAllFilters(); break;
202 case 4: _t->copyEnabledFilters(); break;
203 case 5: _t->copyCurrentFilter(); break;
204 case 6: { QString _r = _t->clockFromFrames((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
205 if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); } break;
206 case 7: { QString _r = _t->timeFromFrames((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
207 if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); } break;
208 case 8: { int _r = _t->audioChannels();
209 if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); } break;
210 case 9: { QString _r = _t->getNextProjectFile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
211 if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); } break;
212 case 10: { bool _r = _t->isProjectFolder();
213 if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); } break;
214 case 11: _t->showStatusMessage((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
215 case 12: _t->showStatusMessage((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
216 case 13: _t->showAddOnFiltersDialog(); break;
217 case 14: { bool _r = _t->confirmOutputFilter();
218 if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); } break;
219 case 15: { QColor _r = _t->contrastingColor((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
220 if (_a[0]) *reinterpret_cast<QColor*>(_a[0]) = std::move(_r); } break;
221 case 16: { bool _r = _t->addWipe((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
222 if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); } break;
223 case 17: { bool _r = _t->intersects((*reinterpret_cast<std::add_pointer_t<QRectF>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QRectF>>(_a[2])));
224 if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); } break;
225 case 18: { QString _r = _t->actionFirstShortcut((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
226 if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); } break;
227 case 19: _t->triggerAction((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
228 default: ;
229 }
230 }
231 if (_c == QMetaObject::IndexOfMethod) {
232 if (QtMocHelpers::indexOfMethod<void (QmlApplication::*)()>(_a, &QmlApplication::paletteChanged, 0))
233 return;
234 if (QtMocHelpers::indexOfMethod<void (QmlApplication::*)()>(_a, &QmlApplication::filtersCopied, 1))
235 return;
236 if (QtMocHelpers::indexOfMethod<void (QmlApplication::*)(Mlt::Producer * )>(_a, &QmlApplication::filtersPasted, 2))
237 return;
238 }
239 if (_c == QMetaObject::ReadProperty) {
240 void *_v = _a[0];
241 switch (_id) {
242 case 0: *reinterpret_cast<Qt::WindowModality*>(_v) = _t->dialogModality(); break;
243 case 1: *reinterpret_cast<QPoint*>(_v) = _t->mousePos(); break;
244 case 2: *reinterpret_cast<QColor*>(_v) = _t->playheadColor(); break;
245 case 3: *reinterpret_cast<QColor*>(_v) = _t->toolTipBaseColor(); break;
246 case 4: *reinterpret_cast<QColor*>(_v) = _t->toolTipTextColor(); break;
247 case 5: *reinterpret_cast<QString*>(_v) = _t->OS(); break;
248 case 6: *reinterpret_cast<QRect*>(_v) = _t->mainWinRect(); break;
249 case 7: *reinterpret_cast<bool*>(_v) = _t->hasFiltersOnClipboard(); break;
250 case 8: *reinterpret_cast<qreal*>(_v) = _t->devicePixelRatio(); break;
251 case 9: *reinterpret_cast<int*>(_v) = _t->maxTextureSize(); break;
252 case 10: *reinterpret_cast<QStringList*>(_v) = _t->wipes(); break;
253 default: break;
254 }
255 }
256}
257
258const QMetaObject *QmlApplication::metaObject() const
259{
260 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
261}
262
263void *QmlApplication::qt_metacast(const char *_clname)
264{
265 if (!_clname) return nullptr;
266 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14QmlApplicationE_t>.strings))
267 return static_cast<void*>(this);
268 return QObject::qt_metacast(_clname);
269}
270
271int QmlApplication::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
272{
273 _id = QObject::qt_metacall(_c, _id, _a);
274 if (_id < 0)
275 return _id;
276 if (_c == QMetaObject::InvokeMetaMethod) {
277 if (_id < 20)
278 qt_static_metacall(this, _c, _id, _a);
279 _id -= 20;
280 }
281 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
282 if (_id < 20)
283 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
284 _id -= 20;
285 }
286 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
287 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
288 || _c == QMetaObject::RegisterPropertyMetaType) {
289 qt_static_metacall(this, _c, _id, _a);
290 _id -= 11;
291 }
292 return _id;
293}
294
295// SIGNAL 0
296void QmlApplication::paletteChanged()
297{
298 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
299}
300
301// SIGNAL 1
302void QmlApplication::filtersCopied()
303{
304 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
305}
306
307// SIGNAL 2
308void QmlApplication::filtersPasted(Mlt::Producer * _t1)
309{
310 QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
311}
312QT_WARNING_POP