PulseView  unreleased development snapshot
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 "../../../../pv/widgets/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::RegisterMethodArgumentMetaType) {
93  switch (_id) {
94  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
95  case 2:
96  switch (*reinterpret_cast<int*>(_a[1])) {
97  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
98  case 0:
99  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QAction* >(); break;
100  }
101  break;
102  }
103  } else if (_c == QMetaObject::IndexOfMethod) {
104  int *result = reinterpret_cast<int *>(_a[0]);
105  void **func = reinterpret_cast<void **>(_a[1]);
106  {
107  typedef void (DeviceToolButton::*_t)();
108  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DeviceToolButton::device_selected)) {
109  *result = 0;
110  }
111  }
112  }
113 }
114 
115 const QMetaObject pv::widgets::DeviceToolButton::staticMetaObject = {
116  { &QToolButton::staticMetaObject, qt_meta_stringdata_pv__widgets__DeviceToolButton.data,
117  qt_meta_data_pv__widgets__DeviceToolButton, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
118 };
119 
120 
121 const QMetaObject *pv::widgets::DeviceToolButton::metaObject() const
122 {
123  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
124 }
125 
126 void *pv::widgets::DeviceToolButton::qt_metacast(const char *_clname)
127 {
128  if (!_clname) return Q_NULLPTR;
129  if (!strcmp(_clname, qt_meta_stringdata_pv__widgets__DeviceToolButton.stringdata0))
130  return static_cast<void*>(const_cast< DeviceToolButton*>(this));
131  return QToolButton::qt_metacast(_clname);
132 }
133 
134 int pv::widgets::DeviceToolButton::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
135 {
136  _id = QToolButton::qt_metacall(_c, _id, _a);
137  if (_id < 0)
138  return _id;
139  if (_c == QMetaObject::InvokeMetaMethod) {
140  if (_id < 4)
141  qt_static_metacall(this, _c, _id, _a);
142  _id -= 4;
143  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
144  if (_id < 4)
145  qt_static_metacall(this, _c, _id, _a);
146  _id -= 4;
147  }
148  return _id;
149 }
150 
151 // SIGNAL 0
153 {
154  QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
155 }
156 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[]
#define QT_MOC_LITERAL(idx, ofs, len)