/****************************************************************************
** Meta object code from reading C++ file 'amountedit.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/amountedit.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'amountedit.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_AmountEdit_t {
    QByteArrayData data[20];
    char stringdata0[252];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_AmountEdit_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_AmountEdit_t qt_meta_stringdata_AmountEdit = {
    {
QT_MOC_LITERAL(0, 0, 10), // "AmountEdit"
QT_MOC_LITERAL(1, 11, 12), // "valueChanged"
QT_MOC_LITERAL(2, 24, 0), // ""
QT_MOC_LITERAL(3, 25, 4), // "text"
QT_MOC_LITERAL(4, 30, 20), // "validatedTextChanged"
QT_MOC_LITERAL(5, 51, 14), // "theTextChanged"
QT_MOC_LITERAL(6, 66, 20), // "slotCalculatorResult"
QT_MOC_LITERAL(7, 87, 18), // "slotCalculatorOpen"
QT_MOC_LITERAL(8, 106, 19), // "slotCalculatorClose"
QT_MOC_LITERAL(9, 126, 9), // "resetText"
QT_MOC_LITERAL(10, 136, 7), // "setText"
QT_MOC_LITERAL(11, 144, 3), // "txt"
QT_MOC_LITERAL(12, 148, 26), // "setCalculatorButtonVisible"
QT_MOC_LITERAL(13, 175, 4), // "show"
QT_MOC_LITERAL(14, 180, 26), // "calculatorButtonVisibility"
QT_MOC_LITERAL(15, 207, 10), // "allowEmpty"
QT_MOC_LITERAL(16, 218, 8), // "readOnly"
QT_MOC_LITERAL(17, 227, 5), // "value"
QT_MOC_LITERAL(18, 233, 12), // "MyMoneyMoney"
QT_MOC_LITERAL(19, 246, 5) // "valid"

    },
    "AmountEdit\0valueChanged\0\0text\0"
    "validatedTextChanged\0theTextChanged\0"
    "slotCalculatorResult\0slotCalculatorOpen\0"
    "slotCalculatorClose\0resetText\0setText\0"
    "txt\0setCalculatorButtonVisible\0show\0"
    "calculatorButtonVisibility\0allowEmpty\0"
    "readOnly\0value\0MyMoneyMoney\0valid"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_AmountEdit[] = {

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

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

 // slots: name, argc, parameters, tag, flags
       5,    1,   65,    2, 0x09 /* Protected */,
       6,    0,   68,    2, 0x09 /* Protected */,
       7,    0,   69,    2, 0x09 /* Protected */,
       8,    0,   70,    2, 0x09 /* Protected */,
       9,    0,   71,    2, 0x0a /* Public */,
      10,    1,   72,    2, 0x0a /* Public */,
      12,    1,   75,    2, 0x0a /* Public */,

 // 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::Void,
    QMetaType::Void, QMetaType::QString,   11,
    QMetaType::Void, QMetaType::Bool,   13,

 // properties: name, type, flags
      14, QMetaType::Bool, 0x00095003,
      15, QMetaType::Bool, 0x00095103,
      16, QMetaType::Bool, 0x00095103,
      17, 0x80000000 | 18, 0x0018410b,
      19, QMetaType::Bool, 0x00084001,

       0        // eod
};

void AmountEdit::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        AmountEdit *_t = static_cast<AmountEdit *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->valueChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 1: _t->validatedTextChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 2: _t->theTextChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 3: _t->slotCalculatorResult(); break;
        case 4: _t->slotCalculatorOpen(); break;
        case 5: _t->slotCalculatorClose(); break;
        case 6: _t->resetText(); break;
        case 7: _t->setText((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 8: _t->setCalculatorButtonVisible((*reinterpret_cast< const bool(*)>(_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 (AmountEdit::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&AmountEdit::valueChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (AmountEdit::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&AmountEdit::validatedTextChanged)) {
                *result = 1;
                return;
            }
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 3:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< MyMoneyMoney >(); break;
        }
    }

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

const QMetaObject AmountEdit::staticMetaObject = {
    { &QLineEdit::staticMetaObject, qt_meta_stringdata_AmountEdit.data,
      qt_meta_data_AmountEdit,  qt_static_metacall, nullptr, nullptr}
};


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

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

int AmountEdit::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QLineEdit::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 9)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 9;
    }
#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 -= 5;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 5;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

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

// SIGNAL 1
void AmountEdit::validatedTextChanged(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
