/****************************************************************************
** Meta object code from reading C++ file 'dbtreemodel.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 "../../../SQLiteStudio3/guiSQLiteStudio/dbtree/dbtreemodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'dbtreemodel.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_DbTreeModel_t {
    QByteArrayData data[36];
    char stringdata0[413];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_DbTreeModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_DbTreeModel_t qt_meta_stringdata_DbTreeModel = {
    {
QT_MOC_LITERAL(0, 0, 11), // "DbTreeModel"
QT_MOC_LITERAL(1, 12, 16), // "updateItemHidden"
QT_MOC_LITERAL(2, 29, 0), // ""
QT_MOC_LITERAL(3, 30, 11), // "DbTreeItem*"
QT_MOC_LITERAL(4, 42, 4), // "item"
QT_MOC_LITERAL(5, 47, 20), // "filteringInterrupted"
QT_MOC_LITERAL(6, 68, 8), // "expanded"
QT_MOC_LITERAL(7, 77, 11), // "QModelIndex"
QT_MOC_LITERAL(8, 89, 5), // "index"
QT_MOC_LITERAL(9, 95, 9), // "collapsed"
QT_MOC_LITERAL(10, 105, 7), // "dbAdded"
QT_MOC_LITERAL(11, 113, 3), // "Db*"
QT_MOC_LITERAL(12, 117, 2), // "db"
QT_MOC_LITERAL(13, 120, 9), // "dbUpdated"
QT_MOC_LITERAL(14, 130, 7), // "oldName"
QT_MOC_LITERAL(15, 138, 9), // "dbRemoved"
QT_MOC_LITERAL(16, 148, 11), // "dbConnected"
QT_MOC_LITERAL(17, 160, 10), // "expandItem"
QT_MOC_LITERAL(18, 171, 14), // "dbDisconnected"
QT_MOC_LITERAL(19, 186, 10), // "dbUnloaded"
QT_MOC_LITERAL(20, 197, 8), // "dbLoaded"
QT_MOC_LITERAL(21, 206, 14), // "massSaveBegins"
QT_MOC_LITERAL(22, 221, 17), // "massSaveCommitted"
QT_MOC_LITERAL(23, 239, 27), // "markSchemaReloadingRequired"
QT_MOC_LITERAL(24, 267, 21), // "dbObjectsMoveFinished"
QT_MOC_LITERAL(25, 289, 7), // "success"
QT_MOC_LITERAL(26, 297, 5), // "srcDb"
QT_MOC_LITERAL(27, 303, 5), // "dstDb"
QT_MOC_LITERAL(28, 309, 21), // "dbObjectsCopyFinished"
QT_MOC_LITERAL(29, 331, 10), // "loadDbList"
QT_MOC_LITERAL(30, 342, 21), // "itemChangedVisibility"
QT_MOC_LITERAL(31, 364, 11), // "applyFilter"
QT_MOC_LITERAL(32, 376, 6), // "filter"
QT_MOC_LITERAL(33, 383, 4), // "name"
QT_MOC_LITERAL(34, 388, 14), // "QStandardItem*"
QT_MOC_LITERAL(35, 403, 9) // "interrupt"

    },
    "DbTreeModel\0updateItemHidden\0\0DbTreeItem*\0"
    "item\0filteringInterrupted\0expanded\0"
    "QModelIndex\0index\0collapsed\0dbAdded\0"
    "Db*\0db\0dbUpdated\0oldName\0dbRemoved\0"
    "dbConnected\0expandItem\0dbDisconnected\0"
    "dbUnloaded\0dbLoaded\0massSaveBegins\0"
    "massSaveCommitted\0markSchemaReloadingRequired\0"
    "dbObjectsMoveFinished\0success\0srcDb\0"
    "dstDb\0dbObjectsCopyFinished\0loadDbList\0"
    "itemChangedVisibility\0applyFilter\0"
    "filter\0name\0QStandardItem*\0interrupt"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_DbTreeModel[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,  129,    2, 0x06 /* Public */,
       5,    0,  132,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    1,  133,    2, 0x08 /* Private */,
       9,    1,  136,    2, 0x08 /* Private */,
      10,    1,  139,    2, 0x08 /* Private */,
      13,    2,  142,    2, 0x08 /* Private */,
      15,    1,  147,    2, 0x08 /* Private */,
      16,    2,  150,    2, 0x08 /* Private */,
      16,    1,  155,    2, 0x28 /* Private | MethodCloned */,
      18,    1,  158,    2, 0x08 /* Private */,
      19,    1,  161,    2, 0x08 /* Private */,
      20,    1,  164,    2, 0x08 /* Private */,
      21,    0,  167,    2, 0x08 /* Private */,
      22,    0,  168,    2, 0x08 /* Private */,
      23,    0,  169,    2, 0x08 /* Private */,
      24,    3,  170,    2, 0x08 /* Private */,
      28,    3,  177,    2, 0x08 /* Private */,
      29,    0,  184,    2, 0x0a /* Public */,
      30,    1,  185,    2, 0x0a /* Public */,
      31,    1,  188,    2, 0x0a /* Public */,
      15,    1,  191,    2, 0x0a /* Public */,
      15,    1,  194,    2, 0x0a /* Public */,
      35,    0,  197,    2, 0x0a /* Public */,

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

 // slots: parameters
    QMetaType::Void, 0x80000000 | 7,    8,
    QMetaType::Void, 0x80000000 | 7,    8,
    QMetaType::Void, 0x80000000 | 11,   12,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 11,   14,   12,
    QMetaType::Void, 0x80000000 | 11,   12,
    QMetaType::Void, 0x80000000 | 11, QMetaType::Bool,   12,   17,
    QMetaType::Void, 0x80000000 | 11,   12,
    QMetaType::Void, 0x80000000 | 11,   12,
    QMetaType::Void, 0x80000000 | 11,   12,
    QMetaType::Void, 0x80000000 | 11,   12,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool, 0x80000000 | 11, 0x80000000 | 11,   25,   26,   27,
    QMetaType::Void, QMetaType::Bool, 0x80000000 | 11, 0x80000000 | 11,   25,   26,   27,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, QMetaType::QString,   32,
    QMetaType::Void, QMetaType::QString,   33,
    QMetaType::Void, 0x80000000 | 34,    4,
    QMetaType::Void,

       0        // eod
};

void DbTreeModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<DbTreeModel *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->updateItemHidden((*reinterpret_cast< DbTreeItem*(*)>(_a[1]))); break;
        case 1: _t->filteringInterrupted(); break;
        case 2: _t->expanded((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 3: _t->collapsed((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 4: _t->dbAdded((*reinterpret_cast< Db*(*)>(_a[1]))); break;
        case 5: _t->dbUpdated((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< Db*(*)>(_a[2]))); break;
        case 6: _t->dbRemoved((*reinterpret_cast< Db*(*)>(_a[1]))); break;
        case 7: _t->dbConnected((*reinterpret_cast< Db*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 8: _t->dbConnected((*reinterpret_cast< Db*(*)>(_a[1]))); break;
        case 9: _t->dbDisconnected((*reinterpret_cast< Db*(*)>(_a[1]))); break;
        case 10: _t->dbUnloaded((*reinterpret_cast< Db*(*)>(_a[1]))); break;
        case 11: _t->dbLoaded((*reinterpret_cast< Db*(*)>(_a[1]))); break;
        case 12: _t->massSaveBegins(); break;
        case 13: _t->massSaveCommitted(); break;
        case 14: _t->markSchemaReloadingRequired(); break;
        case 15: _t->dbObjectsMoveFinished((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< Db*(*)>(_a[2])),(*reinterpret_cast< Db*(*)>(_a[3]))); break;
        case 16: _t->dbObjectsCopyFinished((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< Db*(*)>(_a[2])),(*reinterpret_cast< Db*(*)>(_a[3]))); break;
        case 17: _t->loadDbList(); break;
        case 18: _t->itemChangedVisibility((*reinterpret_cast< DbTreeItem*(*)>(_a[1]))); break;
        case 19: _t->applyFilter((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 20: _t->dbRemoved((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 21: _t->dbRemoved((*reinterpret_cast< QStandardItem*(*)>(_a[1]))); break;
        case 22: _t->interrupt(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< DbTreeItem* >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Db* >(); break;
            }
            break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Db* >(); break;
            }
            break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Db* >(); break;
            }
            break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Db* >(); break;
            }
            break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Db* >(); break;
            }
            break;
        case 9:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Db* >(); break;
            }
            break;
        case 10:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Db* >(); break;
            }
            break;
        case 11:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Db* >(); break;
            }
            break;
        case 15:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 2:
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Db* >(); break;
            }
            break;
        case 16:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 2:
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Db* >(); break;
            }
            break;
        case 18:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< DbTreeItem* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (DbTreeModel::*)(DbTreeItem * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DbTreeModel::updateItemHidden)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (DbTreeModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DbTreeModel::filteringInterrupted)) {
                *result = 1;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject DbTreeModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QStandardItemModel::staticMetaObject>(),
    qt_meta_stringdata_DbTreeModel.data,
    qt_meta_data_DbTreeModel,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int DbTreeModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QStandardItemModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 23)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 23;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 23)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 23;
    }
    return _id;
}

// SIGNAL 0
void DbTreeModel::updateItemHidden(DbTreeItem * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void DbTreeModel::filteringInterrupted()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
