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

#include "../../../../../maplibre-native-qt_v3.0.0_Source/src/widgets/gl_widget.hpp"
#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 'gl_widget.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.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_ZN9QMapLibre8GLWidgetE_t {};
} // unnamed namespace

template <> constexpr inline auto QMapLibre::GLWidget::qt_create_metaobjectdata<qt_meta_tag_ZN9QMapLibre8GLWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QMapLibre::GLWidget",
        "onMouseDoubleClickEvent",
        "",
        "QMapLibre::Coordinate",
        "coordinate",
        "onMousePressEvent",
        "onMouseReleaseEvent",
        "onMouseMoveEvent"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'onMouseDoubleClickEvent'
        QtMocHelpers::SignalData<void(QMapLibre::Coordinate)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'onMousePressEvent'
        QtMocHelpers::SignalData<void(QMapLibre::Coordinate)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'onMouseReleaseEvent'
        QtMocHelpers::SignalData<void(QMapLibre::Coordinate)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'onMouseMoveEvent'
        QtMocHelpers::SignalData<void(QMapLibre::Coordinate)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<GLWidget, qt_meta_tag_ZN9QMapLibre8GLWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QMapLibre::GLWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QOpenGLWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9QMapLibre8GLWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9QMapLibre8GLWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9QMapLibre8GLWidgetE_t>.metaTypes,
    nullptr
} };

void QMapLibre::GLWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<GLWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->onMouseDoubleClickEvent((*reinterpret_cast<std::add_pointer_t<QMapLibre::Coordinate>>(_a[1]))); break;
        case 1: _t->onMousePressEvent((*reinterpret_cast<std::add_pointer_t<QMapLibre::Coordinate>>(_a[1]))); break;
        case 2: _t->onMouseReleaseEvent((*reinterpret_cast<std::add_pointer_t<QMapLibre::Coordinate>>(_a[1]))); break;
        case 3: _t->onMouseMoveEvent((*reinterpret_cast<std::add_pointer_t<QMapLibre::Coordinate>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QMapLibre::Coordinate >(); break;
            }
            break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QMapLibre::Coordinate >(); break;
            }
            break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QMapLibre::Coordinate >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QMapLibre::Coordinate >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (GLWidget::*)(QMapLibre::Coordinate )>(_a, &GLWidget::onMouseDoubleClickEvent, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (GLWidget::*)(QMapLibre::Coordinate )>(_a, &GLWidget::onMousePressEvent, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (GLWidget::*)(QMapLibre::Coordinate )>(_a, &GLWidget::onMouseReleaseEvent, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (GLWidget::*)(QMapLibre::Coordinate )>(_a, &GLWidget::onMouseMoveEvent, 3))
            return;
    }
}

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

void *QMapLibre::GLWidget::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9QMapLibre8GLWidgetE_t>.strings))
        return static_cast<void*>(this);
    return QOpenGLWidget::qt_metacast(_clname);
}

int QMapLibre::GLWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QOpenGLWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    return _id;
}

// SIGNAL 0
void QMapLibre::GLWidget::onMouseDoubleClickEvent(QMapLibre::Coordinate _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void QMapLibre::GLWidget::onMousePressEvent(QMapLibre::Coordinate _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void QMapLibre::GLWidget::onMouseReleaseEvent(QMapLibre::Coordinate _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void QMapLibre::GLWidget::onMouseMoveEvent(QMapLibre::Coordinate _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
QT_WARNING_POP
