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

#include <memory>
#include "../../../../qttools/src/distancefieldgenerator/distancefieldmodelworker.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'distancefieldmodelworker.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.6. 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_DistanceFieldModelWorker_t {
    QByteArrayData data[19];
    char stringdata0[236];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_DistanceFieldModelWorker_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_DistanceFieldModelWorker_t qt_meta_stringdata_DistanceFieldModelWorker = {
    {
QT_MOC_LITERAL(0, 0, 24), // "DistanceFieldModelWorker"
QT_MOC_LITERAL(1, 25, 10), // "fontLoaded"
QT_MOC_LITERAL(2, 36, 0), // ""
QT_MOC_LITERAL(3, 37, 10), // "glyphCount"
QT_MOC_LITERAL(4, 48, 16), // "doubleResolution"
QT_MOC_LITERAL(5, 65, 9), // "pixelSize"
QT_MOC_LITERAL(6, 75, 13), // "fontGenerated"
QT_MOC_LITERAL(7, 89, 22), // "distanceFieldGenerated"
QT_MOC_LITERAL(8, 112, 13), // "distanceField"
QT_MOC_LITERAL(9, 126, 12), // "QPainterPath"
QT_MOC_LITERAL(10, 139, 4), // "path"
QT_MOC_LITERAL(11, 144, 7), // "glyph_t"
QT_MOC_LITERAL(12, 152, 7), // "glyphId"
QT_MOC_LITERAL(13, 160, 14), // "cmapAssignment"
QT_MOC_LITERAL(14, 175, 5), // "error"
QT_MOC_LITERAL(15, 181, 11), // "errorString"
QT_MOC_LITERAL(16, 193, 24), // "generateOneDistanceField"
QT_MOC_LITERAL(17, 218, 8), // "loadFont"
QT_MOC_LITERAL(18, 227, 8) // "fileName"

    },
    "DistanceFieldModelWorker\0fontLoaded\0"
    "\0glyphCount\0doubleResolution\0pixelSize\0"
    "fontGenerated\0distanceFieldGenerated\0"
    "distanceField\0QPainterPath\0path\0glyph_t\0"
    "glyphId\0cmapAssignment\0error\0errorString\0"
    "generateOneDistanceField\0loadFont\0"
    "fileName"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_DistanceFieldModelWorker[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    3,   44,    2, 0x06 /* Public */,
       6,    0,   51,    2, 0x06 /* Public */,
       7,    4,   52,    2, 0x06 /* Public */,
      14,    1,   61,    2, 0x06 /* Public */,

 // methods: name, argc, parameters, tag, flags
      16,    0,   64,    2, 0x02 /* Public */,
      17,    1,   65,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::UShort, QMetaType::Bool, QMetaType::QReal,    3,    4,    5,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QImage, 0x80000000 | 9, 0x80000000 | 11, QMetaType::UInt,    8,   10,   12,   13,
    QMetaType::Void, QMetaType::QString,   15,

 // methods: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,   18,

       0        // eod
};

void DistanceFieldModelWorker::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<DistanceFieldModelWorker *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->fontLoaded((*reinterpret_cast< quint16(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2])),(*reinterpret_cast< qreal(*)>(_a[3]))); break;
        case 1: _t->fontGenerated(); break;
        case 2: _t->distanceFieldGenerated((*reinterpret_cast< const QImage(*)>(_a[1])),(*reinterpret_cast< const QPainterPath(*)>(_a[2])),(*reinterpret_cast< glyph_t(*)>(_a[3])),(*reinterpret_cast< quint32(*)>(_a[4]))); break;
        case 3: _t->error((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 4: _t->generateOneDistanceField(); break;
        case 5: _t->loadFont((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (DistanceFieldModelWorker::*)(quint16 , bool , qreal );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DistanceFieldModelWorker::fontLoaded)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (DistanceFieldModelWorker::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DistanceFieldModelWorker::fontGenerated)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (DistanceFieldModelWorker::*)(const QImage & , const QPainterPath & , glyph_t , quint32 );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DistanceFieldModelWorker::distanceFieldGenerated)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (DistanceFieldModelWorker::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DistanceFieldModelWorker::error)) {
                *result = 3;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject DistanceFieldModelWorker::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_DistanceFieldModelWorker.data,
    qt_meta_data_DistanceFieldModelWorker,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int DistanceFieldModelWorker::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 < 6)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 6)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 6;
    }
    return _id;
}

// SIGNAL 0
void DistanceFieldModelWorker::fontLoaded(quint16 _t1, bool _t2, qreal _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, 0, _a);
}

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

// SIGNAL 2
void DistanceFieldModelWorker::distanceFieldGenerated(const QImage & _t1, const QPainterPath & _t2, glyph_t _t3, quint32 _t4)
{
    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))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t4))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void DistanceFieldModelWorker::error(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
