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 "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::IndexOfMethod) {
104  int *result = reinterpret_cast<int *>(_a[0]);
105  void **func = reinterpret_cast<void **>(_a[1]);
106  {
107  typedef void (TimestampSpinBox::*_t)(const pv::util::Timestamp & );
108  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TimestampSpinBox::valueChanged)) {
109  *result = 0;
110  }
111  }
112  }
113 #ifndef QT_NO_PROPERTIES
114  else if (_c == QMetaObject::ReadProperty) {
115  TimestampSpinBox *_t = static_cast<TimestampSpinBox *>(_o);
116  Q_UNUSED(_t)
117  void *_v = _a[0];
118  switch (_id) {
119  case 0: *reinterpret_cast< uint*>(_v) = _t->precision(); break;
120  case 1: *reinterpret_cast< Timestamp*>(_v) = _t->singleStep(); break;
121  case 2: *reinterpret_cast< Timestamp*>(_v) = _t->value(); break;
122  default: break;
123  }
124  } else if (_c == QMetaObject::WriteProperty) {
125  TimestampSpinBox *_t = static_cast<TimestampSpinBox *>(_o);
126  Q_UNUSED(_t)
127  void *_v = _a[0];
128  switch (_id) {
129  case 0: _t->setPrecision(*reinterpret_cast< uint*>(_v)); break;
130  case 1: _t->setSingleStep(*reinterpret_cast< Timestamp*>(_v)); break;
131  case 2: _t->setValue(*reinterpret_cast< Timestamp*>(_v)); break;
132  default: break;
133  }
134  } else if (_c == QMetaObject::ResetProperty) {
135  }
136 #endif // QT_NO_PROPERTIES
137 }
138 
139 const QMetaObject pv::widgets::TimestampSpinBox::staticMetaObject = {
140  { &QAbstractSpinBox::staticMetaObject, qt_meta_stringdata_pv__widgets__TimestampSpinBox.data,
141  qt_meta_data_pv__widgets__TimestampSpinBox, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
142 };
143 
144 
145 const QMetaObject *pv::widgets::TimestampSpinBox::metaObject() const
146 {
147  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
148 }
149 
150 void *pv::widgets::TimestampSpinBox::qt_metacast(const char *_clname)
151 {
152  if (!_clname) return Q_NULLPTR;
153  if (!strcmp(_clname, qt_meta_stringdata_pv__widgets__TimestampSpinBox.stringdata0))
154  return static_cast<void*>(const_cast< TimestampSpinBox*>(this));
155  return QAbstractSpinBox::qt_metacast(_clname);
156 }
157 
158 int pv::widgets::TimestampSpinBox::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
159 {
160  _id = QAbstractSpinBox::qt_metacall(_c, _id, _a);
161  if (_id < 0)
162  return _id;
163  if (_c == QMetaObject::InvokeMetaMethod) {
164  if (_id < 3)
165  qt_static_metacall(this, _c, _id, _a);
166  _id -= 3;
167  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
168  if (_id < 3)
169  *reinterpret_cast<int*>(_a[0]) = -1;
170  _id -= 3;
171  }
172 #ifndef QT_NO_PROPERTIES
173  else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
174  || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
175  qt_static_metacall(this, _c, _id, _a);
176  _id -= 3;
177  } else if (_c == QMetaObject::QueryPropertyDesignable) {
178  _id -= 3;
179  } else if (_c == QMetaObject::QueryPropertyScriptable) {
180  _id -= 3;
181  } else if (_c == QMetaObject::QueryPropertyStored) {
182  _id -= 3;
183  } else if (_c == QMetaObject::QueryPropertyEditable) {
184  _id -= 3;
185  } else if (_c == QMetaObject::QueryPropertyUser) {
186  _id -= 3;
187  }
188 #endif // QT_NO_PROPERTIES
189  return _id;
190 }
191 
192 // SIGNAL 0
194 {
195  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
196  QMetaObject::activate(this, &staticMetaObject, 0, _a);
197 }
198 QT_END_MOC_NAMESPACE
static const qt_meta_stringdata_pv__widgets__TimestampSpinBox_t qt_meta_stringdata_pv__widgets__TimestampSpinBox
TimestampSpinBox(QWidget *parent=nullptr)
void valueChanged(const pv::util::Timestamp &)
boost::multiprecision::number< boost::multiprecision::cpp_dec_float< 24 >, boost::multiprecision::et_off > Timestamp
Timestamp type providing yoctosecond resolution.
Definition: util.hpp:58
static const uint qt_meta_data_pv__widgets__TimestampSpinBox[]
#define QT_MOC_LITERAL(idx, ofs, len)