umbrello 25.12.2
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
moc_statewidget.cpp
Go to the documentation of this file.
1/****************************************************************************
2** Meta object code from reading C++ file 'statewidget.h'
3**
4** Created by: The Qt Meta Object Compiler version 69 (Qt 6.9.3)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
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 'statewidget.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 69
21#error "This file was generated using the moc from 6.9.3. 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
32QT_WARNING_DISABLE_GCC("-Wuseless-cast")
33namespace {
35} // unnamed namespace
36
37template <> constexpr inline auto StateWidget::qt_create_metaobjectdata<qt_meta_tag_ZN11StateWidgetE_t>()
38{
39 namespace QMC = QtMocConstants;
40 QtMocHelpers::StringRefStorage qt_stringData {
41 "StateWidget",
42 "slotMenuSelection",
43 "",
44 "QAction*",
45 "action",
46 "StateType",
47 "Initial",
48 "Normal",
49 "End",
50 "Fork",
51 "Join",
52 "Junction",
53 "DeepHistory",
54 "ShallowHistory",
55 "Choice",
56 "Combined"
57 };
58
59 QtMocHelpers::UintData qt_methods {
60 // Slot 'slotMenuSelection'
61 QtMocHelpers::SlotData<void(QAction *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
62 { 0x80000000 | 3, 4 },
63 }}),
64 };
65 QtMocHelpers::UintData qt_properties {
66 };
67 QtMocHelpers::UintData qt_enums {
68 // enum 'StateType'
69 QtMocHelpers::EnumData<enum StateType>(5, 5, QMC::EnumFlags{}).add({
70 { 6, StateType::Initial },
71 { 7, StateType::Normal },
72 { 8, StateType::End },
73 { 9, StateType::Fork },
74 { 10, StateType::Join },
75 { 11, StateType::Junction },
78 { 14, StateType::Choice },
79 { 15, StateType::Combined },
80 }),
81 };
82 return QtMocHelpers::metaObjectData<StateWidget, qt_meta_tag_ZN11StateWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
83 qt_methods, qt_properties, qt_enums);
84}
85Q_CONSTINIT const QMetaObject StateWidget::staticMetaObject = { {
86 QMetaObject::SuperData::link<UMLWidget::staticMetaObject>(),
87 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11StateWidgetE_t>.stringdata,
88 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11StateWidgetE_t>.data,
89 qt_static_metacall,
90 nullptr,
91 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11StateWidgetE_t>.metaTypes,
92 nullptr
93} };
94
95void StateWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
96{
97 auto *_t = static_cast<StateWidget *>(_o);
98 if (_c == QMetaObject::InvokeMetaMethod) {
99 switch (_id) {
100 case 0: _t->slotMenuSelection((*reinterpret_cast< std::add_pointer_t<QAction*>>(_a[1]))); break;
101 default: ;
102 }
103 }
104}
105
106const QMetaObject *StateWidget::metaObject() const
107{
108 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
109}
110
111void *StateWidget::qt_metacast(const char *_clname)
112{
113 if (!_clname) return nullptr;
114 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11StateWidgetE_t>.strings))
115 return static_cast<void*>(this);
116 return UMLWidget::qt_metacast(_clname);
117}
118
119int StateWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
120{
121 _id = UMLWidget::qt_metacall(_c, _id, _a);
122 if (_id < 0)
123 return _id;
124 if (_c == QMetaObject::InvokeMetaMethod) {
125 if (_id < 1)
126 qt_static_metacall(this, _c, _id, _a);
127 _id -= 1;
128 }
129 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
130 if (_id < 1)
131 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
132 _id -= 1;
133 }
134 return _id;
135}
136QT_WARNING_POP
@ Junction
Definition statewidget.h:46
@ Fork
Definition statewidget.h:44
@ ShallowHistory
Definition statewidget.h:48
@ Join
Definition statewidget.h:45
@ DeepHistory
Definition statewidget.h:47
@ Combined
Definition statewidget.h:53
@ Choice
Definition statewidget.h:49
@ Initial
Definition statewidget.h:41
@ End
Definition statewidget.h:43
@ Normal
Definition statewidget.h:42
StateWidget(UMLScene *scene, StateType stateType=Normal, Uml::ID::Type id=Uml::ID::None)
Definition statewidget.cpp:39
#define Q_CONSTINIT
Definition moc_parser.cpp:27
Definition moc_parser.cpp:33