ckb-next  v0.2.8 at branch master
ckb-next driver for corsair devices
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
moc_keywidget.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'keywidget.h'
3 **
4 ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.7.1)
5 **
6 ** WARNING! All changes made in this file will be lost!
7 *****************************************************************************/
8 
9 #include "../keywidget.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #include <QtCore/QSet>
13 #if !defined(Q_MOC_OUTPUT_REVISION)
14 #error "The header file 'keywidget.h' doesn't include <QObject>."
15 #elif Q_MOC_OUTPUT_REVISION != 67
16 #error "This file was generated using the moc from 5.7.1. It"
17 #error "cannot be used with the include files from this version of Qt."
18 #error "(The moc has changed too much.)"
19 #endif
20 
21 QT_BEGIN_MOC_NAMESPACE
23  QByteArrayData data[10];
24  char stringdata0[118];
25 };
26 #define QT_MOC_LITERAL(idx, ofs, len) \
27  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
28  qptrdiff(offsetof(qt_meta_stringdata_KeyWidget_t, stringdata0) + ofs \
29  - idx * sizeof(QByteArrayData)) \
30  )
32  {
33 QT_MOC_LITERAL(0, 0, 9), // "KeyWidget"
34 QT_MOC_LITERAL(1, 10, 16), // "selectionChanged"
35 QT_MOC_LITERAL(2, 27, 0), // ""
36 QT_MOC_LITERAL(3, 28, 8), // "selected"
37 QT_MOC_LITERAL(4, 37, 16), // "sidelightToggled"
38 QT_MOC_LITERAL(5, 54, 15), // "displayColorMap"
39 QT_MOC_LITERAL(6, 70, 8), // "ColorMap"
40 QT_MOC_LITERAL(7, 79, 13), // "newDisplayMap"
41 QT_MOC_LITERAL(8, 93, 13), // "QSet<QString>"
42 QT_MOC_LITERAL(9, 107, 10) // "indicators"
43 
44  },
45  "KeyWidget\0selectionChanged\0\0selected\0"
46  "sidelightToggled\0displayColorMap\0"
47  "ColorMap\0newDisplayMap\0QSet<QString>\0"
48  "indicators"
49 };
50 #undef QT_MOC_LITERAL
51 
52 static const uint qt_meta_data_KeyWidget[] = {
53 
54  // content:
55  7, // revision
56  0, // classname
57  0, 0, // classinfo
58  4, 14, // methods
59  0, 0, // properties
60  0, 0, // enums/sets
61  0, 0, // constructors
62  0, // flags
63  2, // signalCount
64 
65  // signals: name, argc, parameters, tag, flags
66  1, 1, 34, 2, 0x06 /* Public */,
67  4, 0, 37, 2, 0x06 /* Public */,
68 
69  // slots: name, argc, parameters, tag, flags
70  5, 2, 38, 2, 0x0a /* Public */,
71  5, 1, 43, 2, 0x2a /* Public | MethodCloned */,
72 
73  // signals: parameters
74  QMetaType::Void, QMetaType::QStringList, 3,
75  QMetaType::Void,
76 
77  // slots: parameters
78  QMetaType::Void, 0x80000000 | 6, 0x80000000 | 8, 7, 9,
79  QMetaType::Void, 0x80000000 | 6, 7,
80 
81  0 // eod
82 };
83 
84 void KeyWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
85 {
86  if (_c == QMetaObject::InvokeMetaMethod) {
87  KeyWidget *_t = static_cast<KeyWidget *>(_o);
88  Q_UNUSED(_t)
89  switch (_id) {
90  case 0: _t->selectionChanged((*reinterpret_cast< QStringList(*)>(_a[1]))); break;
91  case 1: _t->sidelightToggled(); break;
92  case 2: _t->displayColorMap((*reinterpret_cast< const ColorMap(*)>(_a[1])),(*reinterpret_cast< const QSet<QString>(*)>(_a[2]))); break;
93  case 3: _t->displayColorMap((*reinterpret_cast< const ColorMap(*)>(_a[1]))); break;
94  default: ;
95  }
96  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
97  switch (_id) {
98  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
99  case 2:
100  switch (*reinterpret_cast<int*>(_a[1])) {
101  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
102  case 1:
103  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QSet<QString> >(); break;
104  }
105  break;
106  }
107  } else if (_c == QMetaObject::IndexOfMethod) {
108  int *result = reinterpret_cast<int *>(_a[0]);
109  void **func = reinterpret_cast<void **>(_a[1]);
110  {
111  typedef void (KeyWidget::*_t)(QStringList );
112  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KeyWidget::selectionChanged)) {
113  *result = 0;
114  return;
115  }
116  }
117  {
118  typedef void (KeyWidget::*_t)();
119  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KeyWidget::sidelightToggled)) {
120  *result = 1;
121  return;
122  }
123  }
124  }
125 }
126 
127 const QMetaObject KeyWidget::staticMetaObject = {
128  { &QWidget::staticMetaObject, qt_meta_stringdata_KeyWidget.data,
129  qt_meta_data_KeyWidget, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
130 };
131 
132 
133 const QMetaObject *KeyWidget::metaObject() const
134 {
135  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
136 }
137 
138 void *KeyWidget::qt_metacast(const char *_clname)
139 {
140  if (!_clname) return Q_NULLPTR;
141  if (!strcmp(_clname, qt_meta_stringdata_KeyWidget.stringdata0))
142  return static_cast<void*>(const_cast< KeyWidget*>(this));
143  return QWidget::qt_metacast(_clname);
144 }
145 
146 int KeyWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
147 {
148  _id = QWidget::qt_metacall(_c, _id, _a);
149  if (_id < 0)
150  return _id;
151  if (_c == QMetaObject::InvokeMetaMethod) {
152  if (_id < 4)
153  qt_static_metacall(this, _c, _id, _a);
154  _id -= 4;
155  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
156  if (_id < 4)
157  qt_static_metacall(this, _c, _id, _a);
158  _id -= 4;
159  }
160  return _id;
161 }
162 
163 // SIGNAL 0
164 void KeyWidget::selectionChanged(QStringList _t1)
165 {
166  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
167  QMetaObject::activate(this, &staticMetaObject, 0, _a);
168 }
169 
170 // SIGNAL 1
172 {
173  QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
174 }
175 QT_END_MOC_NAMESPACE
static const qt_meta_stringdata_KeyWidget_t qt_meta_stringdata_KeyWidget
void selectionChanged(QStringList selected)
static const uint qt_meta_data_KeyWidget[]
void sidelightToggled()
#define QT_MOC_LITERAL(idx, ofs, len)
void displayColorMap(const ColorMap &newDisplayMap, const QSet< QString > &indicators=QSet< QString >())
Definition: keywidget.cpp:57