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

#include "../../../../src/qtquickcontrols-opensource-src-5.9.4/src/controls/Private/qquicktreemodeladaptor_p.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#include <QtCore/QVector>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qquicktreemodeladaptor_p.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.4. 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_QQuickTreeModelAdaptor1_t {
    QByteArrayData data[47];
    char stringdata0[663];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QQuickTreeModelAdaptor1_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QQuickTreeModelAdaptor1_t qt_meta_stringdata_QQuickTreeModelAdaptor1 = {
    {
QT_MOC_LITERAL(0, 0, 23), // "QQuickTreeModelAdaptor1"
QT_MOC_LITERAL(1, 24, 12), // "modelChanged"
QT_MOC_LITERAL(2, 37, 0), // ""
QT_MOC_LITERAL(3, 38, 19), // "QAbstractItemModel*"
QT_MOC_LITERAL(4, 58, 5), // "model"
QT_MOC_LITERAL(5, 64, 16), // "rootIndexChanged"
QT_MOC_LITERAL(6, 81, 8), // "expanded"
QT_MOC_LITERAL(7, 90, 5), // "index"
QT_MOC_LITERAL(8, 96, 9), // "collapsed"
QT_MOC_LITERAL(9, 106, 6), // "expand"
QT_MOC_LITERAL(10, 113, 8), // "collapse"
QT_MOC_LITERAL(11, 122, 8), // "setModel"
QT_MOC_LITERAL(12, 131, 21), // "modelHasBeenDestroyed"
QT_MOC_LITERAL(13, 153, 17), // "modelHasBeenReset"
QT_MOC_LITERAL(14, 171, 16), // "modelDataChanged"
QT_MOC_LITERAL(15, 188, 7), // "topLeft"
QT_MOC_LITERAL(16, 196, 11), // "bottomRigth"
QT_MOC_LITERAL(17, 208, 12), // "QVector<int>"
QT_MOC_LITERAL(18, 221, 5), // "roles"
QT_MOC_LITERAL(19, 227, 27), // "modelLayoutAboutToBeChanged"
QT_MOC_LITERAL(20, 255, 28), // "QList<QPersistentModelIndex>"
QT_MOC_LITERAL(21, 284, 7), // "parents"
QT_MOC_LITERAL(22, 292, 36), // "QAbstractItemModel::LayoutCha..."
QT_MOC_LITERAL(23, 329, 4), // "hint"
QT_MOC_LITERAL(24, 334, 18), // "modelLayoutChanged"
QT_MOC_LITERAL(25, 353, 26), // "modelRowsAboutToBeInserted"
QT_MOC_LITERAL(26, 380, 6), // "parent"
QT_MOC_LITERAL(27, 387, 5), // "start"
QT_MOC_LITERAL(28, 393, 3), // "end"
QT_MOC_LITERAL(29, 397, 23), // "modelRowsAboutToBeMoved"
QT_MOC_LITERAL(30, 421, 12), // "sourceParent"
QT_MOC_LITERAL(31, 434, 11), // "sourceStart"
QT_MOC_LITERAL(32, 446, 9), // "sourceEnd"
QT_MOC_LITERAL(33, 456, 17), // "destinationParent"
QT_MOC_LITERAL(34, 474, 14), // "destinationRow"
QT_MOC_LITERAL(35, 489, 25), // "modelRowsAboutToBeRemoved"
QT_MOC_LITERAL(36, 515, 17), // "modelRowsInserted"
QT_MOC_LITERAL(37, 533, 14), // "modelRowsMoved"
QT_MOC_LITERAL(38, 548, 16), // "modelRowsRemoved"
QT_MOC_LITERAL(39, 565, 18), // "mapRowToModelIndex"
QT_MOC_LITERAL(40, 584, 3), // "row"
QT_MOC_LITERAL(41, 588, 20), // "selectionForRowRange"
QT_MOC_LITERAL(42, 609, 14), // "QItemSelection"
QT_MOC_LITERAL(43, 624, 9), // "fromIndex"
QT_MOC_LITERAL(44, 634, 7), // "toIndex"
QT_MOC_LITERAL(45, 642, 10), // "isExpanded"
QT_MOC_LITERAL(46, 653, 9) // "rootIndex"

    },
    "QQuickTreeModelAdaptor1\0modelChanged\0"
    "\0QAbstractItemModel*\0model\0rootIndexChanged\0"
    "expanded\0index\0collapsed\0expand\0"
    "collapse\0setModel\0modelHasBeenDestroyed\0"
    "modelHasBeenReset\0modelDataChanged\0"
    "topLeft\0bottomRigth\0QVector<int>\0roles\0"
    "modelLayoutAboutToBeChanged\0"
    "QList<QPersistentModelIndex>\0parents\0"
    "QAbstractItemModel::LayoutChangeHint\0"
    "hint\0modelLayoutChanged\0"
    "modelRowsAboutToBeInserted\0parent\0"
    "start\0end\0modelRowsAboutToBeMoved\0"
    "sourceParent\0sourceStart\0sourceEnd\0"
    "destinationParent\0destinationRow\0"
    "modelRowsAboutToBeRemoved\0modelRowsInserted\0"
    "modelRowsMoved\0modelRowsRemoved\0"
    "mapRowToModelIndex\0row\0selectionForRowRange\0"
    "QItemSelection\0fromIndex\0toIndex\0"
    "isExpanded\0rootIndex"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QQuickTreeModelAdaptor1[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      21,   14, // methods
       2,  218, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,  119,    2, 0x06 /* Public */,
       5,    0,  122,    2, 0x06 /* Public */,
       6,    1,  123,    2, 0x06 /* Public */,
       8,    1,  126,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       9,    1,  129,    2, 0x0a /* Public */,
      10,    1,  132,    2, 0x0a /* Public */,
      11,    1,  135,    2, 0x0a /* Public */,
      12,    0,  138,    2, 0x08 /* Private */,
      13,    0,  139,    2, 0x08 /* Private */,
      14,    3,  140,    2, 0x08 /* Private */,
      19,    2,  147,    2, 0x08 /* Private */,
      24,    2,  152,    2, 0x08 /* Private */,
      25,    3,  157,    2, 0x08 /* Private */,
      29,    5,  164,    2, 0x08 /* Private */,
      35,    3,  175,    2, 0x08 /* Private */,
      36,    3,  182,    2, 0x08 /* Private */,
      37,    5,  189,    2, 0x08 /* Private */,
      38,    3,  200,    2, 0x08 /* Private */,

 // methods: name, argc, parameters, tag, flags
      39,    1,  207,    2, 0x02 /* Public */,
      41,    2,  210,    2, 0x02 /* Public */,
      45,    1,  215,    2, 0x02 /* Public */,

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

 // slots: parameters
    QMetaType::Void, QMetaType::QModelIndex,    2,
    QMetaType::Void, QMetaType::QModelIndex,    2,
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::QModelIndex, 0x80000000 | 17,   15,   16,   18,
    QMetaType::Void, 0x80000000 | 20, 0x80000000 | 22,   21,   23,
    QMetaType::Void, 0x80000000 | 20, 0x80000000 | 22,   21,   23,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int,   26,   27,   28,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int, QMetaType::QModelIndex, QMetaType::Int,   30,   31,   32,   33,   34,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int,   26,   27,   28,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int,   26,   27,   28,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int, QMetaType::QModelIndex, QMetaType::Int,   30,   31,   32,   33,   34,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int,   26,   27,   28,

 // methods: parameters
    QMetaType::QModelIndex, QMetaType::Int,   40,
    0x80000000 | 42, QMetaType::QModelIndex, QMetaType::QModelIndex,   43,   44,
    QMetaType::Bool, QMetaType::QModelIndex,    2,

 // properties: name, type, flags
       4, 0x80000000 | 3, 0x0049510b,
      46, QMetaType::QModelIndex, 0x00495107,

 // properties: notify_signal_id
       0,
       1,

       0        // eod
};

void QQuickTreeModelAdaptor1::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        QQuickTreeModelAdaptor1 *_t = static_cast<QQuickTreeModelAdaptor1 *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->modelChanged((*reinterpret_cast< QAbstractItemModel*(*)>(_a[1]))); break;
        case 1: _t->rootIndexChanged(); 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->expand((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 5: _t->collapse((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 6: _t->setModel((*reinterpret_cast< QAbstractItemModel*(*)>(_a[1]))); break;
        case 7: _t->modelHasBeenDestroyed(); break;
        case 8: _t->modelHasBeenReset(); break;
        case 9: _t->modelDataChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2])),(*reinterpret_cast< const QVector<int>(*)>(_a[3]))); break;
        case 10: _t->modelLayoutAboutToBeChanged((*reinterpret_cast< const QList<QPersistentModelIndex>(*)>(_a[1])),(*reinterpret_cast< QAbstractItemModel::LayoutChangeHint(*)>(_a[2]))); break;
        case 11: _t->modelLayoutChanged((*reinterpret_cast< const QList<QPersistentModelIndex>(*)>(_a[1])),(*reinterpret_cast< QAbstractItemModel::LayoutChangeHint(*)>(_a[2]))); break;
        case 12: _t->modelRowsAboutToBeInserted((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 13: _t->modelRowsAboutToBeMoved((*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]))); break;
        case 14: _t->modelRowsAboutToBeRemoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 15: _t->modelRowsInserted((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 16: _t->modelRowsMoved((*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]))); break;
        case 17: _t->modelRowsRemoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 18: { QModelIndex _r = _t->mapRowToModelIndex((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QModelIndex*>(_a[0]) = std::move(_r); }  break;
        case 19: { QItemSelection _r = _t->selectionForRowRange((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< QItemSelection*>(_a[0]) = std::move(_r); }  break;
        case 20: { bool _r = _t->isExpanded((*reinterpret_cast< const QModelIndex(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  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< QAbstractItemModel* >(); 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< QAbstractItemModel* >(); break;
            }
            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;
        case 10:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<QPersistentModelIndex> >(); 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< QList<QPersistentModelIndex> >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (QQuickTreeModelAdaptor1::*_t)(QAbstractItemModel * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTreeModelAdaptor1::modelChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (QQuickTreeModelAdaptor1::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTreeModelAdaptor1::rootIndexChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (QQuickTreeModelAdaptor1::*_t)(const QModelIndex & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTreeModelAdaptor1::expanded)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (QQuickTreeModelAdaptor1::*_t)(const QModelIndex & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTreeModelAdaptor1::collapsed)) {
                *result = 3;
                return;
            }
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QAbstractItemModel* >(); break;
        }
    }

#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        QQuickTreeModelAdaptor1 *_t = static_cast<QQuickTreeModelAdaptor1 *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QAbstractItemModel**>(_v) = _t->model(); break;
        case 1: *reinterpret_cast< QModelIndex*>(_v) = _t->rootIndex(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        QQuickTreeModelAdaptor1 *_t = static_cast<QQuickTreeModelAdaptor1 *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setModel(*reinterpret_cast< QAbstractItemModel**>(_v)); break;
        case 1: _t->setRootIndex(*reinterpret_cast< QModelIndex*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
        QQuickTreeModelAdaptor1 *_t = static_cast<QQuickTreeModelAdaptor1 *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 1: _t->resetRootIndex(); break;
        default: break;
        }
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject QQuickTreeModelAdaptor1::staticMetaObject = {
    { &QAbstractListModel::staticMetaObject, qt_meta_stringdata_QQuickTreeModelAdaptor1.data,
      qt_meta_data_QQuickTreeModelAdaptor1,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

// SIGNAL 0
void QQuickTreeModelAdaptor1::modelChanged(QAbstractItemModel * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void QQuickTreeModelAdaptor1::rootIndexChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void QQuickTreeModelAdaptor1::expanded(const QModelIndex & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void QQuickTreeModelAdaptor1::collapsed(const QModelIndex & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
