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