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

#include <memory>
#include "../../../SQLiteStudio3/guiSQLiteStudio/searchtextlocator.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'searchtextlocator.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.18. 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_SearchTextLocator_t {
    QByteArrayData data[18];
    char stringdata0[206];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_SearchTextLocator_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_SearchTextLocator_t qt_meta_stringdata_SearchTextLocator = {
    {
QT_MOC_LITERAL(0, 0, 17), // "SearchTextLocator"
QT_MOC_LITERAL(1, 18, 5), // "found"
QT_MOC_LITERAL(2, 24, 0), // ""
QT_MOC_LITERAL(3, 25, 5), // "start"
QT_MOC_LITERAL(4, 31, 3), // "end"
QT_MOC_LITERAL(5, 35, 10), // "reachedEnd"
QT_MOC_LITERAL(6, 46, 16), // "replaceAvailable"
QT_MOC_LITERAL(7, 63, 9), // "available"
QT_MOC_LITERAL(8, 73, 33), // "newCursorPositionAfterAllRepl..."
QT_MOC_LITERAL(9, 107, 6), // "newPos"
QT_MOC_LITERAL(10, 114, 4), // "find"
QT_MOC_LITERAL(11, 119, 24), // "QTextDocument::FindFlags"
QT_MOC_LITERAL(12, 144, 5), // "flags"
QT_MOC_LITERAL(13, 150, 8), // "findNext"
QT_MOC_LITERAL(14, 159, 8), // "findPrev"
QT_MOC_LITERAL(15, 168, 14), // "replaceAndFind"
QT_MOC_LITERAL(16, 183, 10), // "replaceAll"
QT_MOC_LITERAL(17, 194, 11) // "cursorMoved"

    },
    "SearchTextLocator\0found\0\0start\0end\0"
    "reachedEnd\0replaceAvailable\0available\0"
    "newCursorPositionAfterAllReplaced\0"
    "newPos\0find\0QTextDocument::FindFlags\0"
    "flags\0findNext\0findPrev\0replaceAndFind\0"
    "replaceAll\0cursorMoved"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_SearchTextLocator[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    2,   69,    2, 0x06 /* Public */,
       5,    0,   74,    2, 0x06 /* Public */,
       6,    1,   75,    2, 0x06 /* Public */,
       8,    1,   78,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      10,    1,   81,    2, 0x0a /* Public */,
      10,    0,   84,    2, 0x2a /* Public | MethodCloned */,
      13,    0,   85,    2, 0x0a /* Public */,
      14,    0,   86,    2, 0x0a /* Public */,
      15,    0,   87,    2, 0x0a /* Public */,
      16,    0,   88,    2, 0x0a /* Public */,
      17,    0,   89,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    3,    4,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,    7,
    QMetaType::Void, QMetaType::Int,    9,

 // slots: parameters
    QMetaType::Bool, 0x80000000 | 11,   12,
    QMetaType::Bool,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Bool,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void SearchTextLocator::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<SearchTextLocator *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->found((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 1: _t->reachedEnd(); break;
        case 2: _t->replaceAvailable((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 3: _t->newCursorPositionAfterAllReplaced((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 4: { bool _r = _t->find((*reinterpret_cast< QTextDocument::FindFlags(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 5: { bool _r = _t->find();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->findNext(); break;
        case 7: _t->findPrev(); break;
        case 8: { bool _r = _t->replaceAndFind();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 9: _t->replaceAll(); break;
        case 10: _t->cursorMoved(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (SearchTextLocator::*)(int , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SearchTextLocator::found)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (SearchTextLocator::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SearchTextLocator::reachedEnd)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (SearchTextLocator::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SearchTextLocator::replaceAvailable)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (SearchTextLocator::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SearchTextLocator::newCursorPositionAfterAllReplaced)) {
                *result = 3;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject SearchTextLocator::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_SearchTextLocator.data,
    qt_meta_data_SearchTextLocator,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int SearchTextLocator::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 < 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;
    }
    return _id;
}

// SIGNAL 0
void SearchTextLocator::found(int _t1, int _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, 0, _a);
}

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

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

// SIGNAL 3
void SearchTextLocator::newCursorPositionAfterAllReplaced(int _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
