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