First commit
[ameter] / moc_ameterwidget.cpp
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'ameterwidget.h'
3 **
4 ** Created: Sun Aug 7 15:34:40 2011
5 **      by: The Qt Meta Object Compiler version 62 (Qt 4.7.0)
6 **
7 ** WARNING! All changes made in this file will be lost!
8 *****************************************************************************/
9
10 #include "ameterwidget.h"
11 #if !defined(Q_MOC_OUTPUT_REVISION)
12 #error "The header file 'ameterwidget.h' doesn't include <QObject>."
13 #elif Q_MOC_OUTPUT_REVISION != 62
14 #error "This file was generated using the moc from 4.7.0. It"
15 #error "cannot be used with the include files from this version of Qt."
16 #error "(The moc has changed too much.)"
17 #endif
18
19 QT_BEGIN_MOC_NAMESPACE
20 static const uint qt_meta_data_AMeterWidget[] = {
21
22  // content:
23        5,       // revision
24        0,       // classname
25        0,    0, // classinfo
26        1,   14, // methods
27        0,    0, // properties
28        0,    0, // enums/sets
29        0,    0, // constructors
30        0,       // flags
31        0,       // signalCount
32
33  // slots: signature, parameters, type, tag, flags
34       27,   19,   14,   13, 0x0a,
35
36        0        // eod
37 };
38
39 static const char qt_meta_stringdata_AMeterWidget[] = {
40     "AMeterWidget\0\0bool\0reading\0"
41     "filter(QAccelerometerReading*)\0"
42 };
43
44 const QMetaObject AMeterWidget::staticMetaObject = {
45     { &QWidget::staticMetaObject, qt_meta_stringdata_AMeterWidget,
46       qt_meta_data_AMeterWidget, 0 }
47 };
48
49 #ifdef Q_NO_DATA_RELOCATION
50 const QMetaObject &AMeterWidget::getStaticMetaObject() { return staticMetaObject; }
51 #endif //Q_NO_DATA_RELOCATION
52
53 const QMetaObject *AMeterWidget::metaObject() const
54 {
55     return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
56 }
57
58 void *AMeterWidget::qt_metacast(const char *_clname)
59 {
60     if (!_clname) return 0;
61     if (!strcmp(_clname, qt_meta_stringdata_AMeterWidget))
62         return static_cast<void*>(const_cast< AMeterWidget*>(this));
63     if (!strcmp(_clname, "QAccelerometerFilter"))
64         return static_cast< QAccelerometerFilter*>(const_cast< AMeterWidget*>(this));
65     return QWidget::qt_metacast(_clname);
66 }
67
68 int AMeterWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
69 {
70     _id = QWidget::qt_metacall(_c, _id, _a);
71     if (_id < 0)
72         return _id;
73     if (_c == QMetaObject::InvokeMetaMethod) {
74         switch (_id) {
75         case 0: { bool _r = filter((*reinterpret_cast< QAccelerometerReading*(*)>(_a[1])));
76             if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
77         default: ;
78         }
79         _id -= 1;
80     }
81     return _id;
82 }
83 QT_END_MOC_NAMESPACE