RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
moc_qwt_panner.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'qwt_panner.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_panner.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'qwt_panner.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[6];
23  char stringdata[30];
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_QwtPanner_t, stringdata) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
30 static const qt_meta_stringdata_QwtPanner_t qt_meta_stringdata_QwtPanner = {
31  {
32 QT_MOC_LITERAL(0, 0, 9),
33 QT_MOC_LITERAL(1, 10, 6),
34 QT_MOC_LITERAL(2, 17, 0),
35 QT_MOC_LITERAL(3, 18, 2),
36 QT_MOC_LITERAL(4, 21, 2),
37 QT_MOC_LITERAL(5, 24, 5)
38  },
39  "QwtPanner\0panned\0\0dx\0dy\0moved"
40 };
41 #undef QT_MOC_LITERAL
42 
43 static const uint qt_meta_data_QwtPanner[] = {
44 
45  // content:
46  7, // revision
47  0, // classname
48  0, 0, // classinfo
49  2, 14, // methods
50  0, 0, // properties
51  0, 0, // enums/sets
52  0, 0, // constructors
53  0, // flags
54  2, // signalCount
55 
56  // signals: name, argc, parameters, tag, flags
57  1, 2, 24, 2, 0x06 /* Public */,
58  5, 2, 29, 2, 0x06 /* Public */,
59 
60  // signals: parameters
61  QMetaType::Void, QMetaType::Int, QMetaType::Int, 3, 4,
62  QMetaType::Void, QMetaType::Int, QMetaType::Int, 3, 4,
63 
64  0 // eod
65 };
66 
67 void QwtPanner::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
68 {
69  if (_c == QMetaObject::InvokeMetaMethod) {
70  QwtPanner *_t = static_cast<QwtPanner *>(_o);
71  switch (_id) {
72  case 0: _t->panned((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
73  case 1: _t->moved((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
74  default: ;
75  }
76  } else if (_c == QMetaObject::IndexOfMethod) {
77  int *result = reinterpret_cast<int *>(_a[0]);
78  void **func = reinterpret_cast<void **>(_a[1]);
79  {
80  typedef void (QwtPanner::*_t)(int , int );
81  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QwtPanner::panned)) {
82  *result = 0;
83  }
84  }
85  {
86  typedef void (QwtPanner::*_t)(int , int );
87  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QwtPanner::moved)) {
88  *result = 1;
89  }
90  }
91  }
92 }
93 
94 const QMetaObject QwtPanner::staticMetaObject = {
95  { &QWidget::staticMetaObject, qt_meta_stringdata_QwtPanner.data,
96  qt_meta_data_QwtPanner, qt_static_metacall, 0, 0}
97 };
98 
99 
100 const QMetaObject *QwtPanner::metaObject() const
101 {
102  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
103 }
104 
105 void *QwtPanner::qt_metacast(const char *_clname)
106 {
107  if (!_clname) return 0;
108  if (!strcmp(_clname, qt_meta_stringdata_QwtPanner.stringdata))
109  return static_cast<void*>(const_cast< QwtPanner*>(this));
110  return QWidget::qt_metacast(_clname);
111 }
112 
113 int QwtPanner::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
114 {
115  _id = QWidget::qt_metacall(_c, _id, _a);
116  if (_id < 0)
117  return _id;
118  if (_c == QMetaObject::InvokeMetaMethod) {
119  if (_id < 2)
120  qt_static_metacall(this, _c, _id, _a);
121  _id -= 2;
122  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
123  if (_id < 2)
124  *reinterpret_cast<int*>(_a[0]) = -1;
125  _id -= 2;
126  }
127  return _id;
128 }
129 
130 // SIGNAL 0
131 void QwtPanner::panned(int _t1, int _t2)
132 {
133  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
134  QMetaObject::activate(this, &staticMetaObject, 0, _a);
135 }
136 
137 // SIGNAL 1
138 void QwtPanner::moved(int _t1, int _t2)
139 {
140  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
141  QMetaObject::activate(this, &staticMetaObject, 1, _a);
142 }
143 QT_END_MOC_NAMESPACE
#define QT_MOC_LITERAL(idx, ofs, len)