PulseView  0.3.0
A Qt-based sigrok GUI
moc_flag.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'flag.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 "flag.hpp"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'flag.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[5];
23  char stringdata0[47];
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__view__Flag_t, stringdata0) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
31  {
32 QT_MOC_LITERAL(0, 0, 14), // "pv::view::Flag"
33 QT_MOC_LITERAL(1, 15, 9), // "on_delete"
34 QT_MOC_LITERAL(2, 25, 0), // ""
35 QT_MOC_LITERAL(3, 26, 15), // "on_text_changed"
36 QT_MOC_LITERAL(4, 42, 4) // "text"
37 
38  },
39  "pv::view::Flag\0on_delete\0\0on_text_changed\0"
40  "text"
41 };
42 #undef QT_MOC_LITERAL
43 
44 static const uint qt_meta_data_pv__view__Flag[] = {
45 
46  // content:
47  7, // revision
48  0, // classname
49  0, 0, // classinfo
50  2, 14, // methods
51  0, 0, // properties
52  0, 0, // enums/sets
53  0, 0, // constructors
54  0, // flags
55  0, // signalCount
56 
57  // slots: name, argc, parameters, tag, flags
58  1, 0, 24, 2, 0x08 /* Private */,
59  3, 1, 25, 2, 0x08 /* Private */,
60 
61  // slots: parameters
62  QMetaType::Void,
63  QMetaType::Void, QMetaType::QString, 4,
64 
65  0 // eod
66 };
67 
68 void pv::view::Flag::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
69 {
70  if (_c == QMetaObject::InvokeMetaMethod) {
71  Flag *_t = static_cast<Flag *>(_o);
72  Q_UNUSED(_t)
73  switch (_id) {
74  case 0: _t->on_delete(); break;
75  case 1: _t->on_text_changed((*reinterpret_cast< const QString(*)>(_a[1]))); break;
76  default: ;
77  }
78  }
79 }
80 
81 const QMetaObject pv::view::Flag::staticMetaObject = {
82  { &TimeMarker::staticMetaObject, qt_meta_stringdata_pv__view__Flag.data,
83  qt_meta_data_pv__view__Flag, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
84 };
85 
86 
87 const QMetaObject *pv::view::Flag::metaObject() const
88 {
89  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
90 }
91 
92 void *pv::view::Flag::qt_metacast(const char *_clname)
93 {
94  if (!_clname) return Q_NULLPTR;
95  if (!strcmp(_clname, qt_meta_stringdata_pv__view__Flag.stringdata0))
96  return static_cast<void*>(const_cast< Flag*>(this));
97  if (!strcmp(_clname, "std::enable_shared_from_this<pv::view::Flag>"))
98  return static_cast< std::enable_shared_from_this<pv::view::Flag>*>(const_cast< Flag*>(this));
99  return TimeMarker::qt_metacast(_clname);
100 }
101 
102 int pv::view::Flag::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
103 {
104  _id = TimeMarker::qt_metacall(_c, _id, _a);
105  if (_id < 0)
106  return _id;
107  if (_c == QMetaObject::InvokeMetaMethod) {
108  if (_id < 2)
109  qt_static_metacall(this, _c, _id, _a);
110  _id -= 2;
111  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
112  if (_id < 2)
113  *reinterpret_cast<int*>(_a[0]) = -1;
114  _id -= 2;
115  }
116  return _id;
117 }
118 QT_END_MOC_NAMESPACE
Flag(View &view, const pv::util::Timestamp &time, const QString &text)
Definition: flag.cpp:40
#define QT_MOC_LITERAL(idx, ofs, len)
Definition: moc_flag.cpp:25
static const qt_meta_stringdata_pv__view__Flag_t qt_meta_stringdata_pv__view__Flag
Definition: moc_flag.cpp:30
static const uint qt_meta_data_pv__view__Flag[]
Definition: moc_flag.cpp:44