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

#include "../../model/fieldmodel.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'fieldmodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN5QtGui10FieldModelE_t {};
} // unnamed namespace

template <> constexpr inline auto QtGui::FieldModel::qt_create_metaobjectdata<qt_meta_tag_ZN5QtGui10FieldModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QtGui::FieldModel",
        "setPasswordVisibility",
        "",
        "PasswordVisibility",
        "passwordVisibility",
        "reset",
        "rowCount",
        "QModelIndex",
        "parent",
        "columnCount",
        "insertRows",
        "row",
        "count",
        "removeRows",
        "moveRows",
        "sourceParent",
        "sourceRow",
        "destinationParent",
        "destinationChild",
        "field",
        "const Io::Field*",
        "std::size_t",
        "accountEntry",
        "Io::AccountEntry*"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'setPasswordVisibility'
        QtMocHelpers::SlotData<void(PasswordVisibility)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'reset'
        QtMocHelpers::SlotData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'rowCount'
        QtMocHelpers::MethodData<int(const QModelIndex &) const>(6, 2, QMC::AccessPublic, QMetaType::Int, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Method 'rowCount'
        QtMocHelpers::MethodData<int() const>(6, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Int),
        // Method 'columnCount'
        QtMocHelpers::MethodData<int(const QModelIndex &) const>(9, 2, QMC::AccessPublic, QMetaType::Int, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Method 'columnCount'
        QtMocHelpers::MethodData<int() const>(9, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Int),
        // Method 'insertRows'
        QtMocHelpers::MethodData<bool(int, int, const QModelIndex &)>(10, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::Int, 11 }, { QMetaType::Int, 12 }, { 0x80000000 | 7, 8 },
        }}),
        // Method 'insertRows'
        QtMocHelpers::MethodData<bool(int, int)>(10, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { QMetaType::Int, 11 }, { QMetaType::Int, 12 },
        }}),
        // Method 'removeRows'
        QtMocHelpers::MethodData<bool(int, int, const QModelIndex &)>(13, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::Int, 11 }, { QMetaType::Int, 12 }, { 0x80000000 | 7, 8 },
        }}),
        // Method 'removeRows'
        QtMocHelpers::MethodData<bool(int, int)>(13, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { QMetaType::Int, 11 }, { QMetaType::Int, 12 },
        }}),
        // Method 'moveRows'
        QtMocHelpers::MethodData<bool(const QModelIndex &, int, int, const QModelIndex &, int)>(14, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 7, 15 }, { QMetaType::Int, 16 }, { QMetaType::Int, 12 }, { 0x80000000 | 7, 17 },
            { QMetaType::Int, 18 },
        }}),
        // Method 'field'
        QtMocHelpers::MethodData<const Io::Field *(std::size_t) const>(19, 2, QMC::AccessPublic, 0x80000000 | 20, {{
            { 0x80000000 | 21, 11 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'accountEntry'
        QtMocHelpers::PropertyData<Io::AccountEntry*>(22, 0x80000000 | 23, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'passwordVisibility'
        QtMocHelpers::PropertyData<PasswordVisibility>(4, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<FieldModel, qt_meta_tag_ZN5QtGui10FieldModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QtGui::FieldModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractTableModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5QtGui10FieldModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5QtGui10FieldModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN5QtGui10FieldModelE_t>.metaTypes,
    nullptr
} };

void QtGui::FieldModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<FieldModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->setPasswordVisibility((*reinterpret_cast<std::add_pointer_t<PasswordVisibility>>(_a[1]))); break;
        case 1: _t->reset(); break;
        case 2: { int _r = _t->rowCount((*reinterpret_cast<std::add_pointer_t<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<std::add_pointer_t<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<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[3])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 7: { bool _r = _t->insertRows((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 8: { bool _r = _t->removeRows((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[3])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 9: { bool _r = _t->removeRows((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 10: { bool _r = _t->moveRows((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<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::add_pointer_t<std::size_t>>(_a[1])));
            if (_a[0]) *reinterpret_cast<const Io::Field**>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        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;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        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;
        }
    }
}

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_staticMetaObjectStaticContent<qt_meta_tag_ZN5QtGui10FieldModelE_t>.strings))
        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;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 12;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    return _id;
}
QT_WARNING_POP
