RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
moc_qwt_text_label.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'qwt_text_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_text_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_text_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[10];
23  char stringdata[91];
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_QwtTextLabel_t, stringdata) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
30 static const qt_meta_stringdata_QwtTextLabel_t qt_meta_stringdata_QwtTextLabel = {
31  {
32 QT_MOC_LITERAL(0, 0, 12),
33 QT_MOC_LITERAL(1, 13, 7),
34 QT_MOC_LITERAL(2, 21, 0),
35 QT_MOC_LITERAL(3, 22, 19),
36 QT_MOC_LITERAL(4, 42, 10),
37 QT_MOC_LITERAL(5, 53, 7),
38 QT_MOC_LITERAL(6, 61, 5),
39 QT_MOC_LITERAL(7, 67, 6),
40 QT_MOC_LITERAL(8, 74, 6),
41 QT_MOC_LITERAL(9, 81, 9)
42  },
43  "QwtTextLabel\0setText\0\0QwtText::TextFormat\0"
44  "textFormat\0QwtText\0clear\0indent\0margin\0"
45  "plainText"
46 };
47 #undef QT_MOC_LITERAL
48 
49 static const uint qt_meta_data_QwtTextLabel[] = {
50 
51  // content:
52  7, // revision
53  0, // classname
54  0, 0, // classinfo
55  4, 14, // methods
56  3, 46, // properties
57  0, 0, // enums/sets
58  0, 0, // constructors
59  0, // flags
60  0, // signalCount
61 
62  // slots: name, argc, parameters, tag, flags
63  1, 2, 34, 2, 0x0a /* Public */,
64  1, 1, 39, 2, 0x2a /* Public | MethodCloned */,
65  1, 1, 42, 2, 0x0a /* Public */,
66  6, 0, 45, 2, 0x0a /* Public */,
67 
68  // slots: parameters
69  QMetaType::Void, QMetaType::QString, 0x80000000 | 3, 2, 4,
70  QMetaType::Void, QMetaType::QString, 2,
71  QMetaType::Void, 0x80000000 | 5, 2,
72  QMetaType::Void,
73 
74  // properties: name, type, flags
75  7, QMetaType::Int, 0x00095103,
76  8, QMetaType::Int, 0x00095103,
77  9, QMetaType::QString, 0x00095103,
78 
79  0 // eod
80 };
81 
82 void QwtTextLabel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
83 {
84  if (_c == QMetaObject::InvokeMetaMethod) {
85  QwtTextLabel *_t = static_cast<QwtTextLabel *>(_o);
86  switch (_id) {
87  case 0: _t->setText((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< QwtText::TextFormat(*)>(_a[2]))); break;
88  case 1: _t->setText((*reinterpret_cast< const QString(*)>(_a[1]))); break;
89  case 2: _t->setText((*reinterpret_cast< const QwtText(*)>(_a[1]))); break;
90  case 3: _t->clear(); break;
91  default: ;
92  }
93  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
94  switch (_id) {
95  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
96  case 2:
97  switch (*reinterpret_cast<int*>(_a[1])) {
98  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
99  case 0:
100  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QwtText >(); break;
101  }
102  break;
103  }
104  }
105 }
106 
107 const QMetaObject QwtTextLabel::staticMetaObject = {
108  { &QFrame::staticMetaObject, qt_meta_stringdata_QwtTextLabel.data,
109  qt_meta_data_QwtTextLabel, qt_static_metacall, 0, 0}
110 };
111 
112 
113 const QMetaObject *QwtTextLabel::metaObject() const
114 {
115  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
116 }
117 
118 void *QwtTextLabel::qt_metacast(const char *_clname)
119 {
120  if (!_clname) return 0;
121  if (!strcmp(_clname, qt_meta_stringdata_QwtTextLabel.stringdata))
122  return static_cast<void*>(const_cast< QwtTextLabel*>(this));
123  return QFrame::qt_metacast(_clname);
124 }
125 
126 int QwtTextLabel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
127 {
128  _id = QFrame::qt_metacall(_c, _id, _a);
129  if (_id < 0)
130  return _id;
131  if (_c == QMetaObject::InvokeMetaMethod) {
132  if (_id < 4)
133  qt_static_metacall(this, _c, _id, _a);
134  _id -= 4;
135  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
136  if (_id < 4)
137  qt_static_metacall(this, _c, _id, _a);
138  _id -= 4;
139  }
140 #ifndef QT_NO_PROPERTIES
141  else if (_c == QMetaObject::ReadProperty) {
142  void *_v = _a[0];
143  switch (_id) {
144  case 0: *reinterpret_cast< int*>(_v) = indent(); break;
145  case 1: *reinterpret_cast< int*>(_v) = margin(); break;
146  case 2: *reinterpret_cast< QString*>(_v) = plainText(); break;
147  default: break;
148  }
149  _id -= 3;
150  } else if (_c == QMetaObject::WriteProperty) {
151  void *_v = _a[0];
152  switch (_id) {
153  case 0: setIndent(*reinterpret_cast< int*>(_v)); break;
154  case 1: setMargin(*reinterpret_cast< int*>(_v)); break;
155  case 2: setPlainText(*reinterpret_cast< QString*>(_v)); break;
156  default: break;
157  }
158  _id -= 3;
159  } else if (_c == QMetaObject::ResetProperty) {
160  _id -= 3;
161  } else if (_c == QMetaObject::QueryPropertyDesignable) {
162  _id -= 3;
163  } else if (_c == QMetaObject::QueryPropertyScriptable) {
164  _id -= 3;
165  } else if (_c == QMetaObject::QueryPropertyStored) {
166  _id -= 3;
167  } else if (_c == QMetaObject::QueryPropertyEditable) {
168  _id -= 3;
169  } else if (_c == QMetaObject::QueryPropertyUser) {
170  _id -= 3;
171  } else if (_c == QMetaObject::RegisterPropertyMetaType) {
172  if (_id < 3)
173  *reinterpret_cast<int*>(_a[0]) = -1;
174  _id -= 3;
175  }
176 #endif // QT_NO_PROPERTIES
177  return _id;
178 }
179 QT_END_MOC_NAMESPACE
#define QT_MOC_LITERAL(idx, ofs, len)