RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
moc_qwt_legend_label.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'qwt_legend_label.h'
3 **
4 ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.3.2)
5 **
6 ** WARNING! All changes made in this file will be lost!
7 *****************************************************************************/
8 
9 #include "../qwt_legend_label.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'qwt_legend_label.h' doesn't include <QObject>."
14 #elif Q_MOC_OUTPUT_REVISION != 67
15 #error "This file was generated using the moc from 5.3.2. 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[8];
23  char stringdata[63];
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_QwtLegendLabel_t, stringdata) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
30 static const qt_meta_stringdata_QwtLegendLabel_t qt_meta_stringdata_QwtLegendLabel = {
31  {
32 QT_MOC_LITERAL(0, 0, 14),
33 QT_MOC_LITERAL(1, 15, 7),
34 QT_MOC_LITERAL(2, 23, 0),
35 QT_MOC_LITERAL(3, 24, 7),
36 QT_MOC_LITERAL(4, 32, 8),
37 QT_MOC_LITERAL(5, 41, 7),
38 QT_MOC_LITERAL(6, 49, 10),
39 QT_MOC_LITERAL(7, 60, 2)
40  },
41  "QwtLegendLabel\0clicked\0\0pressed\0"
42  "released\0checked\0setChecked\0on"
43 };
44 #undef QT_MOC_LITERAL
45 
46 static const uint qt_meta_data_QwtLegendLabel[] = {
47 
48  // content:
49  7, // revision
50  0, // classname
51  0, 0, // classinfo
52  5, 14, // methods
53  0, 0, // properties
54  0, 0, // enums/sets
55  0, 0, // constructors
56  0, // flags
57  4, // signalCount
58 
59  // signals: name, argc, parameters, tag, flags
60  1, 0, 39, 2, 0x06 /* Public */,
61  3, 0, 40, 2, 0x06 /* Public */,
62  4, 0, 41, 2, 0x06 /* Public */,
63  5, 1, 42, 2, 0x06 /* Public */,
64 
65  // slots: name, argc, parameters, tag, flags
66  6, 1, 45, 2, 0x0a /* Public */,
67 
68  // signals: parameters
69  QMetaType::Void,
70  QMetaType::Void,
71  QMetaType::Void,
72  QMetaType::Void, QMetaType::Bool, 2,
73 
74  // slots: parameters
75  QMetaType::Void, QMetaType::Bool, 7,
76 
77  0 // eod
78 };
79 
80 void QwtLegendLabel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
81 {
82  if (_c == QMetaObject::InvokeMetaMethod) {
83  QwtLegendLabel *_t = static_cast<QwtLegendLabel *>(_o);
84  switch (_id) {
85  case 0: _t->clicked(); break;
86  case 1: _t->pressed(); break;
87  case 2: _t->released(); break;
88  case 3: _t->checked((*reinterpret_cast< bool(*)>(_a[1]))); break;
89  case 4: _t->setChecked((*reinterpret_cast< bool(*)>(_a[1]))); break;
90  default: ;
91  }
92  } else if (_c == QMetaObject::IndexOfMethod) {
93  int *result = reinterpret_cast<int *>(_a[0]);
94  void **func = reinterpret_cast<void **>(_a[1]);
95  {
96  typedef void (QwtLegendLabel::*_t)();
97  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QwtLegendLabel::clicked)) {
98  *result = 0;
99  }
100  }
101  {
102  typedef void (QwtLegendLabel::*_t)();
103  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QwtLegendLabel::pressed)) {
104  *result = 1;
105  }
106  }
107  {
108  typedef void (QwtLegendLabel::*_t)();
109  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QwtLegendLabel::released)) {
110  *result = 2;
111  }
112  }
113  {
114  typedef void (QwtLegendLabel::*_t)(bool );
115  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QwtLegendLabel::checked)) {
116  *result = 3;
117  }
118  }
119  }
120 }
121 
122 const QMetaObject QwtLegendLabel::staticMetaObject = {
123  { &QwtTextLabel::staticMetaObject, qt_meta_stringdata_QwtLegendLabel.data,
124  qt_meta_data_QwtLegendLabel, qt_static_metacall, 0, 0}
125 };
126 
127 
128 const QMetaObject *QwtLegendLabel::metaObject() const
129 {
130  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
131 }
132 
133 void *QwtLegendLabel::qt_metacast(const char *_clname)
134 {
135  if (!_clname) return 0;
136  if (!strcmp(_clname, qt_meta_stringdata_QwtLegendLabel.stringdata))
137  return static_cast<void*>(const_cast< QwtLegendLabel*>(this));
138  return QwtTextLabel::qt_metacast(_clname);
139 }
140 
141 int QwtLegendLabel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
142 {
143  _id = QwtTextLabel::qt_metacall(_c, _id, _a);
144  if (_id < 0)
145  return _id;
146  if (_c == QMetaObject::InvokeMetaMethod) {
147  if (_id < 5)
148  qt_static_metacall(this, _c, _id, _a);
149  _id -= 5;
150  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
151  if (_id < 5)
152  *reinterpret_cast<int*>(_a[0]) = -1;
153  _id -= 5;
154  }
155  return _id;
156 }
157 
158 // SIGNAL 0
159 void QwtLegendLabel::clicked()
160 {
161  QMetaObject::activate(this, &staticMetaObject, 0, 0);
162 }
163 
164 // SIGNAL 1
165 void QwtLegendLabel::pressed()
166 {
167  QMetaObject::activate(this, &staticMetaObject, 1, 0);
168 }
169 
170 // SIGNAL 2
171 void QwtLegendLabel::released()
172 {
173  QMetaObject::activate(this, &staticMetaObject, 2, 0);
174 }
175 
176 // SIGNAL 3
177 void QwtLegendLabel::checked(bool _t1)
178 {
179  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
180  QMetaObject::activate(this, &staticMetaObject, 3, _a);
181 }
182 QT_END_MOC_NAMESPACE
#define QT_MOC_LITERAL(idx, ofs, len)