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

#include "../../../src/kexi-3.0.1/src/widget/navigator/KexiProjectModel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'KexiProjectModel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.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
struct qt_meta_stringdata_KexiProjectModel_t {
    QByteArrayData data[16];
    char stringdata0[191];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KexiProjectModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KexiProjectModel_t qt_meta_stringdata_KexiProjectModel = {
    {
QT_MOC_LITERAL(0, 0, 16), // "KexiProjectModel"
QT_MOC_LITERAL(1, 17, 10), // "renameItem"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 15), // "KexiPart::Item*"
QT_MOC_LITERAL(4, 45, 4), // "item"
QT_MOC_LITERAL(5, 50, 7), // "newName"
QT_MOC_LITERAL(6, 58, 5), // "bool*"
QT_MOC_LITERAL(7, 64, 6), // "succes"
QT_MOC_LITERAL(8, 71, 17), // "changeItemCaption"
QT_MOC_LITERAL(9, 89, 10), // "newCaption"
QT_MOC_LITERAL(10, 100, 21), // "highlightSearchedItem"
QT_MOC_LITERAL(11, 122, 5), // "index"
QT_MOC_LITERAL(12, 128, 20), // "activateSearchedItem"
QT_MOC_LITERAL(13, 149, 11), // "slotAddItem"
QT_MOC_LITERAL(14, 161, 14), // "slotRemoveItem"
QT_MOC_LITERAL(15, 176, 14) // "KexiPart::Item"

    },
    "KexiProjectModel\0renameItem\0\0"
    "KexiPart::Item*\0item\0newName\0bool*\0"
    "succes\0changeItemCaption\0newCaption\0"
    "highlightSearchedItem\0index\0"
    "activateSearchedItem\0slotAddItem\0"
    "slotRemoveItem\0KexiPart::Item"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KexiProjectModel[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    3,   44,    2, 0x06 /* Public */,
       8,    3,   51,    2, 0x06 /* Public */,
      10,    1,   58,    2, 0x06 /* Public */,
      12,    1,   61,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      13,    1,   64,    2, 0x0a /* Public */,
      14,    1,   67,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3, QMetaType::QString, 0x80000000 | 6,    4,    5,    7,
    QMetaType::Void, 0x80000000 | 3, QMetaType::QString, 0x80000000 | 6,    4,    9,    7,
    QMetaType::Void, QMetaType::QModelIndex,   11,
    QMetaType::Void, QMetaType::QModelIndex,   11,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 15,    4,

       0        // eod
};

void KexiProjectModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KexiProjectModel *_t = static_cast<KexiProjectModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->renameItem((*reinterpret_cast< KexiPart::Item*(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< bool*(*)>(_a[3]))); break;
        case 1: _t->changeItemCaption((*reinterpret_cast< KexiPart::Item*(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< bool*(*)>(_a[3]))); break;
        case 2: _t->highlightSearchedItem((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 3: _t->activateSearchedItem((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 4: _t->slotAddItem((*reinterpret_cast< KexiPart::Item*(*)>(_a[1]))); break;
        case 5: _t->slotRemoveItem((*reinterpret_cast< const KexiPart::Item(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (KexiProjectModel::*_t)(KexiPart::Item * , const QString & , bool * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KexiProjectModel::renameItem)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (KexiProjectModel::*_t)(KexiPart::Item * , const QString & , bool * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KexiProjectModel::changeItemCaption)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (KexiProjectModel::*_t)(const QModelIndex & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KexiProjectModel::highlightSearchedItem)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (KexiProjectModel::*_t)(const QModelIndex & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KexiProjectModel::activateSearchedItem)) {
                *result = 3;
                return;
            }
        }
    }
}

const QMetaObject KexiProjectModel::staticMetaObject = {
    { &QAbstractItemModel::staticMetaObject, qt_meta_stringdata_KexiProjectModel.data,
      qt_meta_data_KexiProjectModel,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *KexiProjectModel::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_KexiProjectModel.stringdata0))
        return static_cast<void*>(const_cast< KexiProjectModel*>(this));
    if (!strcmp(_clname, "KexiSearchableModel"))
        return static_cast< KexiSearchableModel*>(const_cast< KexiProjectModel*>(this));
    return QAbstractItemModel::qt_metacast(_clname);
}

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

// SIGNAL 0
void KexiProjectModel::renameItem(KexiPart::Item * _t1, const QString & _t2, bool * _t3)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void KexiProjectModel::changeItemCaption(KexiPart::Item * _t1, const QString & _t2, bool * _t3)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void KexiProjectModel::highlightSearchedItem(const QModelIndex & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void KexiProjectModel::activateSearchedItem(const QModelIndex & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_END_MOC_NAMESPACE
