/****************************************************************************
** Meta object code from reading C++ file 'kundo2stack.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/undo/kundo2stack.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kundo2stack.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_KUndo2QStack_t {
    QByteArrayData data[22];
    char stringdata0[228];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KUndo2QStack_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KUndo2QStack_t qt_meta_stringdata_KUndo2QStack = {
    {
QT_MOC_LITERAL(0, 0, 12), // "KUndo2QStack"
QT_MOC_LITERAL(1, 13, 12), // "indexChanged"
QT_MOC_LITERAL(2, 26, 0), // ""
QT_MOC_LITERAL(3, 27, 3), // "idx"
QT_MOC_LITERAL(4, 31, 12), // "cleanChanged"
QT_MOC_LITERAL(5, 44, 5), // "clean"
QT_MOC_LITERAL(6, 50, 14), // "canUndoChanged"
QT_MOC_LITERAL(7, 65, 7), // "canUndo"
QT_MOC_LITERAL(8, 73, 14), // "canRedoChanged"
QT_MOC_LITERAL(9, 88, 7), // "canRedo"
QT_MOC_LITERAL(10, 96, 15), // "undoTextChanged"
QT_MOC_LITERAL(11, 112, 14), // "undoActionText"
QT_MOC_LITERAL(12, 127, 15), // "redoTextChanged"
QT_MOC_LITERAL(13, 143, 14), // "redoActionText"
QT_MOC_LITERAL(14, 158, 8), // "setClean"
QT_MOC_LITERAL(15, 167, 8), // "setIndex"
QT_MOC_LITERAL(16, 176, 4), // "undo"
QT_MOC_LITERAL(17, 181, 4), // "redo"
QT_MOC_LITERAL(18, 186, 9), // "setActive"
QT_MOC_LITERAL(19, 196, 6), // "active"
QT_MOC_LITERAL(20, 203, 14), // "purgeRedoState"
QT_MOC_LITERAL(21, 218, 9) // "undoLimit"

    },
    "KUndo2QStack\0indexChanged\0\0idx\0"
    "cleanChanged\0clean\0canUndoChanged\0"
    "canUndo\0canRedoChanged\0canRedo\0"
    "undoTextChanged\0undoActionText\0"
    "redoTextChanged\0redoActionText\0setClean\0"
    "setIndex\0undo\0redo\0setActive\0active\0"
    "purgeRedoState\0undoLimit"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KUndo2QStack[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   79,    2, 0x06 /* Public */,
       4,    1,   82,    2, 0x06 /* Public */,
       6,    1,   85,    2, 0x06 /* Public */,
       8,    1,   88,    2, 0x06 /* Public */,
      10,    1,   91,    2, 0x06 /* Public */,
      12,    1,   94,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      14,    0,   97,    2, 0x0a /* Public */,
      15,    1,   98,    2, 0x0a /* Public */,
      16,    0,  101,    2, 0x0a /* Public */,
      17,    0,  102,    2, 0x0a /* Public */,
      18,    1,  103,    2, 0x0a /* Public */,
      18,    0,  106,    2, 0x2a /* Public | MethodCloned */,
      20,    0,  107,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Void, QMetaType::Bool,    5,
    QMetaType::Void, QMetaType::Bool,    7,
    QMetaType::Void, QMetaType::Bool,    9,
    QMetaType::Void, QMetaType::QString,   11,
    QMetaType::Void, QMetaType::QString,   13,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   19,
    QMetaType::Void,
    QMetaType::Void,

 // properties: name, type, flags
      19, QMetaType::Bool, 0x00095103,
      21, QMetaType::Int, 0x00095103,

       0        // eod
};

void KUndo2QStack::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KUndo2QStack *_t = static_cast<KUndo2QStack *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->indexChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: _t->cleanChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 2: _t->canUndoChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 3: _t->canRedoChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 4: _t->undoTextChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 5: _t->redoTextChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 6: _t->setClean(); break;
        case 7: _t->setIndex((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 8: _t->undo(); break;
        case 9: _t->redo(); break;
        case 10: _t->setActive((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 11: _t->setActive(); break;
        case 12: _t->purgeRedoState(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (KUndo2QStack::*_t)(int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KUndo2QStack::indexChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (KUndo2QStack::*_t)(bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KUndo2QStack::cleanChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (KUndo2QStack::*_t)(bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KUndo2QStack::canUndoChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (KUndo2QStack::*_t)(bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KUndo2QStack::canRedoChanged)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (KUndo2QStack::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KUndo2QStack::undoTextChanged)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (KUndo2QStack::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KUndo2QStack::redoTextChanged)) {
                *result = 5;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        KUndo2QStack *_t = static_cast<KUndo2QStack *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->isActive(); break;
        case 1: *reinterpret_cast< int*>(_v) = _t->undoLimit(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        KUndo2QStack *_t = static_cast<KUndo2QStack *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setActive(*reinterpret_cast< bool*>(_v)); break;
        case 1: _t->setUndoLimit(*reinterpret_cast< int*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject KUndo2QStack::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KUndo2QStack.data,
      qt_meta_data_KUndo2QStack,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *KUndo2QStack::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_KUndo2QStack.stringdata0))
        return static_cast<void*>(const_cast< KUndo2QStack*>(this));
    return QObject::qt_metacast(_clname);
}

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

// SIGNAL 0
void KUndo2QStack::indexChanged(int _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void KUndo2QStack::cleanChanged(bool _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

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

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

// SIGNAL 4
void KUndo2QStack::undoTextChanged(const QString & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void KUndo2QStack::redoTextChanged(const QString & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}
struct qt_meta_stringdata_KUndo2Stack_t {
    QByteArrayData data[1];
    char stringdata0[12];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KUndo2Stack_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KUndo2Stack_t qt_meta_stringdata_KUndo2Stack = {
    {
QT_MOC_LITERAL(0, 0, 11) // "KUndo2Stack"

    },
    "KUndo2Stack"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KUndo2Stack[] = {

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

       0        // eod
};

void KUndo2Stack::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    Q_UNUSED(_o);
    Q_UNUSED(_id);
    Q_UNUSED(_c);
    Q_UNUSED(_a);
}

const QMetaObject KUndo2Stack::staticMetaObject = {
    { &KUndo2QStack::staticMetaObject, qt_meta_stringdata_KUndo2Stack.data,
      qt_meta_data_KUndo2Stack,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *KUndo2Stack::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_KUndo2Stack.stringdata0))
        return static_cast<void*>(const_cast< KUndo2Stack*>(this));
    return KUndo2QStack::qt_metacast(_clname);
}

int KUndo2Stack::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = KUndo2QStack::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    return _id;
}
QT_END_MOC_NAMESPACE
