Bitcoin Core  0.21.1
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
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.5.1. 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
21  QByteArrayData data[6];
22  char stringdata0[85];
23 };
24 #define QT_MOC_LITERAL(idx, ofs, len) \
25  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
26  qptrdiff(offsetof(qt_meta_stringdata_OptionsModel_t, stringdata0) + ofs \
27  - idx * sizeof(QByteArrayData)) \
28  )
30  {
31 QT_MOC_LITERAL(0, 0, 12), // "OptionsModel"
32 QT_MOC_LITERAL(1, 13, 18), // "displayUnitChanged"
33 QT_MOC_LITERAL(2, 32, 0), // ""
34 QT_MOC_LITERAL(3, 33, 4), // "unit"
35 QT_MOC_LITERAL(4, 38, 26), // "coinControlFeaturesChanged"
36 QT_MOC_LITERAL(5, 65, 19) // "hideTrayIconChanged"
37 
38  },
39  "OptionsModel\0displayUnitChanged\0\0unit\0"
40  "coinControlFeaturesChanged\0"
41  "hideTrayIconChanged"
42 };
43 #undef QT_MOC_LITERAL
44 
45 static const uint qt_meta_data_OptionsModel[] = {
46 
47  // content:
48  7, // revision
49  0, // classname
50  0, 0, // classinfo
51  3, 14, // methods
52  0, 0, // properties
53  0, 0, // enums/sets
54  0, 0, // constructors
55  0, // flags
56  3, // signalCount
57 
58  // signals: name, argc, parameters, tag, flags
59  1, 1, 29, 2, 0x06 /* Public */,
60  4, 1, 32, 2, 0x06 /* Public */,
61  5, 1, 35, 2, 0x06 /* Public */,
62 
63  // signals: parameters
64  QMetaType::Void, QMetaType::Int, 3,
65  QMetaType::Void, QMetaType::Bool, 2,
66  QMetaType::Void, QMetaType::Bool, 2,
67 
68  0 // eod
69 };
70 
71 void OptionsModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
72 {
73  if (_c == QMetaObject::InvokeMetaMethod) {
74  OptionsModel *_t = static_cast<OptionsModel *>(_o);
75  Q_UNUSED(_t)
76  switch (_id) {
77  case 0: _t->displayUnitChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
78  case 1: _t->coinControlFeaturesChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
79  case 2: _t->hideTrayIconChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
80  default: ;
81  }
82  } else if (_c == QMetaObject::IndexOfMethod) {
83  int *result = reinterpret_cast<int *>(_a[0]);
84  void **func = reinterpret_cast<void **>(_a[1]);
85  {
86  typedef void (OptionsModel::*_t)(int );
87  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&OptionsModel::displayUnitChanged)) {
88  *result = 0;
89  }
90  }
91  {
92  typedef void (OptionsModel::*_t)(bool );
93  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&OptionsModel::coinControlFeaturesChanged)) {
94  *result = 1;
95  }
96  }
97  {
98  typedef void (OptionsModel::*_t)(bool );
99  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&OptionsModel::hideTrayIconChanged)) {
100  *result = 2;
101  }
102  }
103  }
104 }
105 
106 const QMetaObject OptionsModel::staticMetaObject = {
107  { &QAbstractListModel::staticMetaObject, qt_meta_stringdata_OptionsModel.data,
108  qt_meta_data_OptionsModel, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
109 };
110 
111 
112 const QMetaObject *OptionsModel::metaObject() const
113 {
114  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
115 }
116 
117 void *OptionsModel::qt_metacast(const char *_clname)
118 {
119  if (!_clname) return Q_NULLPTR;
120  if (!strcmp(_clname, qt_meta_stringdata_OptionsModel.stringdata0))
121  return static_cast<void*>(const_cast< OptionsModel*>(this));
122  return QAbstractListModel::qt_metacast(_clname);
123 }
124 
125 int OptionsModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
126 {
127  _id = QAbstractListModel::qt_metacall(_c, _id, _a);
128  if (_id < 0)
129  return _id;
130  if (_c == QMetaObject::InvokeMetaMethod) {
131  if (_id < 3)
132  qt_static_metacall(this, _c, _id, _a);
133  _id -= 3;
134  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
135  if (_id < 3)
136  *reinterpret_cast<int*>(_a[0]) = -1;
137  _id -= 3;
138  }
139  return _id;
140 }
141 
142 // SIGNAL 0
144 {
145  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
146  QMetaObject::activate(this, &staticMetaObject, 0, _a);
147 }
148 
149 // SIGNAL 1
151 {
152  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
153  QMetaObject::activate(this, &staticMetaObject, 1, _a);
154 }
155 
156 // SIGNAL 2
158 {
159  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
160  QMetaObject::activate(this, &staticMetaObject, 2, _a);
161 }
162 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[]