RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
moc_scrollbar.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'scrollbar.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 "scrollbar.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'scrollbar.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[12];
23  char stringdata[120];
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_ScrollBar_t, stringdata) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
30 static const qt_meta_stringdata_ScrollBar_t qt_meta_stringdata_ScrollBar = {
31  {
32 QT_MOC_LITERAL(0, 0, 9),
33 QT_MOC_LITERAL(1, 10, 11),
34 QT_MOC_LITERAL(2, 22, 0),
35 QT_MOC_LITERAL(3, 23, 15),
36 QT_MOC_LITERAL(4, 39, 12),
37 QT_MOC_LITERAL(5, 52, 7),
38 QT_MOC_LITERAL(6, 60, 3),
39 QT_MOC_LITERAL(7, 64, 3),
40 QT_MOC_LITERAL(8, 68, 10),
41 QT_MOC_LITERAL(9, 79, 17),
42 QT_MOC_LITERAL(10, 97, 5),
43 QT_MOC_LITERAL(11, 103, 16)
44  },
45  "ScrollBar\0sliderMoved\0\0Qt::Orientation\0"
46  "valueChanged\0setBase\0min\0max\0moveSlider\0"
47  "catchValueChanged\0value\0catchSliderMoved"
48 };
49 #undef QT_MOC_LITERAL
50 
51 static const uint qt_meta_data_ScrollBar[] = {
52 
53  // content:
54  7, // revision
55  0, // classname
56  0, 0, // classinfo
57  6, 14, // methods
58  0, 0, // properties
59  0, 0, // enums/sets
60  0, 0, // constructors
61  0, // flags
62  2, // signalCount
63 
64  // signals: name, argc, parameters, tag, flags
65  1, 3, 44, 2, 0x06 /* Public */,
66  4, 3, 51, 2, 0x06 /* Public */,
67 
68  // slots: name, argc, parameters, tag, flags
69  5, 2, 58, 2, 0x0a /* Public */,
70  8, 2, 63, 2, 0x0a /* Public */,
71  9, 1, 68, 2, 0x08 /* Private */,
72  11, 1, 71, 2, 0x08 /* Private */,
73 
74  // signals: parameters
75  QMetaType::Void, 0x80000000 | 3, QMetaType::Double, QMetaType::Double, 2, 2, 2,
76  QMetaType::Void, 0x80000000 | 3, QMetaType::Double, QMetaType::Double, 2, 2, 2,
77 
78  // slots: parameters
79  QMetaType::Void, QMetaType::Double, QMetaType::Double, 6, 7,
80  QMetaType::Void, QMetaType::Double, QMetaType::Double, 6, 7,
81  QMetaType::Void, QMetaType::Int, 10,
82  QMetaType::Void, QMetaType::Int, 10,
83 
84  0 // eod
85 };
86 
87 void ScrollBar::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
88 {
89  if (_c == QMetaObject::InvokeMetaMethod) {
90  ScrollBar *_t = static_cast<ScrollBar *>(_o);
91  switch (_id) {
92  case 0: _t->sliderMoved((*reinterpret_cast< Qt::Orientation(*)>(_a[1])),(*reinterpret_cast< double(*)>(_a[2])),(*reinterpret_cast< double(*)>(_a[3]))); break;
93  case 1: _t->valueChanged((*reinterpret_cast< Qt::Orientation(*)>(_a[1])),(*reinterpret_cast< double(*)>(_a[2])),(*reinterpret_cast< double(*)>(_a[3]))); break;
94  case 2: _t->setBase((*reinterpret_cast< double(*)>(_a[1])),(*reinterpret_cast< double(*)>(_a[2]))); break;
95  case 3: _t->moveSlider((*reinterpret_cast< double(*)>(_a[1])),(*reinterpret_cast< double(*)>(_a[2]))); break;
96  case 4: _t->catchValueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
97  case 5: _t->catchSliderMoved((*reinterpret_cast< int(*)>(_a[1]))); break;
98  default: ;
99  }
100  } else if (_c == QMetaObject::IndexOfMethod) {
101  int *result = reinterpret_cast<int *>(_a[0]);
102  void **func = reinterpret_cast<void **>(_a[1]);
103  {
104  typedef void (ScrollBar::*_t)(Qt::Orientation , double , double );
105  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ScrollBar::sliderMoved)) {
106  *result = 0;
107  }
108  }
109  {
110  typedef void (ScrollBar::*_t)(Qt::Orientation , double , double );
111  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ScrollBar::valueChanged)) {
112  *result = 1;
113  }
114  }
115  }
116 }
117 
118 const QMetaObject ScrollBar::staticMetaObject = {
119  { &QScrollBar::staticMetaObject, qt_meta_stringdata_ScrollBar.data,
120  qt_meta_data_ScrollBar, qt_static_metacall, 0, 0}
121 };
122 
123 
124 const QMetaObject *ScrollBar::metaObject() const
125 {
126  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
127 }
128 
129 void *ScrollBar::qt_metacast(const char *_clname)
130 {
131  if (!_clname) return 0;
132  if (!strcmp(_clname, qt_meta_stringdata_ScrollBar.stringdata))
133  return static_cast<void*>(const_cast< ScrollBar*>(this));
134  return QScrollBar::qt_metacast(_clname);
135 }
136 
137 int ScrollBar::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
138 {
139  _id = QScrollBar::qt_metacall(_c, _id, _a);
140  if (_id < 0)
141  return _id;
142  if (_c == QMetaObject::InvokeMetaMethod) {
143  if (_id < 6)
144  qt_static_metacall(this, _c, _id, _a);
145  _id -= 6;
146  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
147  if (_id < 6)
148  *reinterpret_cast<int*>(_a[0]) = -1;
149  _id -= 6;
150  }
151  return _id;
152 }
153 
154 // SIGNAL 0
155 void ScrollBar::sliderMoved(Qt::Orientation _t1, double _t2, double _t3)
156 {
157  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
158  QMetaObject::activate(this, &staticMetaObject, 0, _a);
159 }
160 
161 // SIGNAL 1
162 void ScrollBar::valueChanged(Qt::Orientation _t1, double _t2, double _t3)
163 {
164  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
165  QMetaObject::activate(this, &staticMetaObject, 1, _a);
166 }
167 QT_END_MOC_NAMESPACE
void catchSliderMoved(int value)
Definition: scrollbar.cpp:157
virtual void setBase(double min, double max)
Definition: scrollbar.cpp:55
void valueChanged(Qt::Orientation, double, double)
void sliderMoved(Qt::Orientation, double, double)
virtual void moveSlider(double min, double max)
Definition: scrollbar.cpp:66
#define QT_MOC_LITERAL(idx, ofs, len)
void catchValueChanged(int value)
Definition: scrollbar.cpp:149