/****************************************************************************
** Meta object code from reading C++ file 'mdiwidget.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 "../../../../../kbibtex-0.10.0/src/program/mdiwidget.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'mdiwidget.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_MDIWidget_t {
    QByteArrayData data[19];
    char stringdata0[255];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_MDIWidget_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_MDIWidget_t qt_meta_stringdata_MDIWidget = {
    {
QT_MOC_LITERAL(0, 0, 9), // "MDIWidget"
QT_MOC_LITERAL(1, 10, 10), // "setCaption"
QT_MOC_LITERAL(2, 21, 0), // ""
QT_MOC_LITERAL(3, 22, 16), // "documentSwitched"
QT_MOC_LITERAL(4, 39, 9), // "FileView*"
QT_MOC_LITERAL(5, 49, 17), // "activePartChanged"
QT_MOC_LITERAL(6, 67, 13), // "KParts::Part*"
QT_MOC_LITERAL(7, 81, 11), // "documentNew"
QT_MOC_LITERAL(8, 93, 12), // "documentOpen"
QT_MOC_LITERAL(9, 106, 15), // "documentOpenURL"
QT_MOC_LITERAL(10, 122, 7), // "setFile"
QT_MOC_LITERAL(11, 130, 13), // "OpenFileInfo*"
QT_MOC_LITERAL(12, 144, 12), // "openFileInfo"
QT_MOC_LITERAL(13, 157, 13), // "KService::Ptr"
QT_MOC_LITERAL(14, 171, 10), // "servicePtr"
QT_MOC_LITERAL(15, 182, 22), // "slotStatusFlagsChanged"
QT_MOC_LITERAL(16, 205, 25), // "OpenFileInfo::StatusFlags"
QT_MOC_LITERAL(17, 231, 11), // "slotOpenLRU"
QT_MOC_LITERAL(18, 243, 11) // "QModelIndex"

    },
    "MDIWidget\0setCaption\0\0documentSwitched\0"
    "FileView*\0activePartChanged\0KParts::Part*\0"
    "documentNew\0documentOpen\0documentOpenURL\0"
    "setFile\0OpenFileInfo*\0openFileInfo\0"
    "KService::Ptr\0servicePtr\0"
    "slotStatusFlagsChanged\0OpenFileInfo::StatusFlags\0"
    "slotOpenLRU\0QModelIndex"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_MDIWidget[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   64,    2, 0x06 /* Public */,
       3,    2,   67,    2, 0x06 /* Public */,
       5,    1,   72,    2, 0x06 /* Public */,
       7,    0,   75,    2, 0x06 /* Public */,
       8,    0,   76,    2, 0x06 /* Public */,
       9,    1,   77,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      10,    2,   80,    2, 0x0a /* Public */,
      10,    1,   85,    2, 0x2a /* Public | MethodCloned */,
      15,    1,   88,    2, 0x08 /* Private */,
      17,    1,   91,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString,    2,
    QMetaType::Void, 0x80000000 | 4, 0x80000000 | 4,    2,    2,
    QMetaType::Void, 0x80000000 | 6,    2,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QUrl,    2,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 11, 0x80000000 | 13,   12,   14,
    QMetaType::Void, 0x80000000 | 11,   12,
    QMetaType::Void, 0x80000000 | 16,    2,
    QMetaType::Void, 0x80000000 | 18,    2,

       0        // eod
};

void MDIWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<MDIWidget *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->setCaption((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 1: _t->documentSwitched((*reinterpret_cast< FileView*(*)>(_a[1])),(*reinterpret_cast< FileView*(*)>(_a[2]))); break;
        case 2: _t->activePartChanged((*reinterpret_cast< KParts::Part*(*)>(_a[1]))); break;
        case 3: _t->documentNew(); break;
        case 4: _t->documentOpen(); break;
        case 5: _t->documentOpenURL((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;
        case 6: _t->setFile((*reinterpret_cast< OpenFileInfo*(*)>(_a[1])),(*reinterpret_cast< KService::Ptr(*)>(_a[2]))); break;
        case 7: _t->setFile((*reinterpret_cast< OpenFileInfo*(*)>(_a[1]))); break;
        case 8: _t->slotStatusFlagsChanged((*reinterpret_cast< OpenFileInfo::StatusFlags(*)>(_a[1]))); break;
        case 9: _t->slotOpenLRU((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< OpenFileInfo* >(); break;
            }
            break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< OpenFileInfo* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (MDIWidget::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MDIWidget::setCaption)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (MDIWidget::*)(FileView * , FileView * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MDIWidget::documentSwitched)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (MDIWidget::*)(KParts::Part * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MDIWidget::activePartChanged)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (MDIWidget::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MDIWidget::documentNew)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (MDIWidget::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MDIWidget::documentOpen)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (MDIWidget::*)(const QUrl & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MDIWidget::documentOpenURL)) {
                *result = 5;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject MDIWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QStackedWidget::staticMetaObject>(),
    qt_meta_stringdata_MDIWidget.data,
    qt_meta_data_MDIWidget,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int MDIWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QStackedWidget::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)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    return _id;
}

// SIGNAL 0
void MDIWidget::setCaption(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void MDIWidget::documentSwitched(FileView * _t1, FileView * _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, 1, _a);
}

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

// SIGNAL 3
void MDIWidget::documentNew()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void MDIWidget::documentOpen()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void MDIWidget::documentOpenURL(const QUrl & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
