/****************************************************************************
** Meta object code from reading C++ file 'kmymoneyedit.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/kmymoneyedit.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kmymoneyedit.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_KMyMoneyEdit_t {
    QByteArrayData data[24];
    char stringdata0[300];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KMyMoneyEdit_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KMyMoneyEdit_t qt_meta_stringdata_KMyMoneyEdit = {
    {
QT_MOC_LITERAL(0, 0, 12), // "KMyMoneyEdit"
QT_MOC_LITERAL(1, 13, 12), // "valueChanged"
QT_MOC_LITERAL(2, 26, 0), // ""
QT_MOC_LITERAL(3, 27, 4), // "text"
QT_MOC_LITERAL(4, 32, 11), // "textChanged"
QT_MOC_LITERAL(5, 44, 8), // "loadText"
QT_MOC_LITERAL(6, 53, 9), // "resetText"
QT_MOC_LITERAL(7, 63, 9), // "clearText"
QT_MOC_LITERAL(8, 73, 7), // "setText"
QT_MOC_LITERAL(9, 81, 3), // "txt"
QT_MOC_LITERAL(10, 85, 26), // "setCalculatorButtonVisible"
QT_MOC_LITERAL(11, 112, 4), // "show"
QT_MOC_LITERAL(12, 117, 21), // "setResetButtonVisible"
QT_MOC_LITERAL(13, 139, 11), // "setReadOnly"
QT_MOC_LITERAL(14, 151, 8), // "readOnly"
QT_MOC_LITERAL(15, 160, 14), // "theTextChanged"
QT_MOC_LITERAL(16, 175, 20), // "slotCalculatorResult"
QT_MOC_LITERAL(17, 196, 18), // "slotCalculatorOpen"
QT_MOC_LITERAL(18, 215, 26), // "calculatorButtonVisibility"
QT_MOC_LITERAL(19, 242, 21), // "resetButtonVisibility"
QT_MOC_LITERAL(20, 264, 10), // "allowEmpty"
QT_MOC_LITERAL(21, 275, 5), // "value"
QT_MOC_LITERAL(22, 281, 12), // "MyMoneyMoney"
QT_MOC_LITERAL(23, 294, 5) // "valid"

    },
    "KMyMoneyEdit\0valueChanged\0\0text\0"
    "textChanged\0loadText\0resetText\0clearText\0"
    "setText\0txt\0setCalculatorButtonVisible\0"
    "show\0setResetButtonVisible\0setReadOnly\0"
    "readOnly\0theTextChanged\0slotCalculatorResult\0"
    "slotCalculatorOpen\0calculatorButtonVisibility\0"
    "resetButtonVisibility\0allowEmpty\0value\0"
    "MyMoneyMoney\0valid"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KMyMoneyEdit[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   74,    2, 0x06 /* Public */,
       4,    1,   77,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       5,    1,   80,    2, 0x0a /* Public */,
       6,    0,   83,    2, 0x0a /* Public */,
       7,    0,   84,    2, 0x0a /* Public */,
       8,    1,   85,    2, 0x0a /* Public */,
      10,    1,   88,    2, 0x0a /* Public */,
      12,    1,   91,    2, 0x0a /* Public */,
      13,    1,   94,    2, 0x0a /* Public */,
      15,    1,   97,    2, 0x09 /* Protected */,
      16,    0,  100,    2, 0x09 /* Protected */,
      17,    0,  101,    2, 0x09 /* Protected */,

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

 // slots: parameters
    QMetaType::Void, QMetaType::QString,    3,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    9,
    QMetaType::Void, QMetaType::Bool,   11,
    QMetaType::Void, QMetaType::Bool,   11,
    QMetaType::Void, QMetaType::Bool,   14,
    QMetaType::Void, QMetaType::QString,    3,
    QMetaType::Void,
    QMetaType::Void,

 // properties: name, type, flags
      18, QMetaType::Bool, 0x00095003,
      19, QMetaType::Bool, 0x00095003,
      20, QMetaType::Bool, 0x00095103,
      14, QMetaType::Bool, 0x00095103,
      21, 0x80000000 | 22, 0x0018410b,
      23, QMetaType::Bool, 0x00084001,

       0        // eod
};

void KMyMoneyEdit::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KMyMoneyEdit *_t = static_cast<KMyMoneyEdit *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->valueChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 1: _t->textChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 2: _t->loadText((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 3: _t->resetText(); break;
        case 4: _t->clearText(); break;
        case 5: _t->setText((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 6: _t->setCalculatorButtonVisible((*reinterpret_cast< const bool(*)>(_a[1]))); break;
        case 7: _t->setResetButtonVisible((*reinterpret_cast< const bool(*)>(_a[1]))); break;
        case 8: _t->setReadOnly((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 9: _t->theTextChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 10: _t->slotCalculatorResult(); break;
        case 11: _t->slotCalculatorOpen(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (KMyMoneyEdit::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KMyMoneyEdit::valueChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (KMyMoneyEdit::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KMyMoneyEdit::textChanged)) {
                *result = 1;
                return;
            }
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 4:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< MyMoneyMoney >(); break;
        }
    }

#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        KMyMoneyEdit *_t = static_cast<KMyMoneyEdit *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->isCalculatorButtonVisible(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->isResetButtonVisible(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->isEmptyAllowed(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->isReadOnly(); break;
        case 4: *reinterpret_cast< MyMoneyMoney*>(_v) = _t->value(); break;
        case 5: *reinterpret_cast< bool*>(_v) = _t->isValid(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        KMyMoneyEdit *_t = static_cast<KMyMoneyEdit *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setCalculatorButtonVisible(*reinterpret_cast< bool*>(_v)); break;
        case 1: _t->setResetButtonVisible(*reinterpret_cast< bool*>(_v)); break;
        case 2: _t->setAllowEmpty(*reinterpret_cast< bool*>(_v)); break;
        case 3: _t->setReadOnly(*reinterpret_cast< bool*>(_v)); break;
        case 4: _t->setValue(*reinterpret_cast< MyMoneyMoney*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject KMyMoneyEdit::staticMetaObject = {
    { &QWidget::staticMetaObject, qt_meta_stringdata_KMyMoneyEdit.data,
      qt_meta_data_KMyMoneyEdit,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KMyMoneyEdit::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 < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 12;
    }
#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 -= 6;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 6;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

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

// SIGNAL 1
void KMyMoneyEdit::textChanged(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
