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

#include "../../../../../kmymoney/widgets/kmymoneyselector.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kmymoneyselector.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.1. 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_KMyMoneySelector_t {
    QByteArrayData data[17];
    char stringdata0[192];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KMyMoneySelector_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KMyMoneySelector_t qt_meta_stringdata_KMyMoneySelector = {
    {
QT_MOC_LITERAL(0, 0, 16), // "KMyMoneySelector"
QT_MOC_LITERAL(1, 17, 12), // "stateChanged"
QT_MOC_LITERAL(2, 30, 0), // ""
QT_MOC_LITERAL(3, 31, 12), // "itemSelected"
QT_MOC_LITERAL(4, 44, 2), // "id"
QT_MOC_LITERAL(5, 47, 18), // "slotSelectAllItems"
QT_MOC_LITERAL(6, 66, 20), // "slotDeselectAllItems"
QT_MOC_LITERAL(7, 87, 18), // "slotMakeCompletion"
QT_MOC_LITERAL(8, 106, 3), // "exp"
QT_MOC_LITERAL(9, 110, 3), // "txt"
QT_MOC_LITERAL(10, 114, 16), // "slotItemSelected"
QT_MOC_LITERAL(11, 131, 16), // "QTreeWidgetItem*"
QT_MOC_LITERAL(12, 148, 4), // "it_v"
QT_MOC_LITERAL(13, 153, 15), // "slotItemPressed"
QT_MOC_LITERAL(14, 169, 4), // "item"
QT_MOC_LITERAL(15, 174, 3), // "col"
QT_MOC_LITERAL(16, 178, 13) // "selectedItems"

    },
    "KMyMoneySelector\0stateChanged\0\0"
    "itemSelected\0id\0slotSelectAllItems\0"
    "slotDeselectAllItems\0slotMakeCompletion\0"
    "exp\0txt\0slotItemSelected\0QTreeWidgetItem*\0"
    "it_v\0slotItemPressed\0item\0col\0"
    "selectedItems"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KMyMoneySelector[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   54,    2, 0x06 /* Public */,
       3,    1,   55,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       5,    0,   58,    2, 0x0a /* Public */,
       6,    0,   59,    2, 0x0a /* Public */,
       7,    1,   60,    2, 0x0a /* Public */,
       7,    1,   63,    2, 0x0a /* Public */,
      10,    1,   66,    2, 0x09 /* Protected */,
      13,    2,   69,    2, 0x09 /* Protected */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    4,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Int, QMetaType::QRegExp,    8,
    QMetaType::Int, QMetaType::QString,    9,
    QMetaType::Void, 0x80000000 | 11,   12,
    QMetaType::Void, 0x80000000 | 11, QMetaType::Int,   14,   15,

 // properties: name, type, flags
      16, QMetaType::QStringList, 0x00084001,

       0        // eod
};

void KMyMoneySelector::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KMyMoneySelector *_t = static_cast<KMyMoneySelector *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->stateChanged(); break;
        case 1: _t->itemSelected((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 2: _t->slotSelectAllItems(); break;
        case 3: _t->slotDeselectAllItems(); break;
        case 4: { int _r = _t->slotMakeCompletion((*reinterpret_cast< const QRegExp(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 5: { int _r = _t->slotMakeCompletion((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->slotItemSelected((*reinterpret_cast< QTreeWidgetItem*(*)>(_a[1]))); break;
        case 7: _t->slotItemPressed((*reinterpret_cast< QTreeWidgetItem*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (KMyMoneySelector::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KMyMoneySelector::stateChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (KMyMoneySelector::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KMyMoneySelector::itemSelected)) {
                *result = 1;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        KMyMoneySelector *_t = static_cast<KMyMoneySelector *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QStringList*>(_v) = _t->selectedItems(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject KMyMoneySelector::staticMetaObject = {
    { &QWidget::staticMetaObject, qt_meta_stringdata_KMyMoneySelector.data,
      qt_meta_data_KMyMoneySelector,  qt_static_metacall, nullptr, nullptr}
};


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

void *KMyMoneySelector::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_KMyMoneySelector.stringdata0))
        return static_cast<void*>(const_cast< KMyMoneySelector*>(this));
    return QWidget::qt_metacast(_clname);
}

int KMyMoneySelector::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 8;
    }
#ifndef QT_NO_PROPERTIES
   else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 1;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void KMyMoneySelector::stateChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void KMyMoneySelector::itemSelected(const QString & _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
