Bitcoin Core  26.1.0
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 ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.8)
5 **
6 ** WARNING! All changes made in this file will be lost!
7 *****************************************************************************/
8 
9 #include <memory>
10 #include "qt/optionsmodel.h"
11 #include <QtCore/qbytearray.h>
12 #include <QtCore/qmetatype.h>
13 #if !defined(Q_MOC_OUTPUT_REVISION)
14 #error "The header file 'optionsmodel.h' doesn't include <QObject>."
15 #elif Q_MOC_OUTPUT_REVISION != 67
16 #error "This file was generated using the moc from 5.15.8. 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
22 QT_WARNING_PUSH
23 QT_WARNING_DISABLE_DEPRECATED
25  QByteArrayData data[8];
26  char stringdata0[130];
27 };
28 #define QT_MOC_LITERAL(idx, ofs, len) \
29  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
30  qptrdiff(offsetof(qt_meta_stringdata_OptionsModel_t, stringdata0) + ofs \
31  - idx * sizeof(QByteArrayData)) \
32  )
34  {
35 QT_MOC_LITERAL(0, 0, 12), // "OptionsModel"
36 QT_MOC_LITERAL(1, 13, 18), // "displayUnitChanged"
37 QT_MOC_LITERAL(2, 32, 0), // ""
38 QT_MOC_LITERAL(3, 33, 11), // "BitcoinUnit"
39 QT_MOC_LITERAL(4, 45, 4), // "unit"
40 QT_MOC_LITERAL(5, 50, 26), // "coinControlFeaturesChanged"
41 QT_MOC_LITERAL(6, 77, 19), // "showTrayIconChanged"
42 QT_MOC_LITERAL(7, 97, 32) // "useEmbeddedMonospacedFontChanged"
43 
44  },
45  "OptionsModel\0displayUnitChanged\0\0"
46  "BitcoinUnit\0unit\0coinControlFeaturesChanged\0"
47  "showTrayIconChanged\0"
48  "useEmbeddedMonospacedFontChanged"
49 };
50 #undef QT_MOC_LITERAL
51 
52 static const uint qt_meta_data_OptionsModel[] = {
53 
54  // content:
55  8, // 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  4, // signalCount
64 
65  // signals: name, argc, parameters, tag, flags
66  1, 1, 34, 2, 0x06 /* Public */,
67  5, 1, 37, 2, 0x06 /* Public */,
68  6, 1, 40, 2, 0x06 /* Public */,
69  7, 1, 43, 2, 0x06 /* Public */,
70 
71  // signals: parameters
72  QMetaType::Void, 0x80000000 | 3, 4,
73  QMetaType::Void, QMetaType::Bool, 2,
74  QMetaType::Void, QMetaType::Bool, 2,
75  QMetaType::Void, QMetaType::Bool, 2,
76 
77  0 // eod
78 };
79 
80 void OptionsModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
81 {
82  if (_c == QMetaObject::InvokeMetaMethod) {
83  auto *_t = static_cast<OptionsModel *>(_o);
84  (void)_t;
85  switch (_id) {
86  case 0: _t->displayUnitChanged((*reinterpret_cast< BitcoinUnit(*)>(_a[1]))); break;
87  case 1: _t->coinControlFeaturesChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
88  case 2: _t->showTrayIconChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
89  case 3: _t->useEmbeddedMonospacedFontChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
90  default: ;
91  }
92  } else if (_c == QMetaObject::IndexOfMethod) {
93  int *result = reinterpret_cast<int *>(_a[0]);
94  {
95  using _t = void (OptionsModel::*)(BitcoinUnit );
96  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&OptionsModel::displayUnitChanged)) {
97  *result = 0;
98  return;
99  }
100  }
101  {
102  using _t = void (OptionsModel::*)(bool );
103  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&OptionsModel::coinControlFeaturesChanged)) {
104  *result = 1;
105  return;
106  }
107  }
108  {
109  using _t = void (OptionsModel::*)(bool );
110  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&OptionsModel::showTrayIconChanged)) {
111  *result = 2;
112  return;
113  }
114  }
115  {
116  using _t = void (OptionsModel::*)(bool );
117  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&OptionsModel::useEmbeddedMonospacedFontChanged)) {
118  *result = 3;
119  return;
120  }
121  }
122  }
123 }
124 
125 QT_INIT_METAOBJECT const QMetaObject OptionsModel::staticMetaObject = { {
126  QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
129  qt_static_metacall,
130  nullptr,
131  nullptr
132 } };
133 
134 
135 const QMetaObject *OptionsModel::metaObject() const
136 {
137  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
138 }
139 
140 void *OptionsModel::qt_metacast(const char *_clname)
141 {
142  if (!_clname) return nullptr;
143  if (!strcmp(_clname, qt_meta_stringdata_OptionsModel.stringdata0))
144  return static_cast<void*>(this);
145  return QAbstractListModel::qt_metacast(_clname);
146 }
147 
148 int OptionsModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
149 {
150  _id = QAbstractListModel::qt_metacall(_c, _id, _a);
151  if (_id < 0)
152  return _id;
153  if (_c == QMetaObject::InvokeMetaMethod) {
154  if (_id < 4)
155  qt_static_metacall(this, _c, _id, _a);
156  _id -= 4;
157  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
158  if (_id < 4)
159  *reinterpret_cast<int*>(_a[0]) = -1;
160  _id -= 4;
161  }
162  return _id;
163 }
164 
165 // SIGNAL 0
167 {
168  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
169  QMetaObject::activate(this, &staticMetaObject, 0, _a);
170 }
171 
172 // SIGNAL 1
174 {
175  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
176  QMetaObject::activate(this, &staticMetaObject, 1, _a);
177 }
178 
179 // SIGNAL 2
181 {
182  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
183  QMetaObject::activate(this, &staticMetaObject, 2, _a);
184 }
185 
186 // SIGNAL 3
188 {
189  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
190  QMetaObject::activate(this, &staticMetaObject, 3, _a);
191 }
192 QT_WARNING_POP
193 QT_END_MOC_NAMESPACE
Unit
Bitcoin units.
Definition: bitcoinunits.h:42
BitcoinUnits::Unit BitcoinUnit
Definition: bitcoinunits.h:111
static const qt_meta_stringdata_OptionsModel_t qt_meta_stringdata_OptionsModel
void coinControlFeaturesChanged(bool)
void useEmbeddedMonospacedFontChanged(bool)
void displayUnitChanged(BitcoinUnit unit)
#define QT_MOC_LITERAL(idx, ofs, len)
Interface from Qt to configuration data structure for Bitcoin client.
Definition: optionsmodel.h:40
static const uint qt_meta_data_OptionsModel[]
void showTrayIconChanged(bool)