/****************************************************************************
** Meta object code from reading C++ file 'qmessagebox.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 "../dialogs/qmessagebox.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qmessagebox.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_QMessageBox_t {
    QByteArrayData data[54];
    char stringdata0[568];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QMessageBox_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QMessageBox_t qt_meta_stringdata_QMessageBox = {
    {
QT_MOC_LITERAL(0, 0, 11), // "QMessageBox"
QT_MOC_LITERAL(1, 12, 13), // "buttonClicked"
QT_MOC_LITERAL(2, 26, 0), // ""
QT_MOC_LITERAL(3, 27, 16), // "QAbstractButton*"
QT_MOC_LITERAL(4, 44, 6), // "button"
QT_MOC_LITERAL(5, 51, 16), // "_q_buttonClicked"
QT_MOC_LITERAL(6, 68, 10), // "_q_clicked"
QT_MOC_LITERAL(7, 79, 37), // "QPlatformDialogHelper::Standa..."
QT_MOC_LITERAL(8, 117, 33), // "QPlatformDialogHelper::Button..."
QT_MOC_LITERAL(9, 151, 4), // "text"
QT_MOC_LITERAL(10, 156, 4), // "icon"
QT_MOC_LITERAL(11, 161, 4), // "Icon"
QT_MOC_LITERAL(12, 166, 10), // "iconPixmap"
QT_MOC_LITERAL(13, 177, 10), // "textFormat"
QT_MOC_LITERAL(14, 188, 14), // "Qt::TextFormat"
QT_MOC_LITERAL(15, 203, 15), // "standardButtons"
QT_MOC_LITERAL(16, 219, 15), // "StandardButtons"
QT_MOC_LITERAL(17, 235, 12), // "detailedText"
QT_MOC_LITERAL(18, 248, 15), // "informativeText"
QT_MOC_LITERAL(19, 264, 20), // "textInteractionFlags"
QT_MOC_LITERAL(20, 285, 24), // "Qt::TextInteractionFlags"
QT_MOC_LITERAL(21, 310, 6), // "NoIcon"
QT_MOC_LITERAL(22, 317, 11), // "Information"
QT_MOC_LITERAL(23, 329, 7), // "Warning"
QT_MOC_LITERAL(24, 337, 8), // "Critical"
QT_MOC_LITERAL(25, 346, 8), // "Question"
QT_MOC_LITERAL(26, 355, 14), // "StandardButton"
QT_MOC_LITERAL(27, 370, 8), // "NoButton"
QT_MOC_LITERAL(28, 379, 2), // "Ok"
QT_MOC_LITERAL(29, 382, 4), // "Save"
QT_MOC_LITERAL(30, 387, 7), // "SaveAll"
QT_MOC_LITERAL(31, 395, 4), // "Open"
QT_MOC_LITERAL(32, 400, 3), // "Yes"
QT_MOC_LITERAL(33, 404, 8), // "YesToAll"
QT_MOC_LITERAL(34, 413, 2), // "No"
QT_MOC_LITERAL(35, 416, 7), // "NoToAll"
QT_MOC_LITERAL(36, 424, 5), // "Abort"
QT_MOC_LITERAL(37, 430, 5), // "Retry"
QT_MOC_LITERAL(38, 436, 6), // "Ignore"
QT_MOC_LITERAL(39, 443, 5), // "Close"
QT_MOC_LITERAL(40, 449, 6), // "Cancel"
QT_MOC_LITERAL(41, 456, 7), // "Discard"
QT_MOC_LITERAL(42, 464, 4), // "Help"
QT_MOC_LITERAL(43, 469, 5), // "Apply"
QT_MOC_LITERAL(44, 475, 5), // "Reset"
QT_MOC_LITERAL(45, 481, 15), // "RestoreDefaults"
QT_MOC_LITERAL(46, 497, 11), // "FirstButton"
QT_MOC_LITERAL(47, 509, 10), // "LastButton"
QT_MOC_LITERAL(48, 520, 6), // "YesAll"
QT_MOC_LITERAL(49, 527, 5), // "NoAll"
QT_MOC_LITERAL(50, 533, 7), // "Default"
QT_MOC_LITERAL(51, 541, 6), // "Escape"
QT_MOC_LITERAL(52, 548, 8), // "FlagMask"
QT_MOC_LITERAL(53, 557, 10) // "ButtonMask"

    },
    "QMessageBox\0buttonClicked\0\0QAbstractButton*\0"
    "button\0_q_buttonClicked\0_q_clicked\0"
    "QPlatformDialogHelper::StandardButton\0"
    "QPlatformDialogHelper::ButtonRole\0"
    "text\0icon\0Icon\0iconPixmap\0textFormat\0"
    "Qt::TextFormat\0standardButtons\0"
    "StandardButtons\0detailedText\0"
    "informativeText\0textInteractionFlags\0"
    "Qt::TextInteractionFlags\0NoIcon\0"
    "Information\0Warning\0Critical\0Question\0"
    "StandardButton\0NoButton\0Ok\0Save\0SaveAll\0"
    "Open\0Yes\0YesToAll\0No\0NoToAll\0Abort\0"
    "Retry\0Ignore\0Close\0Cancel\0Discard\0"
    "Help\0Apply\0Reset\0RestoreDefaults\0"
    "FirstButton\0LastButton\0YesAll\0NoAll\0"
    "Default\0Escape\0FlagMask\0ButtonMask"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QMessageBox[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
       3,   14, // methods
       8,   40, // properties
       2,   64, // enums/sets
       0,    0, // constructors
       0,       // flags
       1,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   29,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       5,    1,   32,    2, 0x08 /* Private */,
       6,    2,   35,    2, 0x08 /* Private */,

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

 // slots: parameters
    QMetaType::Void, 0x80000000 | 3,    2,
    QMetaType::Void, 0x80000000 | 7, 0x80000000 | 8,    2,    2,

 // properties: name, type, flags
       9, QMetaType::QString, 0x00095103,
      10, 0x80000000 | 11, 0x0009510b,
      12, QMetaType::QPixmap, 0x00095103,
      13, 0x80000000 | 14, 0x0009510b,
      15, 0x80000000 | 16, 0x0009510b,
      17, QMetaType::QString, 0x00095103,
      18, QMetaType::QString, 0x00095103,
      19, 0x80000000 | 20, 0x0009510b,

 // enums: name, alias, flags, count, data
      11,   11, 0x0,    5,   74,
      16,   26, 0x1,   27,   84,

 // enum data: key, value
      21, uint(QMessageBox::NoIcon),
      22, uint(QMessageBox::Information),
      23, uint(QMessageBox::Warning),
      24, uint(QMessageBox::Critical),
      25, uint(QMessageBox::Question),
      27, uint(QMessageBox::NoButton),
      28, uint(QMessageBox::Ok),
      29, uint(QMessageBox::Save),
      30, uint(QMessageBox::SaveAll),
      31, uint(QMessageBox::Open),
      32, uint(QMessageBox::Yes),
      33, uint(QMessageBox::YesToAll),
      34, uint(QMessageBox::No),
      35, uint(QMessageBox::NoToAll),
      36, uint(QMessageBox::Abort),
      37, uint(QMessageBox::Retry),
      38, uint(QMessageBox::Ignore),
      39, uint(QMessageBox::Close),
      40, uint(QMessageBox::Cancel),
      41, uint(QMessageBox::Discard),
      42, uint(QMessageBox::Help),
      43, uint(QMessageBox::Apply),
      44, uint(QMessageBox::Reset),
      45, uint(QMessageBox::RestoreDefaults),
      46, uint(QMessageBox::FirstButton),
      47, uint(QMessageBox::LastButton),
      48, uint(QMessageBox::YesAll),
      49, uint(QMessageBox::NoAll),
      50, uint(QMessageBox::Default),
      51, uint(QMessageBox::Escape),
      52, uint(QMessageBox::FlagMask),
      53, uint(QMessageBox::ButtonMask),

       0        // eod
};

