/****************************************************************************
** Meta object code from reading C++ file 'kexidbcheckbox.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../../src/kexi-3.0.1/src/plugins/forms/widgets/kexidbcheckbox.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kexidbcheckbox.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. 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_KexiDBCheckBox_t {
    QByteArrayData data[16];
    char stringdata0[187];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KexiDBCheckBox_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KexiDBCheckBox_t qt_meta_stringdata_KexiDBCheckBox = {
    {
QT_MOC_LITERAL(0, 0, 14), // "KexiDBCheckBox"
QT_MOC_LITERAL(1, 15, 13), // "setDataSource"
QT_MOC_LITERAL(2, 29, 0), // ""
QT_MOC_LITERAL(3, 30, 2), // "ds"
QT_MOC_LITERAL(4, 33, 21), // "setDataSourcePluginId"
QT_MOC_LITERAL(5, 55, 16), // "slotStateChanged"
QT_MOC_LITERAL(6, 72, 5), // "state"
QT_MOC_LITERAL(7, 78, 11), // "setReadOnly"
QT_MOC_LITERAL(8, 90, 8), // "readOnly"
QT_MOC_LITERAL(9, 99, 10), // "dataSource"
QT_MOC_LITERAL(10, 110, 19), // "dataSourcePartClass"
QT_MOC_LITERAL(11, 130, 8), // "tristate"
QT_MOC_LITERAL(12, 139, 8), // "Tristate"
QT_MOC_LITERAL(13, 148, 15), // "TristateDefault"
QT_MOC_LITERAL(14, 164, 10), // "TristateOn"
QT_MOC_LITERAL(15, 175, 11) // "TristateOff"

    },
    "KexiDBCheckBox\0setDataSource\0\0ds\0"
    "setDataSourcePluginId\0slotStateChanged\0"
    "state\0setReadOnly\0readOnly\0dataSource\0"
    "dataSourcePartClass\0tristate\0Tristate\0"
    "TristateDefault\0TristateOn\0TristateOff"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KexiDBCheckBox[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       4,   14, // methods
       3,   46, // properties
       1,   55, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // slots: name, argc, parameters, tag, flags
       1,    1,   34,    2, 0x0a /* Public */,
       4,    1,   37,    2, 0x0a /* Public */,
       5,    1,   40,    2, 0x0a /* Public */,
       7,    1,   43,    2, 0x0a /* Public */,

 // slots: parameters
    QMetaType::Void, QMetaType::QString,    3,
    QMetaType::Void, QMetaType::QString,    3,
    QMetaType::Void, QMetaType::Int,    6,
    QMetaType::Void, QMetaType::Bool,    8,

 // properties: name, type, flags
       9, QMetaType::QString, 0x00095103,
      10, QMetaType::QString, 0x00095003,
      11, 0x80000000 | 12, 0x0009510b,

 // enums: name, flags, count, data
      12, 0x0,    3,   59,

 // enum data: key, value
      13, uint(KexiDBCheckBox::TristateDefault),
      14, uint(KexiDBCheckBox::TristateOn),
      15, uint(KexiDBCheckBox::TristateOff),

       0        // eod
};

void KexiDBCheckBox::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KexiDBCheckBox *_t = static_cast<KexiDBCheckBox *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->setDataSource((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 1: _t->setDataSourcePluginId((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 2: _t->slotStateChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 3: _t->setReadOnly((*reinterpret_cast< bool(*)>(_a[1]))); break;
        default: ;
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        KexiDBCheckBox *_t = static_cast<KexiDBCheckBox *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = _t->dataSource(); break;
        case 1: *reinterpret_cast< QString*>(_v) = _t->dataSourcePluginId(); break;
        case 2: *reinterpret_cast< Tristate*>(_v) = _t->isTristate(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        KexiDBCheckBox *_t = static_cast<KexiDBCheckBox *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setDataSource(*reinterpret_cast< QString*>(_v)); break;
        case 1: _t->setDataSourcePluginId(*reinterpret_cast< QString*>(_v)); break;
        case 2: _t->setTristate(*reinterpret_cast< Tristate*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject KexiDBCheckBox::staticMetaObject = {
    { &QCheckBox::staticMetaObject, qt_meta_stringdata_KexiDBCheckBox.data,
      qt_meta_data_KexiDBCheckBox,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *KexiDBCheckBox::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_KexiDBCheckBox.stringdata0))
        return static_cast<void*>(const_cast< KexiDBCheckBox*>(this));
    if (!strcmp(_clname, "KexiFormDataItemInterface"))
        return static_cast< KexiFormDataItemInterface*>(const_cast< KexiDBCheckBox*>(this));
    if (!strcmp(_clname, "KFormDesigner::FormWidgetInterface"))
        return static_cast< KFormDesigner::FormWidgetInterface*>(const_cast< KexiDBCheckBox*>(this));
    return QCheckBox::qt_metacast(_clname);
}

int KexiDBCheckBox::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QCheckBox::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 4)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 4;
    }
#ifndef QT_NO_PROPERTIES
   else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 3;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
QT_END_MOC_NAMESPACE
