PulseView  unreleased development snapshot
A Qt-based sigrok GUI
moc_enum.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'enum.hpp'
3 **
4 ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.1)
5 **
6 ** WARNING! All changes made in this file will be lost!
7 *****************************************************************************/
8 
9 #include "../../../../pv/prop/enum.hpp"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'enum.hpp' doesn't include <QObject>."
14 #elif Q_MOC_OUTPUT_REVISION != 67
15 #error "This file was generated using the moc from 5.5.1. It"
16 #error "cannot be used with the include files from this version of Qt."
17 #error "(The moc has changed too much.)"
18 #endif
19 
20 QT_BEGIN_MOC_NAMESPACE
22  QByteArrayData data[4];
23  char stringdata0[58];
24 };
25 #define QT_MOC_LITERAL(idx, ofs, len) \
26  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
27  qptrdiff(offsetof(qt_meta_stringdata_pv__prop__Enum_t, stringdata0) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
31  {
32 QT_MOC_LITERAL(0, 0, 14), // "pv::prop::Enum"
33 QT_MOC_LITERAL(1, 15, 24), // "on_current_index_changed"
34 QT_MOC_LITERAL(2, 40, 0), // ""
35 QT_MOC_LITERAL(3, 41, 16) // "on_value_changed"
36 
37  },
38  "pv::prop::Enum\0on_current_index_changed\0"
39  "\0on_value_changed"
40 };
41 #undef QT_MOC_LITERAL
42 
43 static const uint qt_meta_data_pv__prop__Enum[] = {
44 
45  // content:
46  7, // revision
47  0, // classname
48  0, 0, // classinfo
49  2, 14, // methods
50  0, 0, // properties
51  0, 0, // enums/sets
52  0, 0, // constructors
53  0, // flags
54  0, // signalCount
55 
56  // slots: name, argc, parameters, tag, flags
57  1, 1, 24, 2, 0x08 /* Private */,
58  3, 1, 27, 2, 0x08 /* Private */,
59 
60  // slots: parameters
61  QMetaType::Void, QMetaType::Int, 2,
62  QMetaType::Void, QMetaType::Int, 2,
63 
64  0 // eod
65 };
66 
67 void pv::prop::Enum::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
68 {
69  if (_c == QMetaObject::InvokeMetaMethod) {
70  Enum *_t = static_cast<Enum *>(_o);
71  Q_UNUSED(_t)
72  switch (_id) {
73  case 0: _t->on_current_index_changed((*reinterpret_cast< int(*)>(_a[1]))); break;
74  case 1: _t->on_value_changed((*reinterpret_cast< int(*)>(_a[1]))); break;
75  default: ;
76  }
77  }
78 }
79 
80 const QMetaObject pv::prop::Enum::staticMetaObject = {
81  { &Property::staticMetaObject, qt_meta_stringdata_pv__prop__Enum.data,
82  qt_meta_data_pv__prop__Enum, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
83 };
84 
85 
86 const QMetaObject *pv::prop::Enum::metaObject() const
87 {
88  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
89 }
90 
91 void *pv::prop::Enum::qt_metacast(const char *_clname)
92 {
93  if (!_clname) return Q_NULLPTR;
94  if (!strcmp(_clname, qt_meta_stringdata_pv__prop__Enum.stringdata0))
95  return static_cast<void*>(const_cast< Enum*>(this));
96  return Property::qt_metacast(_clname);
97 }
98 
99 int pv::prop::Enum::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
100 {
101  _id = Property::qt_metacall(_c, _id, _a);
102  if (_id < 0)
103  return _id;
104  if (_c == QMetaObject::InvokeMetaMethod) {
105  if (_id < 2)
106  qt_static_metacall(this, _c, _id, _a);
107  _id -= 2;
108  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
109  if (_id < 2)
110  *reinterpret_cast<int*>(_a[0]) = -1;
111  _id -= 2;
112  }
113  return _id;
114 }
115 QT_END_MOC_NAMESPACE
#define QT_MOC_LITERAL(idx, ofs, len)
Definition: moc_enum.cpp:25
static const uint qt_meta_data_pv__prop__Enum[]
Definition: moc_enum.cpp:43
static const qt_meta_stringdata_pv__prop__Enum_t qt_meta_stringdata_pv__prop__Enum
Definition: moc_enum.cpp:30