/****************************************************************************
** Meta object code from reading C++ file 'KexiDBPushButton.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/KexiDBPushButton.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'KexiDBPushButton.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_KexiDBPushButton_t {
    QByteArrayData data[16];
    char stringdata0[212];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KexiDBPushButton_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KexiDBPushButton_t qt_meta_stringdata_KexiDBPushButton = {
    {
QT_MOC_LITERAL(0, 0, 16), // "KexiDBPushButton"
QT_MOC_LITERAL(1, 17, 13), // "onClickAction"
QT_MOC_LITERAL(2, 31, 0), // ""
QT_MOC_LITERAL(3, 32, 16), // "setOnClickAction"
QT_MOC_LITERAL(4, 49, 12), // "actionString"
QT_MOC_LITERAL(5, 62, 19), // "onClickActionOption"
QT_MOC_LITERAL(6, 82, 22), // "setOnClickActionOption"
QT_MOC_LITERAL(7, 105, 6), // "option"
QT_MOC_LITERAL(8, 112, 13), // "setDataSource"
QT_MOC_LITERAL(9, 126, 2), // "ds"
QT_MOC_LITERAL(10, 129, 21), // "setDataSourcePluginId"
QT_MOC_LITERAL(11, 151, 8), // "pluginId"
QT_MOC_LITERAL(12, 160, 11), // "setReadOnly"
QT_MOC_LITERAL(13, 172, 8), // "readOnly"
QT_MOC_LITERAL(14, 181, 10), // "dataSource"
QT_MOC_LITERAL(15, 192, 19) // "dataSourcePartClass"

    },
    "KexiDBPushButton\0onClickAction\0\0"
    "setOnClickAction\0actionString\0"
    "onClickActionOption\0setOnClickActionOption\0"
    "option\0setDataSource\0ds\0setDataSourcePluginId\0"
    "pluginId\0setReadOnly\0readOnly\0dataSource\0"
    "dataSourcePartClass"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KexiDBPushButton[] = {

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

 // slots: name, argc, parameters, tag, flags
       1,    0,   49,    2, 0x0a /* Public */,
       3,    1,   50,    2, 0x0a /* Public */,
       5,    0,   53,    2, 0x0a /* Public */,
       6,    1,   54,    2, 0x0a /* Public */,
       8,    1,   57,    2, 0x0a /* Public */,
      10,    1,   60,    2, 0x0a /* Public */,
      12,    1,   63,    2, 0x0a /* Public */,

 // slots: parameters
    QMetaType::QString,
    QMetaType::Void, QMetaType::QString,    4,
    QMetaType::QString,
    QMetaType::Void, QMetaType::QString,    7,
    QMetaType::Void, QMetaType::QString,    9,
    QMetaType::Void, QMetaType::QString,   11,
    QMetaType::Void, QMetaType::Bool,   13,

 // properties: name, type, flags
       1, QMetaType::QString, 0x00095103,
       5, QMetaType::QString, 0x00095103,
      14, QMetaType::QString, 0x00095103,
      15, QMetaType::QString, 0x00095003,

       0        // eod
};

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

const QMetaObject KexiDBPushButton::staticMetaObject = {
    { &KexiPushButton::staticMetaObject, qt_meta_stringdata_KexiDBPushButton.data,
      qt_meta_data_KexiDBPushButton,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

int KexiDBPushButton::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = KexiPushButton::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 7;
    }
#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 -= 4;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 4;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
QT_END_MOC_NAMESPACE
