/****************************************************************************
** Meta object code from reading C++ file 'qaction.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 "../kernel/qaction.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qaction.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_QAction_t {
    QByteArrayData data[45];
    char stringdata0[472];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QAction_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QAction_t qt_meta_stringdata_QAction = {
    {
QT_MOC_LITERAL(0, 0, 7), // "QAction"
QT_MOC_LITERAL(1, 8, 7), // "changed"
QT_MOC_LITERAL(2, 16, 0), // ""
QT_MOC_LITERAL(3, 17, 9), // "triggered"
QT_MOC_LITERAL(4, 27, 7), // "checked"
QT_MOC_LITERAL(5, 35, 7), // "hovered"
QT_MOC_LITERAL(6, 43, 7), // "toggled"
QT_MOC_LITERAL(7, 51, 7), // "trigger"
QT_MOC_LITERAL(8, 59, 5), // "hover"
QT_MOC_LITERAL(9, 65, 10), // "setChecked"
QT_MOC_LITERAL(10, 76, 6), // "toggle"
QT_MOC_LITERAL(11, 83, 10), // "setEnabled"
QT_MOC_LITERAL(12, 94, 11), // "setDisabled"
QT_MOC_LITERAL(13, 106, 1), // "b"
QT_MOC_LITERAL(14, 108, 10), // "setVisible"
QT_MOC_LITERAL(15, 119, 9), // "checkable"
QT_MOC_LITERAL(16, 129, 7), // "enabled"
QT_MOC_LITERAL(17, 137, 4), // "icon"
QT_MOC_LITERAL(18, 142, 4), // "text"
QT_MOC_LITERAL(19, 147, 8), // "iconText"
QT_MOC_LITERAL(20, 156, 7), // "toolTip"
QT_MOC_LITERAL(21, 164, 9), // "statusTip"
QT_MOC_LITERAL(22, 174, 9), // "whatsThis"
QT_MOC_LITERAL(23, 184, 4), // "font"
QT_MOC_LITERAL(24, 189, 8), // "shortcut"
QT_MOC_LITERAL(25, 198, 15), // "shortcutContext"
QT_MOC_LITERAL(26, 214, 19), // "Qt::ShortcutContext"
QT_MOC_LITERAL(27, 234, 10), // "autoRepeat"
QT_MOC_LITERAL(28, 245, 7), // "visible"
QT_MOC_LITERAL(29, 253, 8), // "menuRole"
QT_MOC_LITERAL(30, 262, 8), // "MenuRole"
QT_MOC_LITERAL(31, 271, 17), // "iconVisibleInMenu"
QT_MOC_LITERAL(32, 289, 28), // "shortcutVisibleInContextMenu"
QT_MOC_LITERAL(33, 318, 8), // "priority"
QT_MOC_LITERAL(34, 327, 8), // "Priority"
QT_MOC_LITERAL(35, 336, 6), // "NoRole"
QT_MOC_LITERAL(36, 343, 17), // "TextHeuristicRole"
QT_MOC_LITERAL(37, 361, 23), // "ApplicationSpecificRole"
QT_MOC_LITERAL(38, 385, 11), // "AboutQtRole"
QT_MOC_LITERAL(39, 397, 9), // "AboutRole"
QT_MOC_LITERAL(40, 407, 15), // "PreferencesRole"
QT_MOC_LITERAL(41, 423, 8), // "QuitRole"
QT_MOC_LITERAL(42, 432, 11), // "LowPriority"
QT_MOC_LITERAL(43, 444, 14), // "NormalPriority"
QT_MOC_LITERAL(44, 459, 12) // "HighPriority"

    },
    "QAction\0changed\0\0triggered\0checked\0"
    "hovered\0toggled\0trigger\0hover\0setChecked\0"
    "toggle\0setEnabled\0setDisabled\0b\0"
    "setVisible\0checkable\0enabled\0icon\0"
    "text\0iconText\0toolTip\0statusTip\0"
    "whatsThis\0font\0shortcut\0shortcutContext\0"
    "Qt::ShortcutContext\0autoRepeat\0visible\0"
    "menuRole\0MenuRole\0iconVisibleInMenu\0"
    "shortcutVisibleInContextMenu\0priority\0"
    "Priority\0NoRole\0TextHeuristicRole\0"
    "ApplicationSpecificRole\0AboutQtRole\0"
    "AboutRole\0PreferencesRole\0QuitRole\0"
    "LowPriority\0NormalPriority\0HighPriority"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QAction[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      12,   14, // methods
      18,   98, // properties
       2,  170, // enums/sets
       0,    0, // constructors
       0,       // flags
       5,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   74,    2, 0x06 /* Public */,
       3,    1,   75,    2, 0x06 /* Public */,
       3,    0,   78,    2, 0x26 /* Public | MethodCloned */,
       5,    0,   79,    2, 0x06 /* Public */,
       6,    1,   80,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       7,    0,   83,    2, 0x0a /* Public */,
       8,    0,   84,    2, 0x0a /* Public */,
       9,    1,   85,    2, 0x0a /* Public */,
      10,    0,   88,    2, 0x0a /* Public */,
      11,    1,   89,    2, 0x0a /* Public */,
      12,    1,   92,    2, 0x0a /* Public */,
      14,    1,   95,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,    4,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,    2,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void, QMetaType::Bool,   13,
    QMetaType::Void, QMetaType::Bool,    2,

 // properties: name, type, flags
      15, QMetaType::Bool, 0x00495103,
       4, QMetaType::Bool, 0x00495103,
      16, QMetaType::Bool, 0x00495103,
      17, QMetaType::QIcon, 0x00495103,
      18, QMetaType::QString, 0x00495103,
      19, QMetaType::QString, 0x00495103,
      20, QMetaType::QString, 0x00495103,
      21, QMetaType::QString, 0x00495103,
      22, QMetaType::QString, 0x00495103,
      23, QMetaType::QFont, 0x00495103,
      24, QMetaType::QKeySequence, 0x00495103,
      25, 0x80000000 | 26, 0x0049510b,
      27, QMetaType::Bool, 0x00495103,
      28, QMetaType::Bool, 0x00495103,
      29, 0x80000000 | 30, 0x0049510b,
      31, QMetaType::Bool, 0x00495103,
      32, QMetaType::Bool, 0x00495103,
      33, 0x80000000 | 34, 0x0049510b,

 // properties: notify_signal_id
       0,
       4,
       0,
       0,
       0,
       0,
       0,
       0,
       0,
       0,
       0,
       0,
       0,
       0,
       0,
       0,
       0,
       0,

 // enums: name, alias, flags, count, data
      30,   30, 0x0,    7,  180,
      34,   34, 0x0,    3,  194,

 // enum data: key, value
      35, uint(QAction::NoRole),
      36, uint(QAction::TextHeuristicRole),
      37, uint(QAction::ApplicationSpecificRole),
      38, uint(QAction::AboutQtRole),
      39, uint(QAction::AboutRole),
      40, uint(QAction::PreferencesRole),
      41, uint(QAction::QuitRole),
      42, uint(QAction::LowPriority),
      43, uint(QAction::NormalPriority),
      44, uint(QAction::HighPriority),

       0        // eod
};

