/****************************************************************************
** Meta object code from reading C++ file 'piano.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 "../../../muse-4.2.1/src/muse/midiedit/piano.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'piano.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_MusEGui__Piano_t {
    QByteArrayData data[11];
    char stringdata0[141];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_MusEGui__Piano_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_MusEGui__Piano_t qt_meta_stringdata_MusEGui__Piano = {
    {
QT_MOC_LITERAL(0, 0, 14), // "MusEGui::Piano"
QT_MOC_LITERAL(1, 15, 12), // "pitchChanged"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 10), // "keyPressed"
QT_MOC_LITERAL(4, 40, 11), // "keyReleased"
QT_MOC_LITERAL(5, 52, 23), // "curSelectedPitchChanged"
QT_MOC_LITERAL(6, 76, 18), // "redirectWheelEvent"
QT_MOC_LITERAL(7, 95, 12), // "QWheelEvent*"
QT_MOC_LITERAL(8, 108, 9), // "wheelStep"
QT_MOC_LITERAL(9, 118, 13), // "shiftReleased"
QT_MOC_LITERAL(10, 132, 8) // "setPitch"

    },
    "MusEGui::Piano\0pitchChanged\0\0keyPressed\0"
    "keyReleased\0curSelectedPitchChanged\0"
    "redirectWheelEvent\0QWheelEvent*\0"
    "wheelStep\0shiftReleased\0setPitch"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_MusEGui__Piano[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   54,    2, 0x06 /* Public */,
       3,    3,   57,    2, 0x06 /* Public */,
       4,    2,   64,    2, 0x06 /* Public */,
       5,    1,   69,    2, 0x06 /* Public */,
       6,    1,   72,    2, 0x06 /* Public */,
       8,    1,   75,    2, 0x06 /* Public */,
       9,    0,   78,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      10,    1,   79,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Bool,    2,    2,    2,
    QMetaType::Void, QMetaType::Int, QMetaType::Bool,    2,    2,
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void, 0x80000000 | 7,    2,
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, QMetaType::Int,    2,

       0        // eod
};

void MusEGui::Piano::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<Piano *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->pitchChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: _t->keyPressed((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
        case 2: _t->keyReleased((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 3: _t->curSelectedPitchChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 4: _t->redirectWheelEvent((*reinterpret_cast< QWheelEvent*(*)>(_a[1]))); break;
        case 5: _t->wheelStep((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 6: _t->shiftReleased(); break;
        case 7: _t->setPitch((*reinterpret_cast< int(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (Piano::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Piano::pitchChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (Piano::*)(int , int , bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Piano::keyPressed)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (Piano::*)(int , bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Piano::keyReleased)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (Piano::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Piano::curSelectedPitchChanged)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (Piano::*)(QWheelEvent * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Piano::redirectWheelEvent)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (Piano::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Piano::wheelStep)) {
                *result = 5;
                return;
            }
        }
        {
            using _t = void (Piano::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Piano::shiftReleased)) {
                *result = 6;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject MusEGui::Piano::staticMetaObject = { {
    QMetaObject::SuperData::link<View::staticMetaObject>(),
    qt_meta_stringdata_MusEGui__Piano.data,
    qt_meta_data_MusEGui__Piano,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *MusEGui::Piano::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_MusEGui__Piano.stringdata0))
        return static_cast<void*>(this);
    return View::qt_metacast(_clname);
}

int MusEGui::Piano::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = View::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 8;
    }
    return _id;
}

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

// SIGNAL 1
void MusEGui::Piano::keyPressed(int _t1, int _t2, bool _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void MusEGui::Piano::keyReleased(int _t1, bool _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void MusEGui::Piano::curSelectedPitchChanged(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void MusEGui::Piano::redirectWheelEvent(QWheelEvent * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

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

// SIGNAL 6
void MusEGui::Piano::shiftReleased()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
