PulseView  0.3.0
A Qt-based sigrok GUI
moc_importmenu.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'importmenu.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 "importmenu.hpp"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'importmenu.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[7];
23  char stringdata0[102];
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__widgets__ImportMenu_t, stringdata0) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
31  {
32 QT_MOC_LITERAL(0, 0, 23), // "pv::widgets::ImportMenu"
33 QT_MOC_LITERAL(1, 24, 15), // "format_selected"
34 QT_MOC_LITERAL(2, 40, 0), // ""
35 QT_MOC_LITERAL(3, 41, 36), // "std::shared_ptr<sigrok::Input..."
36 QT_MOC_LITERAL(4, 78, 6), // "format"
37 QT_MOC_LITERAL(5, 85, 9), // "on_action"
38 QT_MOC_LITERAL(6, 95, 6) // "action"
39 
40  },
41  "pv::widgets::ImportMenu\0format_selected\0"
42  "\0std::shared_ptr<sigrok::InputFormat>\0"
43  "format\0on_action\0action"
44 };
45 #undef QT_MOC_LITERAL
46 
47 static const uint qt_meta_data_pv__widgets__ImportMenu[] = {
48 
49  // content:
50  7, // revision
51  0, // classname
52  0, 0, // classinfo
53  2, 14, // methods
54  0, 0, // properties
55  0, 0, // enums/sets
56  0, 0, // constructors
57  0, // flags
58  1, // signalCount
59 
60  // signals: name, argc, parameters, tag, flags
61  1, 1, 24, 2, 0x06 /* Public */,
62 
63  // slots: name, argc, parameters, tag, flags
64  5, 1, 27, 2, 0x08 /* Private */,
65 
66  // signals: parameters
67  QMetaType::Void, 0x80000000 | 3, 4,
68 
69  // slots: parameters
70  QMetaType::Void, QMetaType::QObjectStar, 6,
71 
72  0 // eod
73 };
74 
75 void pv::widgets::ImportMenu::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
76 {
77  if (_c == QMetaObject::InvokeMetaMethod) {
78  ImportMenu *_t = static_cast<ImportMenu *>(_o);
79  Q_UNUSED(_t)
80  switch (_id) {
81  case 0: _t->format_selected((*reinterpret_cast< std::shared_ptr<sigrok::InputFormat>(*)>(_a[1]))); break;
82  case 1: _t->on_action((*reinterpret_cast< QObject*(*)>(_a[1]))); break;
83  default: ;
84  }
85  } else if (_c == QMetaObject::IndexOfMethod) {
86  int *result = reinterpret_cast<int *>(_a[0]);
87  void **func = reinterpret_cast<void **>(_a[1]);
88  {
89  typedef void (ImportMenu::*_t)(std::shared_ptr<sigrok::InputFormat> );
90  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ImportMenu::format_selected)) {
91  *result = 0;
92  }
93  }
94  }
95 }
96 
97 const QMetaObject pv::widgets::ImportMenu::staticMetaObject = {
98  { &QMenu::staticMetaObject, qt_meta_stringdata_pv__widgets__ImportMenu.data,
99  qt_meta_data_pv__widgets__ImportMenu, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
100 };
101 
102 
103 const QMetaObject *pv::widgets::ImportMenu::metaObject() const
104 {
105  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
106 }
107 
108 void *pv::widgets::ImportMenu::qt_metacast(const char *_clname)
109 {
110  if (!_clname) return Q_NULLPTR;
111  if (!strcmp(_clname, qt_meta_stringdata_pv__widgets__ImportMenu.stringdata0))
112  return static_cast<void*>(const_cast< ImportMenu*>(this));
113  return QMenu::qt_metacast(_clname);
114 }
115 
116 int pv::widgets::ImportMenu::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
117 {
118  _id = QMenu::qt_metacall(_c, _id, _a);
119  if (_id < 0)
120  return _id;
121  if (_c == QMetaObject::InvokeMetaMethod) {
122  if (_id < 2)
123  qt_static_metacall(this, _c, _id, _a);
124  _id -= 2;
125  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
126  if (_id < 2)
127  *reinterpret_cast<int*>(_a[0]) = -1;
128  _id -= 2;
129  }
130  return _id;
131 }
132 
133 // SIGNAL 0
134 void pv::widgets::ImportMenu::format_selected(std::shared_ptr<sigrok::InputFormat> _t1)
135 {
136  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
137  QMetaObject::activate(this, &staticMetaObject, 0, _a);
138 }
139 QT_END_MOC_NAMESPACE
ImportMenu(QWidget *parent, std::shared_ptr< sigrok::Context > context, QAction *open_action=nullptr)
Definition: importmenu.cpp:42
static const uint qt_meta_data_pv__widgets__ImportMenu[]
void format_selected(std::shared_ptr< sigrok::InputFormat > format)
static const qt_meta_stringdata_pv__widgets__ImportMenu_t qt_meta_stringdata_pv__widgets__ImportMenu
#define QT_MOC_LITERAL(idx, ofs, len)