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

#include "../src/qheaderview_hook.h"
#include <QtGui/qtextcursor.h>
#include <QtGui/qscreen.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 'qheaderview_hook.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.2. 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_ZN16QHeaderView_hookE_t {};
} // unnamed namespace

template <> constexpr inline auto QHeaderView_hook::qt_create_metaobjectdata<qt_meta_tag_ZN16QHeaderView_hookE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QHeaderView_hook",
        "sectionMoved_hook",
        "",
        "logicalIndex",
        "oldVisualIndex",
        "newVisualIndex",
        "sectionResized_hook",
        "oldSize",
        "newSize",
        "sectionPressed_hook",
        "sectionClicked_hook",
        "sectionEntered_hook",
        "sectionDoubleClicked_hook",
        "sectionCountChanged_hook",
        "oldCount",
        "newCount",
        "sectionHandleDoubleClicked_hook",
        "geometriesChanged_hook",
        "sortIndicatorChanged_hook",
        "Qt::SortOrder",
        "order"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'sectionMoved_hook'
        QtMocHelpers::SlotData<void(int, int, int)>(1, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::Int, 4 }, { QMetaType::Int, 5 },
        }}),
        // Slot 'sectionResized_hook'
        QtMocHelpers::SlotData<void(int, int, int)>(6, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::Int, 7 }, { QMetaType::Int, 8 },
        }}),
        // Slot 'sectionPressed_hook'
        QtMocHelpers::SlotData<void(int)>(9, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 3 },
        }}),
        // Slot 'sectionClicked_hook'
        QtMocHelpers::SlotData<void(int)>(10, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 3 },
        }}),
        // Slot 'sectionEntered_hook'
        QtMocHelpers::SlotData<void(int)>(11, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 3 },
        }}),
        // Slot 'sectionDoubleClicked_hook'
        QtMocHelpers::SlotData<void(int)>(12, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 3 },
        }}),
        // Slot 'sectionCountChanged_hook'
        QtMocHelpers::SlotData<void(int, int)>(13, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 14 }, { QMetaType::Int, 15 },
        }}),
        // Slot 'sectionHandleDoubleClicked_hook'
        QtMocHelpers::SlotData<void(int)>(16, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 3 },
        }}),
        // Slot 'geometriesChanged_hook'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'sortIndicatorChanged_hook'
        QtMocHelpers::SlotData<void(int, Qt::SortOrder)>(18, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { 0x80000000 | 19, 20 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<QHeaderView_hook, qt_meta_tag_ZN16QHeaderView_hookE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QHeaderView_hook::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractItemView_hook::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16QHeaderView_hookE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16QHeaderView_hookE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN16QHeaderView_hookE_t>.metaTypes,
    nullptr
} };

void QHeaderView_hook::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QHeaderView_hook *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->sectionMoved_hook((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 1: _t->sectionResized_hook((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 2: _t->sectionPressed_hook((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 3: _t->sectionClicked_hook((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 4: _t->sectionEntered_hook((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 5: _t->sectionDoubleClicked_hook((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 6: _t->sectionCountChanged_hook((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 7: _t->sectionHandleDoubleClicked_hook((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 8: _t->geometriesChanged_hook(); break;
        case 9: _t->sortIndicatorChanged_hook((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Qt::SortOrder>>(_a[2]))); break;
        default: ;
        }
    }
}

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

void *QHeaderView_hook::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16QHeaderView_hookE_t>.strings))
        return static_cast<void*>(this);
    return QAbstractItemView_hook::qt_metacast(_clname);
}

int QHeaderView_hook::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractItemView_hook::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 10)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 10;
    }
    return _id;
}
QT_WARNING_POP
