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

#include <memory>
#include "../../model/fieldmodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'fieldmodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.18. 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_QtGui__FieldModel_t {
    QByteArrayData data[24];
    char stringdata0[290];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QtGui__FieldModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QtGui__FieldModel_t qt_meta_stringdata_QtGui__FieldModel = {
    {
QT_MOC_LITERAL(0, 0, 17), // "QtGui::FieldModel"
QT_MOC_LITERAL(1, 18, 21), // "setPasswordVisibility"
QT_MOC_LITERAL(2, 40, 0), // ""
QT_MOC_LITERAL(3, 41, 18), // "PasswordVisibility"
QT_MOC_LITERAL(4, 60, 18), // "passwordVisibility"
QT_MOC_LITERAL(5, 79, 5), // "reset"
QT_MOC_LITERAL(6, 85, 8), // "rowCount"
QT_MOC_LITERAL(7, 94, 11), // "QModelIndex"
QT_MOC_LITERAL(8, 106, 6), // "parent"
QT_MOC_LITERAL(9, 113, 11), // "columnCount"
QT_MOC_LITERAL(10, 125, 10), // "insertRows"
QT_MOC_LITERAL(11, 136, 3), // "row"
QT_MOC_LITERAL(12, 140, 5), // "count"
QT_MOC_LITERAL(13, 146, 10), // "removeRows"
QT_MOC_LITERAL(14, 157, 8), // "moveRows"
QT_MOC_LITERAL(15, 166, 12), // "sourceParent"
QT_MOC_LITERAL(16, 179, 9), // "sourceRow"
QT_MOC_LITERAL(17, 189, 17), // "destinationParent"
QT_MOC_LITERAL(18, 207, 16), // "destinationChild"
QT_MOC_LITERAL(19, 224, 5), // "field"
QT_MOC_LITERAL(20, 230, 16), // "const Io::Field*"
QT_MOC_LITERAL(21, 247, 11), // "std::size_t"
QT_MOC_LITERAL(22, 259, 12), // "accountEntry"
QT_MOC_LITERAL(23, 272, 17) // "Io::AccountEntry*"

    },
    "QtGui::FieldModel\0setPasswordVisibility\0"
    "\0PasswordVisibility\0passwordVisibility\0"
    "reset\0rowCount\0QModelIndex\0parent\0"
    "columnCount\0insertRows\0row\0count\0"
    "removeRows\0moveRows\0sourceParent\0"
    "sourceRow\0destinationParent\0"
    "destinationChild\0field\0const Io::Field*\0"
    "std::size_t\0accountEntry\0Io::AccountEntry*"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QtGui__FieldModel[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      12,   14, // methods
       2,  124, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // slots: name, argc, parameters, tag, flags
       1,    1,   74,    2, 0x0a /* Public */,
       5,    0,   77,    2, 0x0a /* Public */,

 // methods: name, argc, parameters, tag, flags
       6,    1,   78,    2, 0x02 /* Public */,
       6,    0,   81,    2, 0x22 /* Public | MethodCloned */,
       9,    1,   82,    2, 0x02 /* Public */,
       9,    0,   85,    2, 0x22 /* Public | MethodCloned */,
      10,    3,   86,    2, 0x02 /* Public */,
      10,    2,   93,    2, 0x22 /* Public | MethodCloned */,
      13,    3,   98,    2, 0x02 /* Public */,
      13,    2,  105,    2, 0x22 /* Public | MethodCloned */,
      14,    5,  110,    2, 0x02 /* Public */,
      19,    1,  121,    2, 0x02 /* Public */,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void,

 // methods: parameters
    QMetaType::Int, 0x80000000 | 7,    8,
    QMetaType::Int,
    QMetaType::Int, 0x80000000 | 7,    8,
    QMetaType::Int,
    QMetaType::Bool, QMetaType::Int, QMetaType::Int, 0x80000000 | 7,   11,   12,    8,
    QMetaType::Bool, QMetaType::Int, QMetaType::Int,   11,   12,
    QMetaType::Bool, QMetaType::Int, QMetaType::Int, 0x80000000 | 7,   11,   12,    8,
    QMetaType::Bool, QMetaType::Int, QMetaType::Int,   11,   12,
    QMetaType::Bool, 0x80000000 | 7, QMetaType::Int, QMetaType::Int, 0x80000000 | 7, QMetaType::Int,   15,   16,   12,   17,   18,
    0x80000000 | 20, 0x80000000 | 21,   11,

 // properties: name, type, flags
      22, 0x80000000 | 23, 0x0009510b,
       4, 0x80000000 | 3, 0x0009510b,

       0        // eod
};

void QtGui::FieldModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<FieldModel *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->setPasswordVisibility((*reinterpret_cast< PasswordVisibility(*)>(_a[1]))); break;
        case 1: _t->reset(); break;
        case 2: { int _r = _t->rowCount((*reinterpret_cast< const QModelIndex(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 3: { int _r = _t->rowCount();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 4: { int _r = _t->columnCount((*reinterpret_cast< const QModelIndex(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 5: { int _r = _t->columnCount();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 6: { bool _r = _t->insertRows((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< const QModelIndex(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 7: { bool _r = _t->insertRows((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 8: { bool _r = _t->removeRows((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< const QModelIndex(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 9: { bool _r = _t->removeRows((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 10: { bool _r = _t->moveRows((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< const QModelIndex(*)>(_a[4])),(*reinterpret_cast< int(*)>(_a[5])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 11: { const Io::Field* _r = _t->field((*reinterpret_cast< std::size_t(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< const Io::Field**>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<FieldModel *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< Io::AccountEntry**>(_v) = _t->accountEntry(); break;
        case 1: *reinterpret_cast< PasswordVisibility*>(_v) = _t->passwordVisibility(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<FieldModel *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setAccountEntry(*reinterpret_cast< Io::AccountEntry**>(_v)); break;
        case 1: _t->setPasswordVisibility(*reinterpret_cast< PasswordVisibility*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject QtGui::FieldModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractTableModel::staticMetaObject>(),
    qt_meta_stringdata_QtGui__FieldModel.data,
    qt_meta_data_QtGui__FieldModel,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *QtGui::FieldModel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_QtGui__FieldModel.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "StackSupport"))
        return static_cast< StackSupport*>(this);
    return QAbstractTableModel::qt_metacast(_clname);
}

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