PulseView  0.3.0
A Qt-based sigrok GUI
moc_timestampspinbox.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'timestampspinbox.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/timestampspinbox.hpp"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'timestampspinbox.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[11];
23  char stringdata0[133];
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__TimestampSpinBox_t, stringdata0) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
31  {
32 QT_MOC_LITERAL(0, 0, 29), // "pv::widgets::TimestampSpinBox"
33 QT_MOC_LITERAL(1, 30, 12), // "valueChanged"
34 QT_MOC_LITERAL(2, 43, 0), // ""
35 QT_MOC_LITERAL(3, 44, 19), // "pv::util::Timestamp"
36 QT_MOC_LITERAL(4, 64, 8), // "setValue"
37 QT_MOC_LITERAL(5, 73, 3), // "val"
38 QT_MOC_LITERAL(6, 77, 18), // "on_editingFinished"
39 QT_MOC_LITERAL(7, 96, 9), // "precision"
40 QT_MOC_LITERAL(8, 106, 10), // "singleStep"
41 QT_MOC_LITERAL(9, 117, 9), // "Timestamp"
42 QT_MOC_LITERAL(10, 127, 5) // "value"
43 
44  },
45  "pv::widgets::TimestampSpinBox\0"
46  "valueChanged\0\0pv::util::Timestamp\0"
47  "setValue\0val\0on_editingFinished\0"
48  "precision\0singleStep\0Timestamp\0value"
49 };
50 #undef QT_MOC_LITERAL
51 
53 
54  // content:
55  7, // revision
56  0, // classname
57  0, 0, // classinfo
58  3, 14, // methods
59  3, 36, // properties
60  0, 0, // enums/sets
61  0, 0, // constructors
62  0, // flags
63  1, // signalCount
64 
65  // signals: name, argc, parameters, tag, flags
66  1, 1, 29, 2, 0x06 /* Public */,
67 
68  // slots: name, argc, parameters, tag, flags
69  4, 1, 32, 2, 0x0a /* Public */,
70  6, 0, 35, 2, 0x08 /* Private */,
71 
72  // signals: parameters
73  QMetaType::Void, 0x80000000 | 3, 2,
74 
75  // slots: parameters
76  QMetaType::Void, 0x80000000 | 3, 5,
77  QMetaType::Void,
78 
79  // properties: name, type, flags
80  7, QMetaType::UInt, 0x00095103,
81  8, 0x80000000 | 9, 0x0009510b,
82  10, 0x80000000 | 9, 0x0059510b,
83 
84  // properties: notify_signal_id
85  0,
86  0,
87  0,
88 
89  0 // eod
90 };
91 
92 void pv::widgets::TimestampSpinBox::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
93 {
94  if (_c == QMetaObject::InvokeMetaMethod) {
95  TimestampSpinBox *_t = static_cast<TimestampSpinBox *>(_o);
96  Q_UNUSED(_t)
97  switch (_id) {
98  case 0: _t->valueChanged((*reinterpret_cast< const pv::util::Timestamp(*)>(_a[1]))); break;
99  case 1: _t->setValue((*reinterpret_cast< const pv::util::Timestamp(*)>(_a[1]))); break;
100  case 2: _t->on_editingFinished(); break;
101  default: ;
102  }
103  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
104  switch (_id) {
105  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
106  case 0:
107  switch (*reinterpret_cast<int*>(_a[1])) {
108  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
109  case 0:
110  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< pv::util::Timestamp >(); break;
111  }
112  break;
113  case 1:
114  switch (*reinterpret_cast<int*>(_a[1])) {
115  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
116  case 0:
117  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< pv::util::Timestamp >(); break;
118  }
119  break;
120  }
121  } else if (_c == QMetaObject::IndexOfMethod) {
122  int *result = reinterpret_cast<int *>(_a[0]);
123  void **func = reinterpret_cast<void **>(_a[1]);
124  {
125  typedef void (TimestampSpinBox::*_t)(const pv::util::Timestamp & );
126  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TimestampSpinBox::valueChanged)) {
127  *result = 0;
128  }
129  }
130  }
131 #ifndef QT_NO_PROPERTIES
132  else if (_c == QMetaObject::ReadProperty) {
133  TimestampSpinBox *_t = static_cast<TimestampSpinBox *>(_o);
134  Q_UNUSED(_t)
135  void *_v = _a[0];
136  switch (_id) {
137  case 0: *reinterpret_cast< uint*>(_v) = _t->precision(); break;
138  case 1: *reinterpret_cast< Timestamp*>(_v) = _t->singleStep(); break;
139  case 2: *reinterpret_cast< Timestamp*>(_v) = _t->value(); break;
140  default: break;
141  }
142  } else if (_c == QMetaObject::WriteProperty) {
143  TimestampSpinBox *_t = static_cast<TimestampSpinBox *>(_o);
144  Q_UNUSED(_t)
145  void *_v = _a[0];
146  switch (_id) {
147  case 0: _t->setPrecision(*reinterpret_cast< uint*>(_v)); break;
148  case 1: _t->setSingleStep(*reinterpret_cast< Timestamp*>(_v)); break;
149  case 2: _t->setValue(*reinterpret_cast< Timestamp*>(_v)); break;
150  default: break;
151  }
152  } else if (_c == QMetaObject::ResetProperty) {
153  }
154 #endif // QT_NO_PROPERTIES
155 }
156 
157 const QMetaObject pv::widgets::TimestampSpinBox::staticMetaObject = {
158  { &QAbstractSpinBox::staticMetaObject, qt_meta_stringdata_pv__widgets__TimestampSpinBox.data,
159  qt_meta_data_pv__widgets__TimestampSpinBox, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
160 };
161 
162 
163 const QMetaObject *pv::widgets::TimestampSpinBox::metaObject() const
164 {
165  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
166 }
167 
168 void *pv::widgets::TimestampSpinBox::qt_metacast(const char *_clname)
169 {
170  if (!_clname) return Q_NULLPTR;
171  if (!strcmp(_clname, qt_meta_stringdata_pv__widgets__TimestampSpinBox.stringdata0))
172  return static_cast<void*>(const_cast< TimestampSpinBox*>(this));
173  return QAbstractSpinBox::qt_metacast(_clname);
174 }
175 
176 int pv::widgets::TimestampSpinBox::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
177 {
178  _id = QAbstractSpinBox::qt_metacall(_c, _id, _a);
179  if (_id < 0)
180  return _id;
181  if (_c == QMetaObject::InvokeMetaMethod) {
182  if (_id < 3)
183  qt_static_metacall(this, _c, _id, _a);
184  _id -= 3;
185  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
186  if (_id < 3)
187  qt_static_metacall(this, _c, _id, _a);
188  _id -= 3;
189  }
190 #ifndef QT_NO_PROPERTIES
191  else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
192  || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
193  qt_static_metacall(this, _c, _id, _a);
194  _id -= 3;
195  } else if (_c == QMetaObject::QueryPropertyDesignable) {
196  _id -= 3;
197  } else if (_c == QMetaObject::QueryPropertyScriptable) {
198  _id -= 3;
199  } else if (_c == QMetaObject::QueryPropertyStored) {
200  _id -= 3;
201  } else if (_c == QMetaObject::QueryPropertyEditable) {
202  _id -= 3;
203  } else if (_c == QMetaObject::QueryPropertyUser) {
204  _id -= 3;
205  }
206 #endif // QT_NO_PROPERTIES
207  return _id;
208 }
209 
210 // SIGNAL 0
212 {
213  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
214  QMetaObject::activate(this, &staticMetaObject, 0, _a);
215 }
216 QT_END_MOC_NAMESPACE
#define QT_MOC_LITERAL(idx, ofs, len)
TimestampSpinBox(QWidget *parent=nullptr)
void valueChanged(const pv::util::Timestamp &)
static const qt_meta_stringdata_pv__widgets__TimestampSpinBox_t qt_meta_stringdata_pv__widgets__TimestampSpinBox
static const uint qt_meta_data_pv__widgets__TimestampSpinBox[]
boost::multiprecision::number< boost::multiprecision::cpp_dec_float< 24 >, boost::multiprecision::et_off > Timestamp
Timestamp type providing yoctosecond resolution.
Definition: util.hpp:58