void QAction::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<QAction *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->changed(); break;
        case 1: _t->triggered((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 2: _t->triggered(); break;
        case 3: _t->hovered(); break;
        case 4: _t->toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 5: _t->trigger(); break;
        case 6: _t->hover(); break;
        case 7: _t->setChecked((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 8: _t->toggle(); break;
        case 9: _t->setEnabled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 10: _t->setDisabled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 11: _t->setVisible((*reinterpret_cast< bool(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (QAction::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAction::changed)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (QAction::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAction::triggered)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (QAction::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAction::hovered)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (QAction::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAction::toggled)) {
                *result = 4;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<QAction *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->isCheckable(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->isChecked(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->isEnabled(); break;
        case 3: *reinterpret_cast< QIcon*>(_v) = _t->icon(); break;
        case 4: *reinterpret_cast< QString*>(_v) = _t->text(); break;
        case 5: *reinterpret_cast< QString*>(_v) = _t->iconText(); break;
        case 6: *reinterpret_cast< QString*>(_v) = _t->toolTip(); break;
        case 7: *reinterpret_cast< QString*>(_v) = _t->statusTip(); break;
        case 8: *reinterpret_cast< QString*>(_v) = _t->whatsThis(); break;
        case 9: *reinterpret_cast< QFont*>(_v) = _t->font(); break;
        case 10: *reinterpret_cast< QKeySequence*>(_v) = _t->shortcut(); break;
        case 11: *reinterpret_cast< Qt::ShortcutContext*>(_v) = _t->shortcutContext(); break;
        case 12: *reinterpret_cast< bool*>(_v) = _t->autoRepeat(); break;
        case 13: *reinterpret_cast< bool*>(_v) = _t->isVisible(); break;
        case 14: *reinterpret_cast< MenuRole*>(_v) = _t->menuRole(); break;
        case 15: *reinterpret_cast< bool*>(_v) = _t->isIconVisibleInMenu(); break;
        case 16: *reinterpret_cast< bool*>(_v) = _t->isShortcutVisibleInContextMenu(); break;
        case 17: *reinterpret_cast< Priority*>(_v) = _t->priority(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<QAction *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setCheckable(*reinterpret_cast< bool*>(_v)); break;
        case 1: _t->setChecked(*reinterpret_cast< bool*>(_v)); break;
        case 2: _t->setEnabled(*reinterpret_cast< bool*>(_v)); break;
        case 3: _t->setIcon(*reinterpret_cast< QIcon*>(_v)); break;
        case 4: _t->setText(*reinterpret_cast< QString*>(_v)); break;
        case 5: _t->setIconText(*reinterpret_cast< QString*>(_v)); break;
        case 6: _t->setToolTip(*reinterpret_cast< QString*>(_v)); break;
        case 7: _t->setStatusTip(*reinterpret_cast< QString*>(_v)); break;
        case 8: _t->setWhatsThis(*reinterpret_cast< QString*>(_v)); break;
        case 9: _t->setFont(*reinterpret_cast< QFont*>(_v)); break;
        case 10: _t->setShortcut(*reinterpret_cast< QKeySequence*>(_v)); break;
        case 11: _t->setShortcutContext(*reinterpret_cast< Qt::ShortcutContext*>(_v)); break;
        case 12: _t->setAutoRepeat(*reinterpret_cast< bool*>(_v)); break;
        case 13: _t->setVisible(*reinterpret_cast< bool*>(_v)); break;
        case 14: _t->setMenuRole(*reinterpret_cast< MenuRole*>(_v)); break;
        case 15: _t->setIconVisibleInMenu(*reinterpret_cast< bool*>(_v)); break;
        case 16: _t->setShortcutVisibleInContextMenu(*reinterpret_cast< bool*>(_v)); break;
        case 17: _t->setPriority(*reinterpret_cast< Priority*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject QAction::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_QAction.data,
    qt_meta_data_QAction,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int QAction::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 12;
    }
#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 -= 18;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 18;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 18;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 18;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 18;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 18;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

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

// SIGNAL 1
void QAction::triggered(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 3
void QAction::hovered()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void QAction::toggled(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
