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

#include <memory>
#include "../itemviews/qdatawidgetmapper.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QVector>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qdatawidgetmapper.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.19. 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
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_QDataWidgetMapper_t {
    QByteArrayData data[27];
    char stringdata0[351];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QDataWidgetMapper_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QDataWidgetMapper_t qt_meta_stringdata_QDataWidgetMapper = {
    {
QT_MOC_LITERAL(0, 0, 17), // "QDataWidgetMapper"
QT_MOC_LITERAL(1, 18, 19), // "currentIndexChanged"
QT_MOC_LITERAL(2, 38, 0), // ""
QT_MOC_LITERAL(3, 39, 5), // "index"
QT_MOC_LITERAL(4, 45, 6), // "revert"
QT_MOC_LITERAL(5, 52, 6), // "submit"
QT_MOC_LITERAL(6, 59, 7), // "toFirst"
QT_MOC_LITERAL(7, 67, 6), // "toLast"
QT_MOC_LITERAL(8, 74, 6), // "toNext"
QT_MOC_LITERAL(9, 81, 10), // "toPrevious"
QT_MOC_LITERAL(10, 92, 15), // "setCurrentIndex"
QT_MOC_LITERAL(11, 108, 20), // "setCurrentModelIndex"
QT_MOC_LITERAL(12, 129, 11), // "QModelIndex"
QT_MOC_LITERAL(13, 141, 14), // "_q_dataChanged"
QT_MOC_LITERAL(14, 156, 12), // "QVector<int>"
QT_MOC_LITERAL(15, 169, 13), // "_q_commitData"
QT_MOC_LITERAL(16, 183, 8), // "QWidget*"
QT_MOC_LITERAL(17, 192, 14), // "_q_closeEditor"
QT_MOC_LITERAL(18, 207, 34), // "QAbstractItemDelegate::EndEdi..."
QT_MOC_LITERAL(19, 242, 17), // "_q_modelDestroyed"
QT_MOC_LITERAL(20, 260, 12), // "currentIndex"
QT_MOC_LITERAL(21, 273, 11), // "orientation"
QT_MOC_LITERAL(22, 285, 15), // "Qt::Orientation"
QT_MOC_LITERAL(23, 301, 12), // "submitPolicy"
QT_MOC_LITERAL(24, 314, 12), // "SubmitPolicy"
QT_MOC_LITERAL(25, 327, 10), // "AutoSubmit"
QT_MOC_LITERAL(26, 338, 12) // "ManualSubmit"

    },
    "QDataWidgetMapper\0currentIndexChanged\0"
    "\0index\0revert\0submit\0toFirst\0toLast\0"
    "toNext\0toPrevious\0setCurrentIndex\0"
    "setCurrentModelIndex\0QModelIndex\0"
    "_q_dataChanged\0QVector<int>\0_q_commitData\0"
    "QWidget*\0_q_closeEditor\0"
    "QAbstractItemDelegate::EndEditHint\0"
    "_q_modelDestroyed\0currentIndex\0"
    "orientation\0Qt::Orientation\0submitPolicy\0"
    "SubmitPolicy\0AutoSubmit\0ManualSubmit"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QDataWidgetMapper[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      13,   14, // methods
       3,  110, // properties
       1,  122, // enums/sets
       0,    0, // constructors
       0,       // flags
       1,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   79,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       4,    0,   82,    2, 0x0a /* Public */,
       5,    0,   83,    2, 0x0a /* Public */,
       6,    0,   84,    2, 0x0a /* Public */,
       7,    0,   85,    2, 0x0a /* Public */,
       8,    0,   86,    2, 0x0a /* Public */,
       9,    0,   87,    2, 0x0a /* Public */,
      10,    1,   88,    2, 0x0a /* Public */,
      11,    1,   91,    2, 0x0a /* Public */,
      13,    3,   94,    2, 0x08 /* Private */,
      15,    1,  101,    2, 0x08 /* Private */,
      17,    2,  104,    2, 0x08 /* Private */,
      19,    0,  109,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::Int,    3,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Bool,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Void, 0x80000000 | 12,    3,
    QMetaType::Void, 0x80000000 | 12, 0x80000000 | 12, 0x80000000 | 14,    2,    2,    2,
    QMetaType::Void, 0x80000000 | 16,    2,
    QMetaType::Void, 0x80000000 | 16, 0x80000000 | 18,    2,    2,
    QMetaType::Void,

 // properties: name, type, flags
      20, QMetaType::Int, 0x00495103,
      21, 0x80000000 | 22, 0x0009510b,
      23, 0x80000000 | 24, 0x0009510b,

 // properties: notify_signal_id
       0,
       0,
       0,

 // enums: name, alias, flags, count, data
      24,   24, 0x0,    2,  127,

 // enum data: key, value
      25, uint(QDataWidgetMapper::AutoSubmit),
      26, uint(QDataWidgetMapper::ManualSubmit),

       0        // eod
};

void QDataWidgetMapper::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<QDataWidgetMapper *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->currentIndexChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: _t->revert(); break;
        case 2: { bool _r = _t->submit();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 3: _t->toFirst(); break;
        case 4: _t->toLast(); break;
        case 5: _t->toNext(); break;
        case 6: _t->toPrevious(); break;
        case 7: _t->setCurrentIndex((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 8: _t->setCurrentModelIndex((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 9: _t->d_func()->_q_dataChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2])),(*reinterpret_cast< const QVector<int>(*)>(_a[3]))); break;
        case 10: _t->d_func()->_q_commitData((*reinterpret_cast< QWidget*(*)>(_a[1]))); break;
        case 11: _t->d_func()->_q_closeEditor((*reinterpret_cast< QWidget*(*)>(_a[1])),(*reinterpret_cast< QAbstractItemDelegate::EndEditHint(*)>(_a[2]))); break;
        case 12: _t->d_func()->_q_modelDestroyed(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 9:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 2:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QVector<int> >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (QDataWidgetMapper::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDataWidgetMapper::currentIndexChanged)) {
                *result = 0;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<QDataWidgetMapper *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = _t->currentIndex(); break;
        case 1: *reinterpret_cast< Qt::Orientation*>(_v) = _t->orientation(); break;
        case 2: *reinterpret_cast< SubmitPolicy*>(_v) = _t->submitPolicy(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<QDataWidgetMapper *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setCurrentIndex(*reinterpret_cast< int*>(_v)); break;
        case 1: _t->setOrientation(*reinterpret_cast< Qt::Orientation*>(_v)); break;
        case 2: _t->setSubmitPolicy(*reinterpret_cast< SubmitPolicy*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject QDataWidgetMapper::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_QDataWidgetMapper.data,
    qt_meta_data_QDataWidgetMapper,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *QDataWidgetMapper::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_QDataWidgetMapper.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int QDataWidgetMapper::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
#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;
}

// SIGNAL 0
void QDataWidgetMapper::currentIndexChanged(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
