/****************************************************************************
** Meta object code from reading C++ file 'syncthingmodels.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 "../../misc/syncthingmodels.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'syncthingmodels.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__SyncthingModels_t {
    QByteArrayData data[16];
    char stringdata0[282];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QtGui__SyncthingModels_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QtGui__SyncthingModels_t qt_meta_stringdata_QtGui__SyncthingModels = {
    {
QT_MOC_LITERAL(0, 0, 22), // "QtGui::SyncthingModels"
QT_MOC_LITERAL(1, 23, 14), // "formatDataSize"
QT_MOC_LITERAL(2, 38, 0), // ""
QT_MOC_LITERAL(3, 39, 4), // "size"
QT_MOC_LITERAL(4, 44, 15), // "setBrightColors"
QT_MOC_LITERAL(5, 60, 12), // "brightColors"
QT_MOC_LITERAL(6, 73, 8), // "dirModel"
QT_MOC_LITERAL(7, 82, 30), // "Data::SyncthingDirectoryModel*"
QT_MOC_LITERAL(8, 113, 18), // "sortFilterDirModel"
QT_MOC_LITERAL(9, 132, 31), // "Data::SyncthingSortFilterModel*"
QT_MOC_LITERAL(10, 164, 8), // "devModel"
QT_MOC_LITERAL(11, 173, 27), // "Data::SyncthingDeviceModel*"
QT_MOC_LITERAL(12, 201, 18), // "sortFilterDevModel"
QT_MOC_LITERAL(13, 220, 12), // "changesModel"
QT_MOC_LITERAL(14, 233, 34), // "Data::SyncthingRecentChangesM..."
QT_MOC_LITERAL(15, 268, 13) // "scanSupported"

    },
    "QtGui::SyncthingModels\0formatDataSize\0"
    "\0size\0setBrightColors\0brightColors\0"
    "dirModel\0Data::SyncthingDirectoryModel*\0"
    "sortFilterDirModel\0Data::SyncthingSortFilterModel*\0"
    "devModel\0Data::SyncthingDeviceModel*\0"
    "sortFilterDevModel\0changesModel\0"
    "Data::SyncthingRecentChangesModel*\0"
    "scanSupported"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QtGui__SyncthingModels[] = {

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

 // methods: name, argc, parameters, tag, flags
       1,    1,   24,    2, 0x02 /* Public */,
       4,    1,   27,    2, 0x02 /* Public */,

 // methods: parameters
    QMetaType::QString, QMetaType::ULongLong,    3,
    QMetaType::Void, QMetaType::Bool,    5,

 // properties: name, type, flags
       6, 0x80000000 | 7, 0x00095409,
       8, 0x80000000 | 9, 0x00095409,
      10, 0x80000000 | 11, 0x00095409,
      12, 0x80000000 | 9, 0x00095409,
      13, 0x80000000 | 14, 0x00095409,
      15, QMetaType::Bool, 0x00095401,

       0        // eod
};

void QtGui::SyncthingModels::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<SyncthingModels *>(_o);
        (void)_t;
        switch (_id) {
        case 0: { QString _r = _t->formatDataSize((*reinterpret_cast< quint64(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 1: _t->setBrightColors((*reinterpret_cast< bool(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 2:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Data::SyncthingDeviceModel* >(); break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Data::SyncthingDirectoryModel* >(); break;
        case 4:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Data::SyncthingRecentChangesModel* >(); break;
        case 3:
        case 1:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Data::SyncthingSortFilterModel* >(); break;
        }
    }

#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<SyncthingModels *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< Data::SyncthingDirectoryModel**>(_v) = _t->dirModel(); break;
        case 1: *reinterpret_cast< Data::SyncthingSortFilterModel**>(_v) = _t->sortFilterDirModel(); break;
        case 2: *reinterpret_cast< Data::SyncthingDeviceModel**>(_v) = _t->devModel(); break;
        case 3: *reinterpret_cast< Data::SyncthingSortFilterModel**>(_v) = _t->sortFilterDevModel(); break;
        case 4: *reinterpret_cast< Data::SyncthingRecentChangesModel**>(_v) = _t->changesModel(); break;
        case 5: *reinterpret_cast< bool*>(_v) = _t->isScanSupported(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject QtGui::SyncthingModels::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_QtGui__SyncthingModels.data,
    qt_meta_data_QtGui__SyncthingModels,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

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