1/****************************************************************************
2** Meta object code from reading C++ file 'FileContextMenu.h'
3**
4** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.7)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include <memory>
10#include "../../../../../3rdparty/unioncode-GitQlient/src/commits/FileContextMenu.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'FileContextMenu.h' doesn't include <QObject>."
15#elif Q_MOC_OUTPUT_REVISION != 67
16#error "This file was generated using the moc from 5.15.7. It"
17#error "cannot be used with the include files from this version of Qt."
18#error "(The moc has changed too much.)"
19#endif
20
21QT_BEGIN_MOC_NAMESPACE
22QT_WARNING_PUSH
23QT_WARNING_DISABLE_DEPRECATED
24struct qt_meta_stringdata_FileContextMenu_t {
25 QByteArrayData data[5];
26 char stringdata0[73];
27};
28#define QT_MOC_LITERAL(idx, ofs, len) \
29 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
30 qptrdiff(offsetof(qt_meta_stringdata_FileContextMenu_t, stringdata0) + ofs \
31 - idx * sizeof(QByteArrayData)) \
32 )
33static const qt_meta_stringdata_FileContextMenu_t qt_meta_stringdata_FileContextMenu = {
34 {
35QT_MOC_LITERAL(0, 0, 15), // "FileContextMenu"
36QT_MOC_LITERAL(1, 16, 18), // "signalOpenFileDiff"
37QT_MOC_LITERAL(2, 35, 0), // ""
38QT_MOC_LITERAL(3, 36, 21), // "signalShowFileHistory"
39QT_MOC_LITERAL(4, 58, 14) // "signalEditFile"
40
41 },
42 "FileContextMenu\0signalOpenFileDiff\0\0"
43 "signalShowFileHistory\0signalEditFile"
44};
45#undef QT_MOC_LITERAL
46
47static const uint qt_meta_data_FileContextMenu[] = {
48
49 // content:
50 8, // revision
51 0, // classname
52 0, 0, // classinfo
53 3, 14, // methods
54 0, 0, // properties
55 0, 0, // enums/sets
56 0, 0, // constructors
57 0, // flags
58 3, // signalCount
59
60 // signals: name, argc, parameters, tag, flags
61 1, 0, 29, 2, 0x06 /* Public */,
62 3, 0, 30, 2, 0x06 /* Public */,
63 4, 0, 31, 2, 0x06 /* Public */,
64
65 // signals: parameters
66 QMetaType::Void,
67 QMetaType::Void,
68 QMetaType::Void,
69
70 0 // eod
71};
72
73void FileContextMenu::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
74{
75 if (_c == QMetaObject::InvokeMetaMethod) {
76 auto *_t = static_cast<FileContextMenu *>(_o);
77 (void)_t;
78 switch (_id) {
79 case 0: _t->signalOpenFileDiff(); break;
80 case 1: _t->signalShowFileHistory(); break;
81 case 2: _t->signalEditFile(); break;
82 default: ;
83 }
84 } else if (_c == QMetaObject::IndexOfMethod) {
85 int *result = reinterpret_cast<int *>(_a[0]);
86 {
87 using _t = void (FileContextMenu::*)();
88 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&FileContextMenu::signalOpenFileDiff)) {
89 *result = 0;
90 return;
91 }
92 }
93 {
94 using _t = void (FileContextMenu::*)();
95 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&FileContextMenu::signalShowFileHistory)) {
96 *result = 1;
97 return;
98 }
99 }
100 {
101 using _t = void (FileContextMenu::*)();
102 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&FileContextMenu::signalEditFile)) {
103 *result = 2;
104 return;
105 }
106 }
107 }
108 (void)_a;
109}
110
111QT_INIT_METAOBJECT const QMetaObject FileContextMenu::staticMetaObject = { {
112 QMetaObject::SuperData::link<QMenu::staticMetaObject>(),
113 qt_meta_stringdata_FileContextMenu.data,
114 qt_meta_data_FileContextMenu,
115 qt_static_metacall,
116 nullptr,
117 nullptr
118} };
119
120
121const QMetaObject *FileContextMenu::metaObject() const
122{
123 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
124}
125
126void *FileContextMenu::qt_metacast(const char *_clname)
127{
128 if (!_clname) return nullptr;
129 if (!strcmp(_clname, qt_meta_stringdata_FileContextMenu.stringdata0))
130 return static_cast<void*>(this);
131 return QMenu::qt_metacast(_clname);
132}
133
134int FileContextMenu::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
135{
136 _id = QMenu::qt_metacall(_c, _id, _a);
137 if (_id < 0)
138 return _id;
139 if (_c == QMetaObject::InvokeMetaMethod) {
140 if (_id < 3)
141 qt_static_metacall(this, _c, _id, _a);
142 _id -= 3;
143 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
144 if (_id < 3)
145 *reinterpret_cast<int*>(_a[0]) = -1;
146 _id -= 3;
147 }
148 return _id;
149}
150
151// SIGNAL 0
152void FileContextMenu::signalOpenFileDiff()
153{
154 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
155}
156
157// SIGNAL 1
158void FileContextMenu::signalShowFileHistory()
159{
160 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
161}
162
163// SIGNAL 2
164void FileContextMenu::signalEditFile()
165{
166 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
167}
168QT_WARNING_POP
169QT_END_MOC_NAMESPACE
170