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

#include <memory>
#include "../../src/models/markersmodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'markersmodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.2. 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_MarkersModel_t {
    QByteArrayData data[21];
    char stringdata0[209];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_MarkersModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_MarkersModel_t qt_meta_stringdata_MarkersModel = {
    {
QT_MOC_LITERAL(0, 0, 12), // "MarkersModel"
QT_MOC_LITERAL(1, 13, 13), // "rangesChanged"
QT_MOC_LITERAL(2, 27, 0), // ""
QT_MOC_LITERAL(3, 28, 8), // "modified"
QT_MOC_LITERAL(4, 37, 19), // "recentColorsChanged"
QT_MOC_LITERAL(5, 57, 6), // "remove"
QT_MOC_LITERAL(6, 64, 11), // "markerIndex"
QT_MOC_LITERAL(7, 76, 6), // "append"
QT_MOC_LITERAL(8, 83, 15), // "Markers::Marker"
QT_MOC_LITERAL(9, 99, 6), // "marker"
QT_MOC_LITERAL(10, 106, 6), // "update"
QT_MOC_LITERAL(11, 113, 4), // "move"
QT_MOC_LITERAL(12, 118, 5), // "start"
QT_MOC_LITERAL(13, 124, 3), // "end"
QT_MOC_LITERAL(14, 128, 8), // "setColor"
QT_MOC_LITERAL(15, 137, 5), // "color"
QT_MOC_LITERAL(16, 143, 5), // "clear"
QT_MOC_LITERAL(17, 149, 18), // "nextMarkerPosition"
QT_MOC_LITERAL(18, 168, 8), // "position"
QT_MOC_LITERAL(19, 177, 18), // "prevMarkerPosition"
QT_MOC_LITERAL(20, 196, 12) // "recentColors"

    },
    "MarkersModel\0rangesChanged\0\0modified\0"
    "recentColorsChanged\0remove\0markerIndex\0"
    "append\0Markers::Marker\0marker\0update\0"
    "move\0start\0end\0setColor\0color\0clear\0"
    "nextMarkerPosition\0position\0"
    "prevMarkerPosition\0recentColors"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_MarkersModel[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      11,   14, // methods
       1,  102, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       3,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   69,    2, 0x06 /* Public */,
       3,    0,   70,    2, 0x06 /* Public */,
       4,    0,   71,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       5,    1,   72,    2, 0x0a /* Public */,
       7,    1,   75,    2, 0x0a /* Public */,
      10,    2,   78,    2, 0x0a /* Public */,
      11,    3,   83,    2, 0x0a /* Public */,
      14,    2,   90,    2, 0x0a /* Public */,
      16,    0,   95,    2, 0x0a /* Public */,

 // methods: name, argc, parameters, tag, flags
      17,    1,   96,    2, 0x02 /* Public */,
      19,    1,   99,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, QMetaType::Int,    6,
    QMetaType::Void, 0x80000000 | 8,    9,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 8,    6,    9,
    QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int,    6,   12,   13,
    QMetaType::Void, QMetaType::Int, QMetaType::QColor,    6,   15,
    QMetaType::Void,

 // methods: parameters
    QMetaType::Int, QMetaType::Int,   18,
    QMetaType::Int, QMetaType::Int,   18,

 // properties: name, type, flags
      20, QMetaType::QStringList, 0x00495001,

 // properties: notify_signal_id
       2,

       0        // eod
};

void MarkersModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<MarkersModel *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->rangesChanged(); break;
        case 1: _t->modified(); break;
        case 2: _t->recentColorsChanged(); break;
        case 3: _t->remove((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 4: _t->append((*reinterpret_cast< const Markers::Marker(*)>(_a[1]))); break;
        case 5: _t->update((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const Markers::Marker(*)>(_a[2]))); break;
        case 6: _t->move((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 7: _t->setColor((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QColor(*)>(_a[2]))); break;
        case 8: _t->clear(); break;
        case 9: { int _r = _t->nextMarkerPosition((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 10: { int _r = _t->prevMarkerPosition((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (MarkersModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MarkersModel::rangesChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (MarkersModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MarkersModel::modified)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (MarkersModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MarkersModel::recentColorsChanged)) {
                *result = 2;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<MarkersModel *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QStringList*>(_v) = _t->recentColors(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject MarkersModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractItemModel::staticMetaObject>(),
    qt_meta_stringdata_MarkersModel.data,
    qt_meta_data_MarkersModel,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

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

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

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

// SIGNAL 2
void MarkersModel::recentColorsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