void QMessageBox::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<QMessageBox *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->buttonClicked((*reinterpret_cast< QAbstractButton*(*)>(_a[1]))); break;
        case 1: _t->d_func()->_q_buttonClicked((*reinterpret_cast< QAbstractButton*(*)>(_a[1]))); break;
        case 2: _t->d_func()->_q_clicked((*reinterpret_cast< QPlatformDialogHelper::StandardButton(*)>(_a[1])),(*reinterpret_cast< QPlatformDialogHelper::ButtonRole(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (QMessageBox::*)(QAbstractButton * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QMessageBox::buttonClicked)) {
                *result = 0;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<QMessageBox *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = _t->text(); break;
        case 1: *reinterpret_cast< Icon*>(_v) = _t->icon(); break;
        case 2: *reinterpret_cast< QPixmap*>(_v) = _t->iconPixmap(); break;
        case 3: *reinterpret_cast< Qt::TextFormat*>(_v) = _t->textFormat(); break;
        case 4: *reinterpret_cast<int*>(_v) = QFlag(_t->standardButtons()); break;
        case 5: *reinterpret_cast< QString*>(_v) = _t->detailedText(); break;
        case 6: *reinterpret_cast< QString*>(_v) = _t->informativeText(); break;
        case 7: *reinterpret_cast< Qt::TextInteractionFlags*>(_v) = _t->textInteractionFlags(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<QMessageBox *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setText(*reinterpret_cast< QString*>(_v)); break;
        case 1: _t->setIcon(*reinterpret_cast< Icon*>(_v)); break;
        case 2: _t->setIconPixmap(*reinterpret_cast< QPixmap*>(_v)); break;
        case 3: _t->setTextFormat(*reinterpret_cast< Qt::TextFormat*>(_v)); break;
        case 4: _t->setStandardButtons(QFlag(*reinterpret_cast<int*>(_v))); break;
        case 5: _t->setDetailedText(*reinterpret_cast< QString*>(_v)); break;
        case 6: _t->setInformativeText(*reinterpret_cast< QString*>(_v)); break;
        case 7: _t->setTextInteractionFlags(*reinterpret_cast< Qt::TextInteractionFlags*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject QMessageBox::staticMetaObject = { {
    QMetaObject::SuperData::link<QDialog::staticMetaObject>(),
    qt_meta_stringdata_QMessageBox.data,
    qt_meta_data_QMessageBox,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

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

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