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

#include "../../../goldendict-ng-26.5.7/src/ui/dictheadwords.hh"
#include <QtGui/qtextcursor.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 'dictheadwords.hh' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. 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_ZN13DictHeadwordsE_t {};
} // unnamed namespace

template <> constexpr inline auto DictHeadwords::qt_create_metaobjectdata<qt_meta_tag_ZN13DictHeadwordsE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "DictHeadwords",
        "headwordSelected",
        "",
        "closeDialog",
        "savePos",
        "filterChangedInternal",
        "getFilterRegex",
        "filterChanged",
        "exportButtonClicked",
        "okButtonClicked",
        "itemClicked",
        "QModelIndex",
        "index",
        "autoApplyStateChanged",
        "state",
        "showHeadwordsNumber",
        "exportAllWords",
        "QProgressDialog&",
        "progress",
        "QTextStream&",
        "out",
        "loadRegex",
        "reject"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'headwordSelected'
        QtMocHelpers::SignalData<void(const QString &, const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 }, { QMetaType::QString, 2 },
        }}),
        // Signal 'closeDialog'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'savePos'
        QtMocHelpers::SlotData<void()>(4, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'filterChangedInternal'
        QtMocHelpers::SlotData<void()>(5, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'getFilterRegex'
        QtMocHelpers::SlotData<QRegularExpression() const>(6, 2, QMC::AccessPrivate, QMetaType::QRegularExpression),
        // Slot 'filterChanged'
        QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'exportButtonClicked'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'okButtonClicked'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'itemClicked'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(10, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Slot 'autoApplyStateChanged'
        QtMocHelpers::SlotData<void(int)>(13, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 14 },
        }}),
        // Slot 'showHeadwordsNumber'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'exportAllWords'
        QtMocHelpers::SlotData<void(QProgressDialog &, QTextStream &)>(16, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 17, 18 }, { 0x80000000 | 19, 20 },
        }}),
        // Slot 'loadRegex'
        QtMocHelpers::SlotData<void(QProgressDialog &, QTextStream &)>(21, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 17, 18 }, { 0x80000000 | 19, 20 },
        }}),
        // Slot 'reject'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<DictHeadwords, qt_meta_tag_ZN13DictHeadwordsE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject DictHeadwords::staticMetaObject = { {
    QMetaObject::SuperData::link<QDialog::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13DictHeadwordsE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13DictHeadwordsE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13DictHeadwordsE_t>.metaTypes,
    nullptr
} };

void DictHeadwords::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DictHeadwords *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->headwordSelected((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 1: _t->closeDialog(); break;
        case 2: _t->savePos(); break;
        case 3: _t->filterChangedInternal(); break;
        case 4: { QRegularExpression _r = _t->getFilterRegex();
            if (_a[0]) *reinterpret_cast<QRegularExpression*>(_a[0]) = std::move(_r); }  break;
        case 5: _t->filterChanged(); break;
        case 6: _t->exportButtonClicked(); break;
        case 7: _t->okButtonClicked(); break;
        case 8: _t->itemClicked((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 9: _t->autoApplyStateChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 10: _t->showHeadwordsNumber(); break;
        case 11: _t->exportAllWords((*reinterpret_cast<std::add_pointer_t<QProgressDialog&>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QTextStream&>>(_a[2]))); break;
        case 12: _t->loadRegex((*reinterpret_cast<std::add_pointer_t<QProgressDialog&>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QTextStream&>>(_a[2]))); break;
        case 13: _t->reject(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (DictHeadwords::*)(const QString & , const QString & )>(_a, &DictHeadwords::headwordSelected, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (DictHeadwords::*)()>(_a, &DictHeadwords::closeDialog, 1))
            return;
    }
}

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

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

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

// SIGNAL 0
void DictHeadwords::headwordSelected(const QString & _t1, const QString & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void DictHeadwords::closeDialog()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
