RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
moc_qwt_slider.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'qwt_slider.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_slider.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'qwt_slider.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[13];
23  char stringdata[146];
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_QwtSlider_t, stringdata) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
30 static const qt_meta_stringdata_QwtSlider_t qt_meta_stringdata_QwtSlider = {
31  {
32 QT_MOC_LITERAL(0, 0, 9),
33 QT_MOC_LITERAL(1, 10, 11),
34 QT_MOC_LITERAL(2, 22, 15),
35 QT_MOC_LITERAL(3, 38, 13),
36 QT_MOC_LITERAL(4, 52, 13),
37 QT_MOC_LITERAL(5, 66, 6),
38 QT_MOC_LITERAL(6, 73, 6),
39 QT_MOC_LITERAL(7, 80, 10),
40 QT_MOC_LITERAL(8, 91, 11),
41 QT_MOC_LITERAL(9, 103, 7),
42 QT_MOC_LITERAL(10, 111, 7),
43 QT_MOC_LITERAL(11, 119, 12),
44 QT_MOC_LITERAL(12, 132, 13)
45  },
46  "QwtSlider\0orientation\0Qt::Orientation\0"
47  "scalePosition\0ScalePosition\0trough\0"
48  "groove\0handleSize\0borderWidth\0spacing\0"
49  "NoScale\0LeadingScale\0TrailingScale"
50 };
51 #undef QT_MOC_LITERAL
52 
53 static const uint qt_meta_data_QwtSlider[] = {
54 
55  // content:
56  7, // revision
57  0, // classname
58  0, 0, // classinfo
59  0, 0, // methods
60  7, 14, // properties
61  1, 35, // enums/sets
62  0, 0, // constructors
63  0, // flags
64  0, // signalCount
65 
66  // properties: name, type, flags
67  1, 0x80000000 | 2, 0x0009510b,
68  3, 0x80000000 | 4, 0x0009510b,
69  5, QMetaType::Bool, 0x00095103,
70  6, QMetaType::Bool, 0x00095103,
71  7, QMetaType::QSize, 0x00095103,
72  8, QMetaType::Int, 0x00095103,
73  9, QMetaType::Int, 0x00095103,
74 
75  // enums: name, flags, count, data
76  4, 0x0, 3, 39,
77 
78  // enum data: key, value
79  10, uint(QwtSlider::NoScale),
80  11, uint(QwtSlider::LeadingScale),
81  12, uint(QwtSlider::TrailingScale),
82 
83  0 // eod
84 };
85 
86 void QwtSlider::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
87 {
88  Q_UNUSED(_o);
89  Q_UNUSED(_id);
90  Q_UNUSED(_c);
91  Q_UNUSED(_a);
92 }
93 
94 const QMetaObject QwtSlider::staticMetaObject = {
95  { &QwtAbstractSlider::staticMetaObject, qt_meta_stringdata_QwtSlider.data,
96  qt_meta_data_QwtSlider, qt_static_metacall, 0, 0}
97 };
98 
99 
100 const QMetaObject *QwtSlider::metaObject() const
101 {
102  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
103 }
104 
105 void *QwtSlider::qt_metacast(const char *_clname)
106 {
107  if (!_clname) return 0;
108  if (!strcmp(_clname, qt_meta_stringdata_QwtSlider.stringdata))
109  return static_cast<void*>(const_cast< QwtSlider*>(this));
110  return QwtAbstractSlider::qt_metacast(_clname);
111 }
112 
113 int QwtSlider::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
114 {
115  _id = QwtAbstractSlider::qt_metacall(_c, _id, _a);
116  if (_id < 0)
117  return _id;
118 
119 #ifndef QT_NO_PROPERTIES
120  if (_c == QMetaObject::ReadProperty) {
121  void *_v = _a[0];
122  switch (_id) {
123  case 0: *reinterpret_cast< Qt::Orientation*>(_v) = orientation(); break;
124  case 1: *reinterpret_cast< ScalePosition*>(_v) = scalePosition(); break;
125  case 2: *reinterpret_cast< bool*>(_v) = hasTrough(); break;
126  case 3: *reinterpret_cast< bool*>(_v) = hasGroove(); break;
127  case 4: *reinterpret_cast< QSize*>(_v) = handleSize(); break;
128  case 5: *reinterpret_cast< int*>(_v) = borderWidth(); break;
129  case 6: *reinterpret_cast< int*>(_v) = spacing(); break;
130  default: break;
131  }
132  _id -= 7;
133  } else if (_c == QMetaObject::WriteProperty) {
134  void *_v = _a[0];
135  switch (_id) {
136  case 0: setOrientation(*reinterpret_cast< Qt::Orientation*>(_v)); break;
137  case 1: setScalePosition(*reinterpret_cast< ScalePosition*>(_v)); break;
138  case 2: setTrough(*reinterpret_cast< bool*>(_v)); break;
139  case 3: setGroove(*reinterpret_cast< bool*>(_v)); break;
140  case 4: setHandleSize(*reinterpret_cast< QSize*>(_v)); break;
141  case 5: setBorderWidth(*reinterpret_cast< int*>(_v)); break;
142  case 6: setSpacing(*reinterpret_cast< int*>(_v)); break;
143  default: break;
144  }
145  _id -= 7;
146  } else if (_c == QMetaObject::ResetProperty) {
147  _id -= 7;
148  } else if (_c == QMetaObject::QueryPropertyDesignable) {
149  _id -= 7;
150  } else if (_c == QMetaObject::QueryPropertyScriptable) {
151  _id -= 7;
152  } else if (_c == QMetaObject::QueryPropertyStored) {
153  _id -= 7;
154  } else if (_c == QMetaObject::QueryPropertyEditable) {
155  _id -= 7;
156  } else if (_c == QMetaObject::QueryPropertyUser) {
157  _id -= 7;
158  } else if (_c == QMetaObject::RegisterPropertyMetaType) {
159  if (_id < 7)
160  *reinterpret_cast<int*>(_a[0]) = -1;
161  _id -= 7;
162  }
163 #endif // QT_NO_PROPERTIES
164  return _id;
165 }
166 QT_END_MOC_NAMESPACE
#define QT_MOC_LITERAL(idx, ofs, len)