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

#include "../../src/ktorrent-5.1.0/ktorrent/groups/groupview.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'groupview.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.4. 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_kt__GroupView_t {
    QByteArrayData data[17];
    char stringdata0[182];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_kt__GroupView_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_kt__GroupView_t qt_meta_stringdata_kt__GroupView = {
    {
QT_MOC_LITERAL(0, 0, 13), // "kt::GroupView"
QT_MOC_LITERAL(1, 14, 19), // "currentGroupChanged"
QT_MOC_LITERAL(2, 34, 0), // ""
QT_MOC_LITERAL(3, 35, 10), // "kt::Group*"
QT_MOC_LITERAL(4, 46, 1), // "g"
QT_MOC_LITERAL(5, 48, 7), // "openTab"
QT_MOC_LITERAL(6, 56, 6), // "Group*"
QT_MOC_LITERAL(7, 63, 16), // "updateGroupCount"
QT_MOC_LITERAL(8, 80, 13), // "onItemClicked"
QT_MOC_LITERAL(9, 94, 5), // "index"
QT_MOC_LITERAL(10, 100, 15), // "showContextMenu"
QT_MOC_LITERAL(11, 116, 1), // "p"
QT_MOC_LITERAL(12, 118, 8), // "addGroup"
QT_MOC_LITERAL(13, 127, 11), // "removeGroup"
QT_MOC_LITERAL(14, 139, 13), // "editGroupName"
QT_MOC_LITERAL(15, 153, 15), // "editGroupPolicy"
QT_MOC_LITERAL(16, 169, 12) // "openInNewTab"

    },
    "kt::GroupView\0currentGroupChanged\0\0"
    "kt::Group*\0g\0openTab\0Group*\0"
    "updateGroupCount\0onItemClicked\0index\0"
    "showContextMenu\0p\0addGroup\0removeGroup\0"
    "editGroupName\0editGroupPolicy\0"
    "openInNewTab"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_kt__GroupView[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   64,    2, 0x06 /* Public */,
       5,    1,   67,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       7,    0,   70,    2, 0x0a /* Public */,
       8,    1,   71,    2, 0x08 /* Private */,
      10,    1,   74,    2, 0x08 /* Private */,
      12,    0,   77,    2, 0x08 /* Private */,
      13,    0,   78,    2, 0x08 /* Private */,
      14,    0,   79,    2, 0x08 /* Private */,
      15,    0,   80,    2, 0x08 /* Private */,
      16,    0,   81,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 6,    4,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::QModelIndex,    9,
    QMetaType::Void, QMetaType::QPoint,   11,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void kt::GroupView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        GroupView *_t = static_cast<GroupView *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->currentGroupChanged((*reinterpret_cast< kt::Group*(*)>(_a[1]))); break;
        case 1: _t->openTab((*reinterpret_cast< Group*(*)>(_a[1]))); break;
        case 2: _t->updateGroupCount(); break;
        case 3: _t->onItemClicked((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 4: _t->showContextMenu((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
        case 5: _t->addGroup(); break;
        case 6: _t->removeGroup(); break;
        case 7: _t->editGroupName(); break;
        case 8: _t->editGroupPolicy(); break;
        case 9: _t->openInNewTab(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (GroupView::*_t)(kt::Group * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GroupView::currentGroupChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (GroupView::*_t)(Group * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GroupView::openTab)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject kt::GroupView::staticMetaObject = {
    { &QTreeView::staticMetaObject, qt_meta_stringdata_kt__GroupView.data,
      qt_meta_data_kt__GroupView,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

// SIGNAL 0
void kt::GroupView::currentGroupChanged(kt::Group * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void kt::GroupView::openTab(Group * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
