Bitcoin Core  0.21.1
P2P Digital Currency
moc_optionsmodel.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'optionsmodel.h'
3 **
4 **
5 ** WARNING! All changes made in this file will be lost!
6 *****************************************************************************/
7 
8 #include "qt/optionsmodel.h"
9 #include <QtCore/qbytearray.h>
10 #include <QtCore/qmetatype.h>
11 #if !defined(Q_MOC_OUTPUT_REVISION)
12 #error "The header file 'optionsmodel.h' doesn't include <QObject>."
13 #elif Q_MOC_OUTPUT_REVISION != 67
14 #error "This file was generated using the moc from 5.9.4. It"
15 #error "cannot be used with the include files from this version of Qt."
16 #error "(The moc has changed too much.)"
17 #endif
18 
19 QT_BEGIN_MOC_NAMESPACE
20 QT_WARNING_PUSH
21 QT_WARNING_DISABLE_DEPRECATED
23  QByteArrayData data[6];
24  char stringdata0[85];
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_OptionsModel_t, stringdata0) + ofs \
29  - idx * sizeof(QByteArrayData)) \
30  )
32  {
33 QT_MOC_LITERAL(0, 0, 12), // "OptionsModel"
34 QT_MOC_LITERAL(1, 13, 18), // "displayUnitChanged"
35 QT_MOC_LITERAL(2, 32, 0), // ""
36 QT_MOC_LITERAL(3, 33, 4), // "unit"
37 QT_MOC_LITERAL(4, 38, 26), // "coinControlFeaturesChanged"
38 QT_MOC_LITERAL(5, 65, 19) // "hideTrayIconChanged"
39 
40  },
41  "OptionsModel\0displayUnitChanged\0\0unit\0"
42  "coinControlFeaturesChanged\0"
43  "hideTrayIconChanged"
44 };
45 #undef QT_MOC_LITERAL
46 
47 static const uint qt_meta_data_OptionsModel[] = {
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  3, // signalCount
59 
60  // signals: name, argc, parameters, tag, flags
61  1, 1, 29, 2, 0x06 /* Public */,
62  4, 1, 32, 2, 0x06 /* Public */,
63  5, 1, 35, 2, 0x06 /* Public */,
64 
65  // signals: parameters
66  QMetaType::Void, QMetaType::Int, 3,
67  QMetaType::Void, QMetaType::Bool, 2,
68  QMetaType::Void, QMetaType::Bool, 2,
69 
70  0 // eod
71 };
72 
73 void OptionsModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
74 {
75  if (_c == QMetaObject::InvokeMetaMethod) {
76  OptionsModel *_t = static_cast<OptionsModel *>(_o);
77  Q_UNUSED(_t)
78  switch (_id) {
79  case 0: _t->displayUnitChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
80  case 1: _t->coinControlFeaturesChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
81  case 2: _t->hideTrayIconChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
82  default: ;
83  }
84  } else if (_c == QMetaObject::IndexOfMethod) {
85  int *result = reinterpret_cast<int *>(_a[0]);
86  {
87  typedef void (OptionsModel::*_t)(int );
88  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&OptionsModel::displayUnitChanged)) {
89  *result = 0;
90  return;
91  }
92  }
93  {
94  typedef void (OptionsModel::*_t)(bool );
95  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&OptionsModel::coinControlFeaturesChanged)) {
96  *result = 1;
97  return;
98  }
99  }
100  {
101  typedef void (OptionsModel::*_t)(bool );
102  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&OptionsModel::hideTrayIconChanged)) {
103  *result = 2;
104  return;
105  }
106  }
107  }
108 }
109 
110 const QMetaObject OptionsModel::staticMetaObject = {
111  { &QAbstractListModel::staticMetaObject, qt_meta_stringdata_OptionsModel.data,
112  qt_meta_data_OptionsModel, qt_static_metacall, nullptr, nullptr}
113 };
114 
115 
116 const QMetaObject *OptionsModel::metaObject() const
117 {
118  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
119 }
120 
121 void *OptionsModel::qt_metacast(const char *_clname)
122 {
123  if (!_clname) return nullptr;
124  if (!strcmp(_clname, qt_meta_stringdata_OptionsModel.stringdata0))
125  return static_cast<void*>(this);
126  return QAbstractListModel::qt_metacast(_clname);
127 }
128 
129 int OptionsModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
130 {
131  _id = QAbstractListModel::qt_metacall(_c, _id, _a);
132  if (_id < 0)
133  return _id;
134  if (_c == QMetaObject::InvokeMetaMethod) {
135  if (_id < 3)
136  qt_static_metacall(this, _c, _id, _a);
137  _id -= 3;
138  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
139  if (_id < 3)
140  *reinterpret_cast<int*>(_a[0]) = -1;
141  _id -= 3;
142  }
143  return _id;
144 }
145 
146 // SIGNAL 0
148 {
149  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
150  QMetaObject::activate(this, &staticMetaObject, 0, _a);
151 }
152 
153 // SIGNAL 1
155 {
156  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
157  QMetaObject::activate(this, &staticMetaObject, 1, _a);
158 }
159 
160 // SIGNAL 2
162 {
163  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
164  QMetaObject::activate(this, &staticMetaObject, 2, _a);
165 }
166 QT_WARNING_POP
167 QT_END_MOC_NAMESPACE
void hideTrayIconChanged(bool)
static const qt_meta_stringdata_OptionsModel_t qt_meta_stringdata_OptionsModel
void coinControlFeaturesChanged(bool)
#define QT_MOC_LITERAL(idx, ofs, len)
void displayUnitChanged(int unit)
Interface from Qt to configuration data structure for Bitcoin client.
Definition: optionsmodel.h:39
static const uint qt_meta_data_OptionsModel[]