RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
moc_qwt_thermo.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'qwt_thermo.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_thermo.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'qwt_thermo.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[23];
23  char stringdata[245];
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_QwtThermo_t, stringdata) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
30 static const qt_meta_stringdata_QwtThermo_t qt_meta_stringdata_QwtThermo = {
31  {
32 QT_MOC_LITERAL(0, 0, 9),
33 QT_MOC_LITERAL(1, 10, 8),
34 QT_MOC_LITERAL(2, 19, 0),
35 QT_MOC_LITERAL(3, 20, 3),
36 QT_MOC_LITERAL(4, 24, 11),
37 QT_MOC_LITERAL(5, 36, 15),
38 QT_MOC_LITERAL(6, 52, 13),
39 QT_MOC_LITERAL(7, 66, 13),
40 QT_MOC_LITERAL(8, 80, 10),
41 QT_MOC_LITERAL(9, 91, 10),
42 QT_MOC_LITERAL(10, 102, 12),
43 QT_MOC_LITERAL(11, 115, 10),
44 QT_MOC_LITERAL(12, 126, 6),
45 QT_MOC_LITERAL(13, 133, 7),
46 QT_MOC_LITERAL(14, 141, 11),
47 QT_MOC_LITERAL(15, 153, 9),
48 QT_MOC_LITERAL(16, 163, 5),
49 QT_MOC_LITERAL(17, 169, 7),
50 QT_MOC_LITERAL(18, 177, 12),
51 QT_MOC_LITERAL(19, 190, 13),
52 QT_MOC_LITERAL(20, 204, 13),
53 QT_MOC_LITERAL(21, 218, 13),
54 QT_MOC_LITERAL(22, 232, 12)
55  },
56  "QwtThermo\0setValue\0\0val\0orientation\0"
57  "Qt::Orientation\0scalePosition\0"
58  "ScalePosition\0originMode\0OriginMode\0"
59  "alarmEnabled\0alarmLevel\0origin\0spacing\0"
60  "borderWidth\0pipeWidth\0value\0NoScale\0"
61  "LeadingScale\0TrailingScale\0OriginMinimum\0"
62  "OriginMaximum\0OriginCustom"
63 };
64 #undef QT_MOC_LITERAL
65 
66 static const uint qt_meta_data_QwtThermo[] = {
67 
68  // content:
69  7, // revision
70  0, // classname
71  0, 0, // classinfo
72  1, 14, // methods
73  10, 22, // properties
74  2, 52, // enums/sets
75  0, 0, // constructors
76  0, // flags
77  0, // signalCount
78 
79  // slots: name, argc, parameters, tag, flags
80  1, 1, 19, 2, 0x0a /* Public */,
81 
82  // slots: parameters
83  QMetaType::Void, QMetaType::Double, 3,
84 
85  // properties: name, type, flags
86  4, 0x80000000 | 5, 0x0009510b,
87  6, 0x80000000 | 7, 0x0009510b,
88  8, 0x80000000 | 9, 0x0009510b,
89  10, QMetaType::Bool, 0x00095103,
90  11, QMetaType::Double, 0x00095103,
91  12, QMetaType::Double, 0x00095103,
92  13, QMetaType::Int, 0x00095103,
93  14, QMetaType::Int, 0x00095103,
94  15, QMetaType::Int, 0x00095103,
95  16, QMetaType::Double, 0x00095103,
96 
97  // enums: name, flags, count, data
98  7, 0x0, 3, 60,
99  9, 0x0, 3, 66,
100 
101  // enum data: key, value
102  17, uint(QwtThermo::NoScale),
103  18, uint(QwtThermo::LeadingScale),
104  19, uint(QwtThermo::TrailingScale),
105  20, uint(QwtThermo::OriginMinimum),
106  21, uint(QwtThermo::OriginMaximum),
107  22, uint(QwtThermo::OriginCustom),
108 
109  0 // eod
110 };
111 
112 void QwtThermo::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
113 {
114  if (_c == QMetaObject::InvokeMetaMethod) {
115  QwtThermo *_t = static_cast<QwtThermo *>(_o);
116  switch (_id) {
117  case 0: _t->setValue((*reinterpret_cast< double(*)>(_a[1]))); break;
118  default: ;
119  }
120  }
121 }
122 
123 const QMetaObject QwtThermo::staticMetaObject = {
124  { &QwtAbstractScale::staticMetaObject, qt_meta_stringdata_QwtThermo.data,
125  qt_meta_data_QwtThermo, qt_static_metacall, 0, 0}
126 };
127 
128 
129 const QMetaObject *QwtThermo::metaObject() const
130 {
131  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
132 }
133 
134 void *QwtThermo::qt_metacast(const char *_clname)
135 {
136  if (!_clname) return 0;
137  if (!strcmp(_clname, qt_meta_stringdata_QwtThermo.stringdata))
138  return static_cast<void*>(const_cast< QwtThermo*>(this));
139  return QwtAbstractScale::qt_metacast(_clname);
140 }
141 
142 int QwtThermo::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
143 {
144  _id = QwtAbstractScale::qt_metacall(_c, _id, _a);
145  if (_id < 0)
146  return _id;
147  if (_c == QMetaObject::InvokeMetaMethod) {
148  if (_id < 1)
149  qt_static_metacall(this, _c, _id, _a);
150  _id -= 1;
151  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
152  if (_id < 1)
153  *reinterpret_cast<int*>(_a[0]) = -1;
154  _id -= 1;
155  }
156 #ifndef QT_NO_PROPERTIES
157  else if (_c == QMetaObject::ReadProperty) {
158  void *_v = _a[0];
159  switch (_id) {
160  case 0: *reinterpret_cast< Qt::Orientation*>(_v) = orientation(); break;
161  case 1: *reinterpret_cast< ScalePosition*>(_v) = scalePosition(); break;
162  case 2: *reinterpret_cast< OriginMode*>(_v) = originMode(); break;
163  case 3: *reinterpret_cast< bool*>(_v) = alarmEnabled(); break;
164  case 4: *reinterpret_cast< double*>(_v) = alarmLevel(); break;
165  case 5: *reinterpret_cast< double*>(_v) = origin(); break;
166  case 6: *reinterpret_cast< int*>(_v) = spacing(); break;
167  case 7: *reinterpret_cast< int*>(_v) = borderWidth(); break;
168  case 8: *reinterpret_cast< int*>(_v) = pipeWidth(); break;
169  case 9: *reinterpret_cast< double*>(_v) = value(); break;
170  default: break;
171  }
172  _id -= 10;
173  } else if (_c == QMetaObject::WriteProperty) {
174  void *_v = _a[0];
175  switch (_id) {
176  case 0: setOrientation(*reinterpret_cast< Qt::Orientation*>(_v)); break;
177  case 1: setScalePosition(*reinterpret_cast< ScalePosition*>(_v)); break;
178  case 2: setOriginMode(*reinterpret_cast< OriginMode*>(_v)); break;
179  case 3: setAlarmEnabled(*reinterpret_cast< bool*>(_v)); break;
180  case 4: setAlarmLevel(*reinterpret_cast< double*>(_v)); break;
181  case 5: setOrigin(*reinterpret_cast< double*>(_v)); break;
182  case 6: setSpacing(*reinterpret_cast< int*>(_v)); break;
183  case 7: setBorderWidth(*reinterpret_cast< int*>(_v)); break;
184  case 8: setPipeWidth(*reinterpret_cast< int*>(_v)); break;
185  case 9: setValue(*reinterpret_cast< double*>(_v)); break;
186  default: break;
187  }
188  _id -= 10;
189  } else if (_c == QMetaObject::ResetProperty) {
190  _id -= 10;
191  } else if (_c == QMetaObject::QueryPropertyDesignable) {
192  _id -= 10;
193  } else if (_c == QMetaObject::QueryPropertyScriptable) {
194  _id -= 10;
195  } else if (_c == QMetaObject::QueryPropertyStored) {
196  _id -= 10;
197  } else if (_c == QMetaObject::QueryPropertyEditable) {
198  _id -= 10;
199  } else if (_c == QMetaObject::QueryPropertyUser) {
200  _id -= 10;
201  } else if (_c == QMetaObject::RegisterPropertyMetaType) {
202  if (_id < 10)
203  *reinterpret_cast<int*>(_a[0]) = -1;
204  _id -= 10;
205  }
206 #endif // QT_NO_PROPERTIES
207  return _id;
208 }
209 QT_END_MOC_NAMESPACE
#define QT_MOC_LITERAL(idx, ofs, len)