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

#include "edit_dialog.hh"
#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 'edit_dialog.hh' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 68
#error "This file was generated using the moc from 6.8.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_ZN10EditDialogE_t {};
} // unnamed namespace


#ifdef QT_MOC_HAS_STRINGDATA
static constexpr auto qt_meta_stringdata_ZN10EditDialogE = QtMocHelpers::stringData(
    "EditDialog",
    "select_categories",
    "",
    "select_ingredient",
    "QModelIndex",
    "current",
    "previous",
    "unit_changed",
    "idx",
    "ingredient_name_changed",
    "text",
    "amount_type_changed",
    "value",
    "amount_int_changed",
    "amount_float_changed",
    "add_ingredient",
    "delete_ingredient",
    "ingredient_section_changed",
    "add_ingredient_section",
    "move_ingredient_up",
    "move_ingredient_down",
    "select_instruction",
    "section_changed",
    "add_instruction_section",
    "remove_instruction_section",
    "instructions_text_changed",
    "update_ok_button",
    "unit_converter"
);
#else  // !QT_MOC_HAS_STRINGDATA
#error "qtmochelpers.h not found or too old."
#endif // !QT_MOC_HAS_STRINGDATA

Q_CONSTINIT static const uint qt_meta_data_ZN10EditDialogE[] = {

 // content:
      12,       // revision
       0,       // classname
       0,    0, // classinfo
      20,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // slots: name, argc, parameters, tag, flags, initial metatype offsets
       1,    0,  134,    2, 0x0a,    1 /* Public */,
       3,    2,  135,    2, 0x0a,    2 /* Public */,
       7,    1,  140,    2, 0x0a,    5 /* Public */,
       9,    1,  143,    2, 0x0a,    7 /* Public */,
      11,    1,  146,    2, 0x0a,    9 /* Public */,
      13,    1,  149,    2, 0x0a,   11 /* Public */,
      14,    1,  152,    2, 0x0a,   13 /* Public */,
      15,    0,  155,    2, 0x0a,   15 /* Public */,
      16,    0,  156,    2, 0x0a,   16 /* Public */,
      17,    1,  157,    2, 0x0a,   17 /* Public */,
      18,    0,  160,    2, 0x0a,   19 /* Public */,
      19,    0,  161,    2, 0x0a,   20 /* Public */,
      20,    0,  162,    2, 0x0a,   21 /* Public */,
      21,    2,  163,    2, 0x0a,   22 /* Public */,
      22,    1,  168,    2, 0x0a,   25 /* Public */,
      23,    0,  171,    2, 0x0a,   27 /* Public */,
      24,    0,  172,    2, 0x0a,   28 /* Public */,
      25,    0,  173,    2, 0x0a,   29 /* Public */,
      26,    0,  174,    2, 0x0a,   30 /* Public */,
      27,    0,  175,    2, 0x0a,   31 /* Public */,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 4, 0x80000000 | 4,    5,    6,
    QMetaType::Void, QMetaType::Int,    8,
    QMetaType::Void, QMetaType::QString,   10,
    QMetaType::Void, QMetaType::Int,   12,
    QMetaType::Void, QMetaType::Int,   12,
    QMetaType::Void, QMetaType::Double,   12,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,   10,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 4, 0x80000000 | 4,    5,    6,
    QMetaType::Void, QMetaType::QString,   10,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

Q_CONSTINIT const QMetaObject EditDialog::staticMetaObject = { {
    QMetaObject::SuperData::link<QDialog::staticMetaObject>(),
    qt_meta_stringdata_ZN10EditDialogE.offsetsAndSizes,
    qt_meta_data_ZN10EditDialogE,
    qt_static_metacall,
    nullptr,
    qt_incomplete_metaTypeArray<qt_meta_tag_ZN10EditDialogE_t,
        // Q_OBJECT / Q_GADGET
        QtPrivate::TypeAndForceComplete<EditDialog, std::true_type>,
        // method 'select_categories'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'select_ingredient'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>,
        // method 'unit_changed'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<int, std::false_type>,
        // method 'ingredient_name_changed'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
        // method 'amount_type_changed'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<int, std::false_type>,
        // method 'amount_int_changed'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<int, std::false_type>,
        // method 'amount_float_changed'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<double, std::false_type>,
        // method 'add_ingredient'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'delete_ingredient'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'ingredient_section_changed'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
        // method 'add_ingredient_section'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'move_ingredient_up'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'move_ingredient_down'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'select_instruction'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>,
        // method 'section_changed'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
        // method 'add_instruction_section'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'remove_instruction_section'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'instructions_text_changed'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'update_ok_button'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'unit_converter'
        QtPrivate::TypeAndForceComplete<void, std::false_type>
    >,
    nullptr
} };

void EditDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<EditDialog *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->select_categories(); break;
        case 1: _t->select_ingredient((*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[2]))); break;
        case 2: _t->unit_changed((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
        case 3: _t->ingredient_name_changed((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->amount_type_changed((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
        case 5: _t->amount_int_changed((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
        case 6: _t->amount_float_changed((*reinterpret_cast< std::add_pointer_t<double>>(_a[1]))); break;
        case 7: _t->add_ingredient(); break;
        case 8: _t->delete_ingredient(); break;
        case 9: _t->ingredient_section_changed((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
        case 10: _t->add_ingredient_section(); break;
        case 11: _t->move_ingredient_up(); break;
        case 12: _t->move_ingredient_down(); break;
        case 13: _t->select_instruction((*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[2]))); break;
        case 14: _t->section_changed((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
        case 15: _t->add_instruction_section(); break;
        case 16: _t->remove_instruction_section(); break;
        case 17: _t->instructions_text_changed(); break;
        case 18: _t->update_ok_button(); break;
        case 19: _t->unit_converter(); break;
        default: ;
        }
    }
}

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

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

int EditDialog::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 < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 20)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 20;
    }
    return _id;
}
QT_WARNING_POP
