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

#include <memory>
#include "../itemviews/qtreeview.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qtreeview.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.19. 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_QTreeView_t {
    QByteArrayData data[48];
    char stringdata0[599];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QTreeView_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QTreeView_t qt_meta_stringdata_QTreeView = {
    {
QT_MOC_LITERAL(0, 0, 9), // "QTreeView"
QT_MOC_LITERAL(1, 10, 8), // "expanded"
QT_MOC_LITERAL(2, 19, 0), // ""
QT_MOC_LITERAL(3, 20, 11), // "QModelIndex"
QT_MOC_LITERAL(4, 32, 5), // "index"
QT_MOC_LITERAL(5, 38, 9), // "collapsed"
QT_MOC_LITERAL(6, 48, 10), // "hideColumn"
QT_MOC_LITERAL(7, 59, 6), // "column"
QT_MOC_LITERAL(8, 66, 10), // "showColumn"
QT_MOC_LITERAL(9, 77, 6), // "expand"
QT_MOC_LITERAL(10, 84, 8), // "collapse"
QT_MOC_LITERAL(11, 93, 22), // "resizeColumnToContents"
QT_MOC_LITERAL(12, 116, 12), // "sortByColumn"
QT_MOC_LITERAL(13, 129, 13), // "Qt::SortOrder"
QT_MOC_LITERAL(14, 143, 5), // "order"
QT_MOC_LITERAL(15, 149, 9), // "expandAll"
QT_MOC_LITERAL(16, 159, 17), // "expandRecursively"
QT_MOC_LITERAL(17, 177, 5), // "depth"
QT_MOC_LITERAL(18, 183, 11), // "collapseAll"
QT_MOC_LITERAL(19, 195, 13), // "expandToDepth"
QT_MOC_LITERAL(20, 209, 13), // "columnResized"
QT_MOC_LITERAL(21, 223, 7), // "oldSize"
QT_MOC_LITERAL(22, 231, 7), // "newSize"
QT_MOC_LITERAL(23, 239, 18), // "columnCountChanged"
QT_MOC_LITERAL(24, 258, 8), // "oldCount"
QT_MOC_LITERAL(25, 267, 8), // "newCount"
QT_MOC_LITERAL(26, 276, 11), // "columnMoved"
QT_MOC_LITERAL(27, 288, 8), // "reexpand"
QT_MOC_LITERAL(28, 297, 11), // "rowsRemoved"
QT_MOC_LITERAL(29, 309, 6), // "parent"
QT_MOC_LITERAL(30, 316, 5), // "first"
QT_MOC_LITERAL(31, 322, 4), // "last"
QT_MOC_LITERAL(32, 327, 29), // "verticalScrollbarValueChanged"
QT_MOC_LITERAL(33, 357, 5), // "value"
QT_MOC_LITERAL(34, 363, 23), // "_q_endAnimatedOperation"
QT_MOC_LITERAL(35, 387, 22), // "_q_modelAboutToBeReset"
QT_MOC_LITERAL(36, 410, 23), // "_q_sortIndicatorChanged"
QT_MOC_LITERAL(37, 434, 15), // "autoExpandDelay"
QT_MOC_LITERAL(38, 450, 11), // "indentation"
QT_MOC_LITERAL(39, 462, 15), // "rootIsDecorated"
QT_MOC_LITERAL(40, 478, 17), // "uniformRowHeights"
QT_MOC_LITERAL(41, 496, 15), // "itemsExpandable"
QT_MOC_LITERAL(42, 512, 14), // "sortingEnabled"
QT_MOC_LITERAL(43, 527, 8), // "animated"
QT_MOC_LITERAL(44, 536, 19), // "allColumnsShowFocus"
QT_MOC_LITERAL(45, 556, 8), // "wordWrap"
QT_MOC_LITERAL(46, 565, 12), // "headerHidden"
QT_MOC_LITERAL(47, 578, 20) // "expandsOnDoubleClick"

    },
    "QTreeView\0expanded\0\0QModelIndex\0index\0"
    "collapsed\0hideColumn\0column\0showColumn\0"
    "expand\0collapse\0resizeColumnToContents\0"
    "sortByColumn\0Qt::SortOrder\0order\0"
    "expandAll\0expandRecursively\0depth\0"
    "collapseAll\0expandToDepth\0columnResized\0"
    "oldSize\0newSize\0columnCountChanged\0"
    "oldCount\0newCount\0columnMoved\0reexpand\0"
    "rowsRemoved\0parent\0first\0last\0"
    "verticalScrollbarValueChanged\0value\0"
    "_q_endAnimatedOperation\0_q_modelAboutToBeReset\0"
    "_q_sortIndicatorChanged\0autoExpandDelay\0"
    "indentation\0rootIsDecorated\0"
    "uniformRowHeights\0itemsExpandable\0"
    "sortingEnabled\0animated\0allColumnsShowFocus\0"
    "wordWrap\0headerHidden\0expandsOnDoubleClick"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QTreeView[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      23,   14, // methods
      11,  202, // 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,    1,  132,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    1,  135,    2, 0x0a /* Public */,
       8,    1,  138,    2, 0x0a /* Public */,
       9,    1,  141,    2, 0x0a /* Public */,
      10,    1,  144,    2, 0x0a /* Public */,
      11,    1,  147,    2, 0x0a /* Public */,
      12,    1,  150,    2, 0x0a /* Public */,
      12,    2,  153,    2, 0x0a /* Public */,
      15,    0,  158,    2, 0x0a /* Public */,
      16,    2,  159,    2, 0x0a /* Public */,
      16,    1,  164,    2, 0x2a /* Public | MethodCloned */,
      18,    0,  167,    2, 0x0a /* Public */,
      19,    1,  168,    2, 0x0a /* Public */,
      20,    3,  171,    2, 0x09 /* Protected */,
      23,    2,  178,    2, 0x09 /* Protected */,
      26,    0,  183,    2, 0x09 /* Protected */,
      27,    0,  184,    2, 0x09 /* Protected */,
      28,    3,  185,    2, 0x09 /* Protected */,
      32,    1,  192,    2, 0x09 /* Protected */,
      34,    0,  195,    2, 0x08 /* Private */,
      35,    0,  196,    2, 0x08 /* Private */,
      36,    2,  197,    2, 0x08 /* Private */,

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

 // slots: parameters
    QMetaType::Void, QMetaType::Int,    7,
    QMetaType::Void, QMetaType::Int,    7,
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, QMetaType::Int,    7,
    QMetaType::Void, QMetaType::Int,    7,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 13,    7,   14,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 3, QMetaType::Int,    4,   17,
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,   17,
    QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int,    7,   21,   22,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   24,   25,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 3, QMetaType::Int, QMetaType::Int,   29,   30,   31,
    QMetaType::Void, QMetaType::Int,   33,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 13,    7,   14,

 // properties: name, type, flags
      37, QMetaType::Int, 0x00095103,
      38, QMetaType::Int, 0x00095107,
      39, QMetaType::Bool, 0x00095103,
      40, QMetaType::Bool, 0x00095103,
      41, QMetaType::Bool, 0x00095103,
      42, QMetaType::Bool, 0x00095103,
      43, QMetaType::Bool, 0x00095103,
      44, QMetaType::Bool, 0x00095103,
      45, QMetaType::Bool, 0x00095103,
      46, QMetaType::Bool, 0x00095103,
      47, QMetaType::Bool, 0x00095103,

       0        // eod
};

void QTreeView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<QTreeView *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->expanded((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 1: _t->collapsed((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 2: _t->hideColumn((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 3: _t->showColumn((*reinterpret_cast< int(*)>(_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->resizeColumnToContents((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 7: _t->sortByColumn((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 8: _t->sortByColumn((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< Qt::SortOrder(*)>(_a[2]))); break;
        case 9: _t->expandAll(); break;
        case 10: _t->expandRecursively((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 11: _t->expandRecursively((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 12: _t->collapseAll(); break;
        case 13: _t->expandToDepth((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 14: _t->columnResized((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 15: _t->columnCountChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 16: _t->columnMoved(); break;
        case 17: _t->reexpand(); break;
        case 18: _t->rowsRemoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 19: _t->verticalScrollbarValueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 20: _t->d_func()->_q_endAnimatedOperation(); break;
        case 21: _t->d_func()->_q_modelAboutToBeReset(); break;
        case 22: _t->d_func()->_q_sortIndicatorChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< Qt::SortOrder(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (QTreeView::*)(const QModelIndex & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTreeView::expanded)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (QTreeView::*)(const QModelIndex & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTreeView::collapsed)) {
                *result = 1;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<QTreeView *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = _t->autoExpandDelay(); break;
        case 1: *reinterpret_cast< int*>(_v) = _t->indentation(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->rootIsDecorated(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->uniformRowHeights(); break;
        case 4: *reinterpret_cast< bool*>(_v) = _t->itemsExpandable(); break;
        case 5: *reinterpret_cast< bool*>(_v) = _t->isSortingEnabled(); break;
        case 6: *reinterpret_cast< bool*>(_v) = _t->isAnimated(); break;
        case 7: *reinterpret_cast< bool*>(_v) = _t->allColumnsShowFocus(); break;
        case 8: *reinterpret_cast< bool*>(_v) = _t->wordWrap(); break;
        case 9: *reinterpret_cast< bool*>(_v) = _t->isHeaderHidden(); break;
        case 10: *reinterpret_cast< bool*>(_v) = _t->expandsOnDoubleClick(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<QTreeView *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setAutoExpandDelay(*reinterpret_cast< int*>(_v)); break;
        case 1: _t->setIndentation(*reinterpret_cast< int*>(_v)); break;
        case 2: _t->setRootIsDecorated(*reinterpret_cast< bool*>(_v)); break;
        case 3: _t->setUniformRowHeights(*reinterpret_cast< bool*>(_v)); break;
        case 4: _t->setItemsExpandable(*reinterpret_cast< bool*>(_v)); break;
        case 5: _t->setSortingEnabled(*reinterpret_cast< bool*>(_v)); break;
        case 6: _t->setAnimated(*reinterpret_cast< bool*>(_v)); break;
        case 7: _t->setAllColumnsShowFocus(*reinterpret_cast< bool*>(_v)); break;
        case 8: _t->setWordWrap(*reinterpret_cast< bool*>(_v)); break;
        case 9: _t->setHeaderHidden(*reinterpret_cast< bool*>(_v)); break;
        case 10: _t->setExpandsOnDoubleClick(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
        QTreeView *_t = static_cast<QTreeView *>(_o);
        (void)_t;
        switch (_id) {
        case 1: _t->resetIndentation(); break;
        default: break;
        }
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject QTreeView::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractItemView::staticMetaObject>(),
    qt_meta_stringdata_QTreeView.data,
    qt_meta_data_QTreeView,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int QTreeView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractItemView::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)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 23;
    }
#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 -= 11;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 11;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

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

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