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

#include "../../src/ktexteditor-5.39.0/src/script/katescriptview.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'katescriptview.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.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_KateScriptView_t {
    QByteArrayData data[19];
    char stringdata0[229];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KateScriptView_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KateScriptView_t qt_meta_stringdata_KateScriptView = {
    {
QT_MOC_LITERAL(0, 0, 14), // "KateScriptView"
QT_MOC_LITERAL(1, 15, 14), // "cursorPosition"
QT_MOC_LITERAL(2, 30, 8), // "QJSValue"
QT_MOC_LITERAL(3, 39, 0), // ""
QT_MOC_LITERAL(4, 40, 17), // "setCursorPosition"
QT_MOC_LITERAL(5, 58, 4), // "line"
QT_MOC_LITERAL(6, 63, 6), // "column"
QT_MOC_LITERAL(7, 70, 6), // "cursor"
QT_MOC_LITERAL(8, 77, 21), // "virtualCursorPosition"
QT_MOC_LITERAL(9, 99, 24), // "setVirtualCursorPosition"
QT_MOC_LITERAL(10, 124, 12), // "selectedText"
QT_MOC_LITERAL(11, 137, 12), // "hasSelection"
QT_MOC_LITERAL(12, 150, 9), // "selection"
QT_MOC_LITERAL(13, 160, 12), // "setSelection"
QT_MOC_LITERAL(14, 173, 5), // "range"
QT_MOC_LITERAL(15, 179, 18), // "removeSelectedText"
QT_MOC_LITERAL(16, 198, 9), // "selectAll"
QT_MOC_LITERAL(17, 208, 14), // "clearSelection"
QT_MOC_LITERAL(18, 223, 5) // "align"

    },
    "KateScriptView\0cursorPosition\0QJSValue\0"
    "\0setCursorPosition\0line\0column\0cursor\0"
    "virtualCursorPosition\0setVirtualCursorPosition\0"
    "selectedText\0hasSelection\0selection\0"
    "setSelection\0range\0removeSelectedText\0"
    "selectAll\0clearSelection\0align"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KateScriptView[] = {

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

 // methods: name, argc, parameters, tag, flags
       1,    0,   84,    3, 0x02 /* Public */,
       4,    2,   85,    3, 0x02 /* Public */,
       4,    1,   90,    3, 0x02 /* Public */,
       8,    0,   93,    3, 0x02 /* Public */,
       9,    2,   94,    3, 0x02 /* Public */,
       9,    1,   99,    3, 0x02 /* Public */,
      10,    0,  102,    3, 0x02 /* Public */,
      11,    0,  103,    3, 0x02 /* Public */,
      12,    0,  104,    3, 0x02 /* Public */,
      13,    1,  105,    3, 0x02 /* Public */,
      15,    0,  108,    3, 0x02 /* Public */,
      16,    0,  109,    3, 0x02 /* Public */,
      17,    0,  110,    3, 0x02 /* Public */,
      18,    1,  111,    3, 0x02 /* Public */,

 // methods: parameters
    0x80000000 | 2,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    5,    6,
    QMetaType::Void, 0x80000000 | 2,    7,
    0x80000000 | 2,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    5,    6,
    QMetaType::Void, 0x80000000 | 2,    7,
    QMetaType::QString,
    QMetaType::Bool,
    0x80000000 | 2,
    QMetaType::Void, 0x80000000 | 2,   14,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 2,   14,

       0        // eod
};

void KateScriptView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KateScriptView *_t = static_cast<KateScriptView *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: { QJSValue _r = _t->cursorPosition();
            if (_a[0]) *reinterpret_cast< QJSValue*>(_a[0]) = std::move(_r); }  break;
        case 1: _t->setCursorPosition((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 2: _t->setCursorPosition((*reinterpret_cast< const QJSValue(*)>(_a[1]))); break;
        case 3: { QJSValue _r = _t->virtualCursorPosition();
            if (_a[0]) *reinterpret_cast< QJSValue*>(_a[0]) = std::move(_r); }  break;
        case 4: _t->setVirtualCursorPosition((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 5: _t->setVirtualCursorPosition((*reinterpret_cast< const QJSValue(*)>(_a[1]))); break;
        case 6: { QString _r = _t->selectedText();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 7: { bool _r = _t->hasSelection();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 8: { QJSValue _r = _t->selection();
            if (_a[0]) *reinterpret_cast< QJSValue*>(_a[0]) = std::move(_r); }  break;
        case 9: _t->setSelection((*reinterpret_cast< const QJSValue(*)>(_a[1]))); break;
        case 10: _t->removeSelectedText(); break;
        case 11: _t->selectAll(); break;
        case 12: _t->clearSelection(); break;
        case 13: _t->align((*reinterpret_cast< const QJSValue(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QJSValue >(); break;
            }
            break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QJSValue >(); break;
            }
            break;
        case 9:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QJSValue >(); break;
            }
            break;
        case 13:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QJSValue >(); break;
            }
            break;
        }
    }
}

const QMetaObject KateScriptView::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KateScriptView.data,
      qt_meta_data_KateScriptView,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KateScriptView::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 < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
    return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
