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

#include "GuiBranches.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 'GuiBranches.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.0. 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_ZN3lyx8frontend11GuiBranchesE_t {};
} // unnamed namespace

template <> constexpr inline auto lyx::frontend::GuiBranches::qt_create_metaobjectdata<qt_meta_tag_ZN3lyx8frontend11GuiBranchesE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "lyx::frontend::GuiBranches",
        "changed",
        "",
        "renameBranches",
        "docstring",
        "okPressed",
        "on_newBranchLE_textChanged",
        "on_addBranchPB_pressed",
        "on_removePB_pressed",
        "on_renamePB_pressed",
        "on_activatePB_pressed",
        "on_branchesTW_itemDoubleClicked",
        "QTreeWidgetItem*",
        "on_branchesTW_itemSelectionChanged",
        "on_colorPB_clicked",
        "on_resetColorPB_clicked",
        "on_suffixPB_pressed",
        "on_unknownPB_pressed",
        "addUnknown",
        "addAllUnknown",
        "unknownBranchSelChanged"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'changed'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'renameBranches'
        QtMocHelpers::SignalData<void(docstring const &, docstring const &)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 2 }, { 0x80000000 | 4, 2 },
        }}),
        // Signal 'okPressed'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'on_newBranchLE_textChanged'
        QtMocHelpers::SlotData<void(QString)>(6, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Slot 'on_addBranchPB_pressed'
        QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'on_removePB_pressed'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'on_renamePB_pressed'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'on_activatePB_pressed'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'on_branchesTW_itemDoubleClicked'
        QtMocHelpers::SlotData<void(QTreeWidgetItem *, int)>(11, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 12, 2 }, { QMetaType::Int, 2 },
        }}),
        // Slot 'on_branchesTW_itemSelectionChanged'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'on_colorPB_clicked'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'on_resetColorPB_clicked'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'on_suffixPB_pressed'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'on_unknownPB_pressed'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'addUnknown'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'addAllUnknown'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'unknownBranchSelChanged'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessProtected, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<GuiBranches, qt_meta_tag_ZN3lyx8frontend11GuiBranchesE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject lyx::frontend::GuiBranches::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3lyx8frontend11GuiBranchesE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3lyx8frontend11GuiBranchesE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3lyx8frontend11GuiBranchesE_t>.metaTypes,
    nullptr
} };

void lyx::frontend::GuiBranches::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<GuiBranches *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->changed(); break;
        case 1: _t->renameBranches((*reinterpret_cast<std::add_pointer_t<docstring>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<docstring>>(_a[2]))); break;
        case 2: _t->okPressed(); break;
        case 3: _t->on_newBranchLE_textChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->on_addBranchPB_pressed(); break;
        case 5: _t->on_removePB_pressed(); break;
        case 6: _t->on_renamePB_pressed(); break;
        case 7: _t->on_activatePB_pressed(); break;
        case 8: _t->on_branchesTW_itemDoubleClicked((*reinterpret_cast<std::add_pointer_t<QTreeWidgetItem*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 9: _t->on_branchesTW_itemSelectionChanged(); break;
        case 10: _t->on_colorPB_clicked(); break;
        case 11: _t->on_resetColorPB_clicked(); break;
        case 12: _t->on_suffixPB_pressed(); break;
        case 13: _t->on_unknownPB_pressed(); break;
        case 14: _t->addUnknown(); break;
        case 15: _t->addAllUnknown(); break;
        case 16: _t->unknownBranchSelChanged(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (GuiBranches::*)()>(_a, &GuiBranches::changed, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (GuiBranches::*)(docstring const & , docstring const & )>(_a, &GuiBranches::renameBranches, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (GuiBranches::*)()>(_a, &GuiBranches::okPressed, 2))
            return;
    }
}

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

void *lyx::frontend::GuiBranches::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3lyx8frontend11GuiBranchesE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "Ui::BranchesUi"))
        return static_cast< Ui::BranchesUi*>(this);
    return QWidget::qt_metacast(_clname);
}

int lyx::frontend::GuiBranches::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 17)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 17;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 17)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 17;
    }
    return _id;
}

// SIGNAL 0
void lyx::frontend::GuiBranches::changed()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void lyx::frontend::GuiBranches::renameBranches(docstring const & _t1, docstring const & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void lyx::frontend::GuiBranches::okPressed()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
