/****************************************************************************
** Meta object code from reading C++ file 'phraseview.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 "../../../../../kde-qttools/src/linguist/linguist/phraseview.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'phraseview.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_GuessShortcut_t {
    QByteArrayData data[5];
    char stringdata0[43];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_GuessShortcut_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_GuessShortcut_t qt_meta_stringdata_GuessShortcut = {
    {
QT_MOC_LITERAL(0, 0, 13), // "GuessShortcut"
QT_MOC_LITERAL(1, 14, 9), // "activated"
QT_MOC_LITERAL(2, 24, 0), // ""
QT_MOC_LITERAL(3, 25, 4), // "nkey"
QT_MOC_LITERAL(4, 30, 12) // "keyActivated"

    },
    "GuessShortcut\0activated\0\0nkey\0"
    "keyActivated"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_GuessShortcut[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   24,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       4,    0,   27,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::Int,    3,

 // slots: parameters
    QMetaType::Void,

       0        // eod
};

void GuessShortcut::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<GuessShortcut *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->activated((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: _t->keyActivated(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (GuessShortcut::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GuessShortcut::activated)) {
                *result = 0;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject GuessShortcut::staticMetaObject = { {
    QMetaObject::SuperData::link<QShortcut::staticMetaObject>(),
    qt_meta_stringdata_GuessShortcut.data,
    qt_meta_data_GuessShortcut,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int GuessShortcut::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QShortcut::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 2)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 2)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 2;
    }
    return _id;
}

// SIGNAL 0
void GuessShortcut::activated(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
struct qt_meta_stringdata_PhraseView_t {
    QByteArrayData data[27];
    char stringdata0[340];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_PhraseView_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_PhraseView_t qt_meta_stringdata_PhraseView = {
    {
QT_MOC_LITERAL(0, 0, 10), // "PhraseView"
QT_MOC_LITERAL(1, 11, 14), // "phraseSelected"
QT_MOC_LITERAL(2, 26, 0), // ""
QT_MOC_LITERAL(3, 27, 11), // "latestModel"
QT_MOC_LITERAL(4, 39, 6), // "phrase"
QT_MOC_LITERAL(5, 46, 25), // "showFewerGuessesAvailable"
QT_MOC_LITERAL(6, 72, 7), // "canShow"
QT_MOC_LITERAL(7, 80, 26), // "setCurrentMessageFromGuess"
QT_MOC_LITERAL(8, 107, 10), // "modelIndex"
QT_MOC_LITERAL(9, 118, 9), // "Candidate"
QT_MOC_LITERAL(10, 128, 4), // "cand"
QT_MOC_LITERAL(11, 133, 14), // "toggleGuessing"
QT_MOC_LITERAL(12, 148, 6), // "update"
QT_MOC_LITERAL(13, 155, 16), // "getMaxCandidates"
QT_MOC_LITERAL(14, 172, 16), // "setMaxCandidates"
QT_MOC_LITERAL(15, 189, 3), // "max"
QT_MOC_LITERAL(16, 193, 23), // "getDefaultMaxCandidates"
QT_MOC_LITERAL(17, 217, 13), // "guessShortcut"
QT_MOC_LITERAL(18, 231, 4), // "nkey"
QT_MOC_LITERAL(19, 236, 12), // "selectPhrase"
QT_MOC_LITERAL(20, 249, 11), // "QModelIndex"
QT_MOC_LITERAL(21, 261, 5), // "index"
QT_MOC_LITERAL(22, 267, 10), // "editPhrase"
QT_MOC_LITERAL(23, 278, 20), // "gotoMessageFromGuess"
QT_MOC_LITERAL(24, 299, 11), // "moreGuesses"
QT_MOC_LITERAL(25, 311, 12), // "fewerGuesses"
QT_MOC_LITERAL(26, 324, 15) // "resetNumGuesses"

    },
    "PhraseView\0phraseSelected\0\0latestModel\0"
    "phrase\0showFewerGuessesAvailable\0"
    "canShow\0setCurrentMessageFromGuess\0"
    "modelIndex\0Candidate\0cand\0toggleGuessing\0"
    "update\0getMaxCandidates\0setMaxCandidates\0"
    "max\0getDefaultMaxCandidates\0guessShortcut\0"
    "nkey\0selectPhrase\0QModelIndex\0index\0"
    "editPhrase\0gotoMessageFromGuess\0"
    "moreGuesses\0fewerGuesses\0resetNumGuesses"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_PhraseView[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    2,   94,    2, 0x06 /* Public */,
       5,    1,   99,    2, 0x06 /* Public */,
       7,    2,  102,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      11,    0,  107,    2, 0x0a /* Public */,
      12,    0,  108,    2, 0x0a /* Public */,
      13,    0,  109,    2, 0x0a /* Public */,
      14,    1,  110,    2, 0x0a /* Public */,
      16,    0,  113,    2, 0x0a /* Public */,
      17,    1,  114,    2, 0x08 /* Private */,
      19,    1,  117,    2, 0x08 /* Private */,
      19,    0,  120,    2, 0x08 /* Private */,
      22,    0,  121,    2, 0x08 /* Private */,
      23,    0,  122,    2, 0x08 /* Private */,
      24,    0,  123,    2, 0x08 /* Private */,
      25,    0,  124,    2, 0x08 /* Private */,
      26,    0,  125,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::Int, QMetaType::QString,    3,    4,
    QMetaType::Void, QMetaType::Bool,    6,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 9,    8,   10,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Int,
    QMetaType::Void, QMetaType::Int,   15,
    QMetaType::Int,
    QMetaType::Void, QMetaType::Int,   18,
    QMetaType::Void, 0x80000000 | 20,   21,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void PhraseView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<PhraseView *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->phraseSelected((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 1: _t->showFewerGuessesAvailable((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 2: _t->setCurrentMessageFromGuess((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const Candidate(*)>(_a[2]))); break;
        case 3: _t->toggleGuessing(); break;
        case 4: _t->update(); break;
        case 5: { int _r = _t->getMaxCandidates();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->setMaxCandidates((*reinterpret_cast< const int(*)>(_a[1]))); break;
        case 7: { int _r = _t->getDefaultMaxCandidates();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 8: _t->guessShortcut((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 9: _t->selectPhrase((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 10: _t->selectPhrase(); break;
        case 11: _t->editPhrase(); break;
        case 12: _t->gotoMessageFromGuess(); break;
        case 13: _t->moreGuesses(); break;
        case 14: _t->fewerGuesses(); break;
        case 15: _t->resetNumGuesses(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (PhraseView::*)(int , const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PhraseView::phraseSelected)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (PhraseView::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PhraseView::showFewerGuessesAvailable)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (PhraseView::*)(int , const Candidate & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PhraseView::setCurrentMessageFromGuess)) {
                *result = 2;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject PhraseView::staticMetaObject = { {
    QMetaObject::SuperData::link<QTreeView::staticMetaObject>(),
    qt_meta_stringdata_PhraseView.data,
    qt_meta_data_PhraseView,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int PhraseView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QTreeView::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 16)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 16;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 16)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 16;
    }
    return _id;
}

// SIGNAL 0
void PhraseView::phraseSelected(int _t1, const QString & _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 PhraseView::showFewerGuessesAvailable(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void PhraseView::setCurrentMessageFromGuess(int _t1, const Candidate & _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, 2, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
