moc_DoodlePage.cpp 6.42 KB
/****************************************************************************
** Meta object code from reading C++ file 'DoodlePage.h'
**
** Created: Fri Jul 15 16:00:05 2016
**      by: The Qt Meta Object Compiler version 67 (Qt 5.0.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../LiveChat/FeiTalk/JusDoodle/DoodlePage.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'DoodlePage.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.0.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
struct qt_meta_stringdata_JusDoodle__DoodlePage_t {
    QByteArrayData data[15];
    char stringdata[151];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    offsetof(qt_meta_stringdata_JusDoodle__DoodlePage_t, stringdata) + ofs \
        - idx * sizeof(QByteArrayData) \
    )
static const qt_meta_stringdata_JusDoodle__DoodlePage_t qt_meta_stringdata_JusDoodle__DoodlePage = {
    {
QT_MOC_LITERAL(0, 0, 21),
QT_MOC_LITERAL(1, 22, 14),
QT_MOC_LITERAL(2, 37, 0),
QT_MOC_LITERAL(3, 38, 6),
QT_MOC_LITERAL(4, 45, 4),
QT_MOC_LITERAL(5, 50, 4),
QT_MOC_LITERAL(6, 55, 5),
QT_MOC_LITERAL(7, 61, 5),
QT_MOC_LITERAL(8, 67, 15),
QT_MOC_LITERAL(9, 83, 14),
QT_MOC_LITERAL(10, 98, 14),
QT_MOC_LITERAL(11, 113, 13),
QT_MOC_LITERAL(12, 127, 5),
QT_MOC_LITERAL(13, 133, 11),
QT_MOC_LITERAL(14, 145, 4)
    },
    "JusDoodle::DoodlePage\0notifyDrawPath\0"
    "\0pageId\0Path\0path\0color\0width\0"
    "notifyErasePath\0onColorChanged\0"
    "onWidthChanged\0onModeChanged\0erase\0"
    "setDrawFlag\0flag\0"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_JusDoodle__DoodlePage[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       6,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       2,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    4,   44,    2, 0x05,
       8,    3,   53,    2, 0x05,

 // slots: name, argc, parameters, tag, flags
       9,    1,   60,    2, 0x0a,
      10,    1,   63,    2, 0x0a,
      11,    1,   66,    2, 0x0a,
      13,    1,   69,    2, 0x0a,

 // signals: parameters
    QMetaType::Void, QMetaType::Int, 0x80000000 | 4, QMetaType::QColor, QMetaType::Double,    3,    5,    6,    7,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 4, QMetaType::Double,    3,    5,    7,

 // slots: parameters
    QMetaType::Void, QMetaType::QColor,    6,
    QMetaType::Void, QMetaType::Double,    7,
    QMetaType::Void, QMetaType::Bool,   12,
    QMetaType::Void, QMetaType::Bool,   14,

       0        // eod
};

void JusDoodle::DoodlePage::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        DoodlePage *_t = static_cast<DoodlePage *>(_o);
        switch (_id) {
        case 0: _t->notifyDrawPath((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const Path(*)>(_a[2])),(*reinterpret_cast< const QColor(*)>(_a[3])),(*reinterpret_cast< double(*)>(_a[4]))); break;
        case 1: _t->notifyErasePath((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const Path(*)>(_a[2])),(*reinterpret_cast< double(*)>(_a[3]))); break;
        case 2: _t->onColorChanged((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
        case 3: _t->onWidthChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
        case 4: _t->onModeChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 5: _t->setDrawFlag((*reinterpret_cast< bool(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (DoodlePage::*_t)(int , const Path & , const QColor & , double );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DoodlePage::notifyDrawPath)) {
                *result = 0;
            }
        }
        {
            typedef void (DoodlePage::*_t)(int , const Path & , double );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DoodlePage::notifyErasePath)) {
                *result = 1;
            }
        }
    }
}

const QMetaObject JusDoodle::DoodlePage::staticMetaObject = {
    { &QWidget::staticMetaObject, qt_meta_stringdata_JusDoodle__DoodlePage.data,
      qt_meta_data_JusDoodle__DoodlePage,  qt_static_metacall, 0, 0}
};


const QMetaObject *JusDoodle::DoodlePage::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *JusDoodle::DoodlePage::qt_metacast(const char *_clname)
{
    if (!_clname) return 0;
    if (!strcmp(_clname, qt_meta_stringdata_JusDoodle__DoodlePage.stringdata))
        return static_cast<void*>(const_cast< DoodlePage*>(this));
    return QWidget::qt_metacast(_clname);
}

int JusDoodle::DoodlePage::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 6)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 6)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 6;
    }
    return _id;
}

// SIGNAL 0
void JusDoodle::DoodlePage::notifyDrawPath(int _t1, const Path & _t2, const QColor & _t3, double _t4)
{
    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)), const_cast<void*>(reinterpret_cast<const void*>(&_t4)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void JusDoodle::DoodlePage::notifyErasePath(int _t1, const Path & _t2, double _t3)
{
    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)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_END_MOC_NAMESPACE