/****************************************************************************
** Meta object code from reading C++ file 'qdialogbuttonbox.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 "../widgets/qdialogbuttonbox.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qdialogbuttonbox.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_QDialogButtonBox_t {
    QByteArrayData data[35];
    char stringdata0[346];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QDialogButtonBox_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QDialogButtonBox_t qt_meta_stringdata_QDialogButtonBox = {
    {
QT_MOC_LITERAL(0, 0, 16), // "QDialogButtonBox"
QT_MOC_LITERAL(1, 17, 7), // "clicked"
QT_MOC_LITERAL(2, 25, 0), // ""
QT_MOC_LITERAL(3, 26, 16), // "QAbstractButton*"
QT_MOC_LITERAL(4, 43, 6), // "button"
QT_MOC_LITERAL(5, 50, 8), // "accepted"
QT_MOC_LITERAL(6, 59, 13), // "helpRequested"
QT_MOC_LITERAL(7, 73, 8), // "rejected"
QT_MOC_LITERAL(8, 82, 22), // "_q_handleButtonClicked"
QT_MOC_LITERAL(9, 105, 24), // "_q_handleButtonDestroyed"
QT_MOC_LITERAL(10, 130, 11), // "orientation"
QT_MOC_LITERAL(11, 142, 15), // "Qt::Orientation"
QT_MOC_LITERAL(12, 158, 15), // "standardButtons"
QT_MOC_LITERAL(13, 174, 15), // "StandardButtons"
QT_MOC_LITERAL(14, 190, 13), // "centerButtons"
QT_MOC_LITERAL(15, 204, 14), // "StandardButton"
QT_MOC_LITERAL(16, 219, 8), // "NoButton"
QT_MOC_LITERAL(17, 228, 2), // "Ok"
QT_MOC_LITERAL(18, 231, 4), // "Save"
QT_MOC_LITERAL(19, 236, 7), // "SaveAll"
QT_MOC_LITERAL(20, 244, 4), // "Open"
QT_MOC_LITERAL(21, 249, 3), // "Yes"
QT_MOC_LITERAL(22, 253, 8), // "YesToAll"
QT_MOC_LITERAL(23, 262, 2), // "No"
QT_MOC_LITERAL(24, 265, 7), // "NoToAll"
QT_MOC_LITERAL(25, 273, 5), // "Abort"
QT_MOC_LITERAL(26, 279, 5), // "Retry"
QT_MOC_LITERAL(27, 285, 6), // "Ignore"
QT_MOC_LITERAL(28, 292, 5), // "Close"
QT_MOC_LITERAL(29, 298, 6), // "Cancel"
QT_MOC_LITERAL(30, 305, 7), // "Discard"
QT_MOC_LITERAL(31, 313, 4), // "Help"
QT_MOC_LITERAL(32, 318, 5), // "Apply"
QT_MOC_LITERAL(33, 324, 5), // "Reset"
QT_MOC_LITERAL(34, 330, 15) // "RestoreDefaults"

    },
    "QDialogButtonBox\0clicked\0\0QAbstractButton*\0"
    "button\0accepted\0helpRequested\0rejected\0"
    "_q_handleButtonClicked\0_q_handleButtonDestroyed\0"
    "orientation\0Qt::Orientation\0standardButtons\0"
    "StandardButtons\0centerButtons\0"
    "StandardButton\0NoButton\0Ok\0Save\0SaveAll\0"
    "Open\0Yes\0YesToAll\0No\0NoToAll\0Abort\0"
    "Retry\0Ignore\0Close\0Cancel\0Discard\0"
    "Help\0Apply\0Reset\0RestoreDefaults"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QDialogButtonBox[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
       6,   14, // methods
       3,   52, // properties
       1,   61, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   44,    2, 0x06 /* Public */,
       5,    0,   47,    2, 0x06 /* Public */,
       6,    0,   48,    2, 0x06 /* Public */,
       7,    0,   49,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       8,    0,   50,    2, 0x08 /* Private */,
       9,    0,   51,    2, 0x08 /* Private */,

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

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,

 // properties: name, type, flags
      10, 0x80000000 | 11, 0x0009510b,
      12, 0x80000000 | 13, 0x0009510b,
      14, QMetaType::Bool, 0x00095103,

 // enums: name, alias, flags, count, data
      13,   15, 0x1,   19,   66,

 // enum data: key, value
      16, uint(QDialogButtonBox::NoButton),
      17, uint(QDialogButtonBox::Ok),
      18, uint(QDialogButtonBox::Save),
      19, uint(QDialogButtonBox::SaveAll),
      20, uint(QDialogButtonBox::Open),
      21, uint(QDialogButtonBox::Yes),
      22, uint(QDialogButtonBox::YesToAll),
      23, uint(QDialogButtonBox::No),
      24, uint(QDialogButtonBox::NoToAll),
      25, uint(QDialogButtonBox::Abort),
      26, uint(QDialogButtonBox::Retry),
      27, uint(QDialogButtonBox::Ignore),
      28, uint(QDialogButtonBox::Close),
      29, uint(QDialogButtonBox::Cancel),
      30, uint(QDialogButtonBox::Discard),
      31, uint(QDialogButtonBox::Help),
      32, uint(QDialogButtonBox::Apply),
      33, uint(QDialogButtonBox::Reset),
      34, uint(QDialogButtonBox::RestoreDefaults),

       0        // eod
};

void QDialogButtonBox::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<QDialogButtonBox *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->clicked((*reinterpret_cast< QAbstractButton*(*)>(_a[1]))); break;
        case 1: _t->accepted(); break;
        case 2: _t->helpRequested(); break;
        case 3: _t->rejected(); break;
        case 4: _t->d_func()->_q_handleButtonClicked(); break;
        case 5: _t->d_func()->_q_handleButtonDestroyed(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (QDialogButtonBox::*)(QAbstractButton * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDialogButtonBox::clicked)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (QDialogButtonBox::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDialogButtonBox::accepted)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (QDialogButtonBox::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDialogButtonBox::helpRequested)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (QDialogButtonBox::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDialogButtonBox::rejected)) {
                *result = 3;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<QDialogButtonBox *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< Qt::Orientation*>(_v) = _t->orientation(); break;
        case 1: *reinterpret_cast<int*>(_v) = QFlag(_t->standardButtons()); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->centerButtons(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<QDialogButtonBox *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setOrientation(*reinterpret_cast< Qt::Orientation*>(_v)); break;
        case 1: _t->setStandardButtons(QFlag(*reinterpret_cast<int*>(_v))); break;
        case 2: _t->setCenterButtons(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject QDialogButtonBox::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_meta_stringdata_QDialogButtonBox.data,
    qt_meta_data_QDialogButtonBox,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int QDialogButtonBox::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 < 6)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 6)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 6;
    }
#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 -= 3;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 3;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

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

// SIGNAL 1
void QDialogButtonBox::accepted()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void QDialogButtonBox::helpRequested()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void QDialogButtonBox::rejected()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
