RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
moc_qwt_counter.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'qwt_counter.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_counter.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'qwt_counter.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[18];
23  char stringdata[182];
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_QwtCounter_t, stringdata) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
30 static const qt_meta_stringdata_QwtCounter_t qt_meta_stringdata_QwtCounter = {
31  {
32 QT_MOC_LITERAL(0, 0, 10),
33 QT_MOC_LITERAL(1, 11, 14),
34 QT_MOC_LITERAL(2, 26, 0),
35 QT_MOC_LITERAL(3, 27, 5),
36 QT_MOC_LITERAL(4, 33, 12),
37 QT_MOC_LITERAL(5, 46, 8),
38 QT_MOC_LITERAL(6, 55, 11),
39 QT_MOC_LITERAL(7, 67, 10),
40 QT_MOC_LITERAL(8, 78, 11),
41 QT_MOC_LITERAL(9, 90, 7),
42 QT_MOC_LITERAL(10, 98, 7),
43 QT_MOC_LITERAL(11, 106, 10),
44 QT_MOC_LITERAL(12, 117, 10),
45 QT_MOC_LITERAL(13, 128, 11),
46 QT_MOC_LITERAL(14, 140, 11),
47 QT_MOC_LITERAL(15, 152, 11),
48 QT_MOC_LITERAL(16, 164, 8),
49 QT_MOC_LITERAL(17, 173, 8)
50  },
51  "QwtCounter\0buttonReleased\0\0value\0"
52  "valueChanged\0setValue\0btnReleased\0"
53  "btnClicked\0textChanged\0minimum\0maximum\0"
54  "singleStep\0numButtons\0stepButton1\0"
55  "stepButton2\0stepButton3\0readOnly\0"
56  "wrapping"
57 };
58 #undef QT_MOC_LITERAL
59 
60 static const uint qt_meta_data_QwtCounter[] = {
61 
62  // content:
63  7, // revision
64  0, // classname
65  0, 0, // classinfo
66  6, 14, // methods
67  10, 56, // properties
68  0, 0, // enums/sets
69  0, 0, // constructors
70  0, // flags
71  2, // signalCount
72 
73  // signals: name, argc, parameters, tag, flags
74  1, 1, 44, 2, 0x06 /* Public */,
75  4, 1, 47, 2, 0x06 /* Public */,
76 
77  // slots: name, argc, parameters, tag, flags
78  5, 1, 50, 2, 0x0a /* Public */,
79  6, 0, 53, 2, 0x08 /* Private */,
80  7, 0, 54, 2, 0x08 /* Private */,
81  8, 0, 55, 2, 0x08 /* Private */,
82 
83  // signals: parameters
84  QMetaType::Void, QMetaType::Double, 3,
85  QMetaType::Void, QMetaType::Double, 3,
86 
87  // slots: parameters
88  QMetaType::Void, QMetaType::Double, 2,
89  QMetaType::Void,
90  QMetaType::Void,
91  QMetaType::Void,
92 
93  // properties: name, type, flags
94  3, QMetaType::Double, 0x00095103,
95  9, QMetaType::Double, 0x00095103,
96  10, QMetaType::Double, 0x00095103,
97  11, QMetaType::Double, 0x00095103,
98  12, QMetaType::Int, 0x00095103,
99  13, QMetaType::Int, 0x00095103,
100  14, QMetaType::Int, 0x00095103,
101  15, QMetaType::Int, 0x00095103,
102  16, QMetaType::Bool, 0x00095103,
103  17, QMetaType::Bool, 0x00095103,
104 
105  0 // eod
106 };
107 
108 void QwtCounter::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
109 {
110  if (_c == QMetaObject::InvokeMetaMethod) {
111  QwtCounter *_t = static_cast<QwtCounter *>(_o);
112  switch (_id) {
113  case 0: _t->buttonReleased((*reinterpret_cast< double(*)>(_a[1]))); break;
114  case 1: _t->valueChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
115  case 2: _t->setValue((*reinterpret_cast< double(*)>(_a[1]))); break;
116  case 3: _t->btnReleased(); break;
117  case 4: _t->btnClicked(); break;
118  case 5: _t->textChanged(); break;
119  default: ;
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 (QwtCounter::*_t)(double );
126  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QwtCounter::buttonReleased)) {
127  *result = 0;
128  }
129  }
130  {
131  typedef void (QwtCounter::*_t)(double );
132  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QwtCounter::valueChanged)) {
133  *result = 1;
134  }
135  }
136  }
137 }
138 
139 const QMetaObject QwtCounter::staticMetaObject = {
140  { &QWidget::staticMetaObject, qt_meta_stringdata_QwtCounter.data,
141  qt_meta_data_QwtCounter, qt_static_metacall, 0, 0}
142 };
143 
144 
145 const QMetaObject *QwtCounter::metaObject() const
146 {
147  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
148 }
149 
150 void *QwtCounter::qt_metacast(const char *_clname)
151 {
152  if (!_clname) return 0;
153  if (!strcmp(_clname, qt_meta_stringdata_QwtCounter.stringdata))
154  return static_cast<void*>(const_cast< QwtCounter*>(this));
155  return QWidget::qt_metacast(_clname);
156 }
157 
158 int QwtCounter::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
159 {
160  _id = QWidget::qt_metacall(_c, _id, _a);
161  if (_id < 0)
162  return _id;
163  if (_c == QMetaObject::InvokeMetaMethod) {
164  if (_id < 6)
165  qt_static_metacall(this, _c, _id, _a);
166  _id -= 6;
167  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
168  if (_id < 6)
169  *reinterpret_cast<int*>(_a[0]) = -1;
170  _id -= 6;
171  }
172 #ifndef QT_NO_PROPERTIES
173  else if (_c == QMetaObject::ReadProperty) {
174  void *_v = _a[0];
175  switch (_id) {
176  case 0: *reinterpret_cast< double*>(_v) = value(); break;
177  case 1: *reinterpret_cast< double*>(_v) = minimum(); break;
178  case 2: *reinterpret_cast< double*>(_v) = maximum(); break;
179  case 3: *reinterpret_cast< double*>(_v) = singleStep(); break;
180  case 4: *reinterpret_cast< int*>(_v) = numButtons(); break;
181  case 5: *reinterpret_cast< int*>(_v) = stepButton1(); break;
182  case 6: *reinterpret_cast< int*>(_v) = stepButton2(); break;
183  case 7: *reinterpret_cast< int*>(_v) = stepButton3(); break;
184  case 8: *reinterpret_cast< bool*>(_v) = isReadOnly(); break;
185  case 9: *reinterpret_cast< bool*>(_v) = wrapping(); break;
186  default: break;
187  }
188  _id -= 10;
189  } else if (_c == QMetaObject::WriteProperty) {
190  void *_v = _a[0];
191  switch (_id) {
192  case 0: setValue(*reinterpret_cast< double*>(_v)); break;
193  case 1: setMinimum(*reinterpret_cast< double*>(_v)); break;
194  case 2: setMaximum(*reinterpret_cast< double*>(_v)); break;
195  case 3: setSingleStep(*reinterpret_cast< double*>(_v)); break;
196  case 4: setNumButtons(*reinterpret_cast< int*>(_v)); break;
197  case 5: setStepButton1(*reinterpret_cast< int*>(_v)); break;
198  case 6: setStepButton2(*reinterpret_cast< int*>(_v)); break;
199  case 7: setStepButton3(*reinterpret_cast< int*>(_v)); break;
200  case 8: setReadOnly(*reinterpret_cast< bool*>(_v)); break;
201  case 9: setWrapping(*reinterpret_cast< bool*>(_v)); break;
202  default: break;
203  }
204  _id -= 10;
205  } else if (_c == QMetaObject::ResetProperty) {
206  _id -= 10;
207  } else if (_c == QMetaObject::QueryPropertyDesignable) {
208  _id -= 10;
209  } else if (_c == QMetaObject::QueryPropertyScriptable) {
210  _id -= 10;
211  } else if (_c == QMetaObject::QueryPropertyStored) {
212  _id -= 10;
213  } else if (_c == QMetaObject::QueryPropertyEditable) {
214  _id -= 10;
215  } else if (_c == QMetaObject::QueryPropertyUser) {
216  _id -= 10;
217  } else if (_c == QMetaObject::RegisterPropertyMetaType) {
218  if (_id < 10)
219  *reinterpret_cast<int*>(_a[0]) = -1;
220  _id -= 10;
221  }
222 #endif // QT_NO_PROPERTIES
223  return _id;
224 }
225 
226 // SIGNAL 0
227 void QwtCounter::buttonReleased(double _t1)
228 {
229  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
230  QMetaObject::activate(this, &staticMetaObject, 0, _a);
231 }
232 
233 // SIGNAL 1
234 void QwtCounter::valueChanged(double _t1)
235 {
236  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
237  QMetaObject::activate(this, &staticMetaObject, 1, _a);
238 }
239 QT_END_MOC_NAMESPACE
#define QT_MOC_LITERAL(idx, ofs, len)