PulseView  0.3.0
A Qt-based sigrok GUI
moc_colourbutton.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'colourbutton.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/colourbutton.hpp"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'colourbutton.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[74];
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__ColourButton_t, stringdata0) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
31  {
32 QT_MOC_LITERAL(0, 0, 25), // "pv::widgets::ColourButton"
33 QT_MOC_LITERAL(1, 26, 8), // "selected"
34 QT_MOC_LITERAL(2, 35, 0), // ""
35 QT_MOC_LITERAL(3, 36, 6), // "colour"
36 QT_MOC_LITERAL(4, 43, 10), // "on_clicked"
37 QT_MOC_LITERAL(5, 54, 11), // "on_selected"
38 QT_MOC_LITERAL(6, 66, 3), // "row"
39 QT_MOC_LITERAL(7, 70, 3) // "col"
40 
41  },
42  "pv::widgets::ColourButton\0selected\0\0"
43  "colour\0on_clicked\0on_selected\0row\0col"
44 };
45 #undef QT_MOC_LITERAL
46 
48 
49  // content:
50  7, // revision
51  0, // classname
52  0, 0, // classinfo
53  3, 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, 29, 2, 0x06 /* Public */,
62 
63  // slots: name, argc, parameters, tag, flags
64  4, 1, 32, 2, 0x08 /* Private */,
65  5, 2, 35, 2, 0x08 /* Private */,
66 
67  // signals: parameters
68  QMetaType::Void, QMetaType::QColor, 3,
69 
70  // slots: parameters
71  QMetaType::Void, QMetaType::Bool, 2,
72  QMetaType::Void, QMetaType::Int, QMetaType::Int, 6, 7,
73 
74  0 // eod
75 };
76 
77 void pv::widgets::ColourButton::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
78 {
79  if (_c == QMetaObject::InvokeMetaMethod) {
80  ColourButton *_t = static_cast<ColourButton *>(_o);
81  Q_UNUSED(_t)
82  switch (_id) {
83  case 0: _t->selected((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
84  case 1: _t->on_clicked((*reinterpret_cast< bool(*)>(_a[1]))); break;
85  case 2: _t->on_selected((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
86  default: ;
87  }
88  } else if (_c == QMetaObject::IndexOfMethod) {
89  int *result = reinterpret_cast<int *>(_a[0]);
90  void **func = reinterpret_cast<void **>(_a[1]);
91  {
92  typedef void (ColourButton::*_t)(const QColor & );
93  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ColourButton::selected)) {
94  *result = 0;
95  }
96  }
97  }
98 }
99 
100 const QMetaObject pv::widgets::ColourButton::staticMetaObject = {
101  { &QPushButton::staticMetaObject, qt_meta_stringdata_pv__widgets__ColourButton.data,
102  qt_meta_data_pv__widgets__ColourButton, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
103 };
104 
105 
106 const QMetaObject *pv::widgets::ColourButton::metaObject() const
107 {
108  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
109 }
110 
111 void *pv::widgets::ColourButton::qt_metacast(const char *_clname)
112 {
113  if (!_clname) return Q_NULLPTR;
114  if (!strcmp(_clname, qt_meta_stringdata_pv__widgets__ColourButton.stringdata0))
115  return static_cast<void*>(const_cast< ColourButton*>(this));
116  return QPushButton::qt_metacast(_clname);
117 }
118 
119 int pv::widgets::ColourButton::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
120 {
121  _id = QPushButton::qt_metacall(_c, _id, _a);
122  if (_id < 0)
123  return _id;
124  if (_c == QMetaObject::InvokeMetaMethod) {
125  if (_id < 3)
126  qt_static_metacall(this, _c, _id, _a);
127  _id -= 3;
128  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
129  if (_id < 3)
130  *reinterpret_cast<int*>(_a[0]) = -1;
131  _id -= 3;
132  }
133  return _id;
134 }
135 
136 // SIGNAL 0
137 void pv::widgets::ColourButton::selected(const QColor & _t1)
138 {
139  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
140  QMetaObject::activate(this, &staticMetaObject, 0, _a);
141 }
142 QT_END_MOC_NAMESPACE
ColourButton(int rows, int cols, QWidget *parent)
static const qt_meta_stringdata_pv__widgets__ColourButton_t qt_meta_stringdata_pv__widgets__ColourButton
static const uint qt_meta_data_pv__widgets__ColourButton[]
#define QT_MOC_LITERAL(idx, ofs, len)
void selected(const QColor &colour)