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

#include "../../../../../../../src/qtquick1-opensource-src-5.5.1/examples/declarative/cppextensions/qgraphicslayouts/qgraphicslinearlayout/linearlayout.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'linearlayout.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.5.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
struct qt_meta_stringdata_GraphicsLinearLayoutStretchItemObject_t {
    QByteArrayData data[1];
    char stringdata0[38];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_GraphicsLinearLayoutStretchItemObject_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_GraphicsLinearLayoutStretchItemObject_t qt_meta_stringdata_GraphicsLinearLayoutStretchItemObject = {
    {
QT_MOC_LITERAL(0, 0, 37) // "GraphicsLinearLayoutStretchIt..."

    },
    "GraphicsLinearLayoutStretchItemObject"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_GraphicsLinearLayoutStretchItemObject[] = {

 // 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 GraphicsLinearLayoutStretchItemObject::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 GraphicsLinearLayoutStretchItemObject::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_GraphicsLinearLayoutStretchItemObject.data,
      qt_meta_data_GraphicsLinearLayoutStretchItemObject,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *GraphicsLinearLayoutStretchItemObject::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_GraphicsLinearLayoutStretchItemObject.stringdata0))
        return static_cast<void*>(const_cast< GraphicsLinearLayoutStretchItemObject*>(this));
    if (!strcmp(_clname, "QGraphicsLayoutItem"))
        return static_cast< QGraphicsLayoutItem*>(const_cast< GraphicsLinearLayoutStretchItemObject*>(this));
    if (!strcmp(_clname, "org.qt-project.Qt.QGraphicsLayoutItem"))
        return static_cast< QGraphicsLayoutItem*>(const_cast< GraphicsLinearLayoutStretchItemObject*>(this));
    return QObject::qt_metacast(_clname);
}

int GraphicsLinearLayoutStretchItemObject::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    return _id;
}
struct qt_meta_stringdata_GraphicsLinearLayoutObject_t {
    QByteArrayData data[14];
    char stringdata0[229];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_GraphicsLinearLayoutObject_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_GraphicsLinearLayoutObject_t qt_meta_stringdata_GraphicsLinearLayoutObject = {
    {
QT_MOC_LITERAL(0, 0, 26), // "GraphicsLinearLayoutObject"
QT_MOC_LITERAL(1, 27, 15), // "DefaultProperty"
QT_MOC_LITERAL(2, 43, 8), // "children"
QT_MOC_LITERAL(3, 52, 13), // "updateStretch"
QT_MOC_LITERAL(4, 66, 0), // ""
QT_MOC_LITERAL(5, 67, 20), // "QGraphicsLayoutItem*"
QT_MOC_LITERAL(6, 88, 13), // "updateSpacing"
QT_MOC_LITERAL(7, 102, 15), // "updateAlignment"
QT_MOC_LITERAL(8, 118, 13), // "Qt::Alignment"
QT_MOC_LITERAL(9, 132, 45), // "QDeclarativeListProperty<QGra..."
QT_MOC_LITERAL(10, 178, 11), // "orientation"
QT_MOC_LITERAL(11, 190, 15), // "Qt::Orientation"
QT_MOC_LITERAL(12, 206, 7), // "spacing"
QT_MOC_LITERAL(13, 214, 14) // "contentsMargin"

    },
    "GraphicsLinearLayoutObject\0DefaultProperty\0"
    "children\0updateStretch\0\0QGraphicsLayoutItem*\0"
    "updateSpacing\0updateAlignment\0"
    "Qt::Alignment\0"
    "QDeclarativeListProperty<QGraphicsLayoutItem>\0"
    "orientation\0Qt::Orientation\0spacing\0"
    "contentsMargin"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_GraphicsLinearLayoutObject[] = {

 // content:
       7,       // revision
       0,       // classname
       1,   14, // classinfo
       3,   16, // methods
       4,   46, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // classinfo: key, value
       1,    2,

 // slots: name, argc, parameters, tag, flags
       3,    2,   31,    4, 0x08 /* Private */,
       6,    2,   36,    4, 0x08 /* Private */,
       7,    2,   41,    4, 0x08 /* Private */,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 5, QMetaType::Int,    4,    4,
    QMetaType::Void, 0x80000000 | 5, QMetaType::Int,    4,    4,
    QMetaType::Void, 0x80000000 | 5, 0x80000000 | 8,    4,    4,

 // properties: name, type, flags
       2, 0x80000000 | 9, 0x00095009,
      10, 0x80000000 | 11, 0x0009510b,
      12, QMetaType::QReal, 0x00095103,
      13, QMetaType::QReal, 0x00095103,

       0        // eod
};

void GraphicsLinearLayoutObject::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        GraphicsLinearLayoutObject *_t = static_cast<GraphicsLinearLayoutObject *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->updateStretch((*reinterpret_cast< QGraphicsLayoutItem*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 1: _t->updateSpacing((*reinterpret_cast< QGraphicsLayoutItem*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 2: _t->updateAlignment((*reinterpret_cast< QGraphicsLayoutItem*(*)>(_a[1])),(*reinterpret_cast< Qt::Alignment(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QGraphicsLayoutItem* >(); break;
            }
            break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QGraphicsLayoutItem* >(); break;
            }
            break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QGraphicsLayoutItem* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QDeclarativeListProperty<QGraphicsLayoutItem> >(); break;
        }
    }

#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        GraphicsLinearLayoutObject *_t = static_cast<GraphicsLinearLayoutObject *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QDeclarativeListProperty<QGraphicsLayoutItem>*>(_v) = _t->children(); break;
        case 1: *reinterpret_cast< Qt::Orientation*>(_v) = _t->orientation(); break;
        case 2: *reinterpret_cast< qreal*>(_v) = _t->spacing(); break;
        case 3: *reinterpret_cast< qreal*>(_v) = _t->contentsMargin(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        GraphicsLinearLayoutObject *_t = static_cast<GraphicsLinearLayoutObject *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setOrientation(*reinterpret_cast< Qt::Orientation*>(_v)); break;
        case 2: _t->setSpacing(*reinterpret_cast< qreal*>(_v)); break;
        case 3: _t->setContentsMargin(*reinterpret_cast< qreal*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject GraphicsLinearLayoutObject::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_GraphicsLinearLayoutObject.data,
      qt_meta_data_GraphicsLinearLayoutObject,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *GraphicsLinearLayoutObject::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_GraphicsLinearLayoutObject.stringdata0))
        return static_cast<void*>(const_cast< GraphicsLinearLayoutObject*>(this));
    if (!strcmp(_clname, "QGraphicsLinearLayout"))
        return static_cast< QGraphicsLinearLayout*>(const_cast< GraphicsLinearLayoutObject*>(this));
    if (!strcmp(_clname, "org.qt-project.Qt.QGraphicsLayout"))
        return static_cast< QGraphicsLayout*>(const_cast< GraphicsLinearLayoutObject*>(this));
    if (!strcmp(_clname, "org.qt-project.Qt.QGraphicsLayoutItem"))
        return static_cast< QGraphicsLayoutItem*>(const_cast< GraphicsLinearLayoutObject*>(this));
    return QObject::qt_metacast(_clname);
}

int GraphicsLinearLayoutObject::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 < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
#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 -= 4;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 4;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
struct qt_meta_stringdata_LinearLayoutAttached_t {
    QByteArrayData data[10];
    char stringdata0[136];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_LinearLayoutAttached_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_LinearLayoutAttached_t qt_meta_stringdata_LinearLayoutAttached = {
    {
QT_MOC_LITERAL(0, 0, 20), // "LinearLayoutAttached"
QT_MOC_LITERAL(1, 21, 14), // "stretchChanged"
QT_MOC_LITERAL(2, 36, 0), // ""
QT_MOC_LITERAL(3, 37, 20), // "QGraphicsLayoutItem*"
QT_MOC_LITERAL(4, 58, 16), // "alignmentChanged"
QT_MOC_LITERAL(5, 75, 13), // "Qt::Alignment"
QT_MOC_LITERAL(6, 89, 14), // "spacingChanged"
QT_MOC_LITERAL(7, 104, 13), // "stretchFactor"
QT_MOC_LITERAL(8, 118, 9), // "alignment"
QT_MOC_LITERAL(9, 128, 7) // "spacing"

    },
    "LinearLayoutAttached\0stretchChanged\0"
    "\0QGraphicsLayoutItem*\0alignmentChanged\0"
    "Qt::Alignment\0spacingChanged\0stretchFactor\0"
    "alignment\0spacing"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_LinearLayoutAttached[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    2,   29,    2, 0x06 /* Public */,
       4,    2,   34,    2, 0x06 /* Public */,
       6,    2,   39,    2, 0x06 /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3, QMetaType::Int,    2,    2,
    QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5,    2,    2,
    QMetaType::Void, 0x80000000 | 3, QMetaType::Int,    2,    2,

 // properties: name, type, flags
       7, QMetaType::Int, 0x00495103,
       8, 0x80000000 | 5, 0x0049510b,
       9, QMetaType::Int, 0x00495103,

 // properties: notify_signal_id
       0,
       1,
       2,

       0        // eod
};

void LinearLayoutAttached::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        LinearLayoutAttached *_t = static_cast<LinearLayoutAttached *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->stretchChanged((*reinterpret_cast< QGraphicsLayoutItem*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 1: _t->alignmentChanged((*reinterpret_cast< QGraphicsLayoutItem*(*)>(_a[1])),(*reinterpret_cast< Qt::Alignment(*)>(_a[2]))); break;
        case 2: _t->spacingChanged((*reinterpret_cast< QGraphicsLayoutItem*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QGraphicsLayoutItem* >(); break;
            }
            break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QGraphicsLayoutItem* >(); break;
            }
            break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QGraphicsLayoutItem* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (LinearLayoutAttached::*_t)(QGraphicsLayoutItem * , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&LinearLayoutAttached::stretchChanged)) {
                *result = 0;
            }
        }
        {
            typedef void (LinearLayoutAttached::*_t)(QGraphicsLayoutItem * , Qt::Alignment );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&LinearLayoutAttached::alignmentChanged)) {
                *result = 1;
            }
        }
        {
            typedef void (LinearLayoutAttached::*_t)(QGraphicsLayoutItem * , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&LinearLayoutAttached::spacingChanged)) {
                *result = 2;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        LinearLayoutAttached *_t = static_cast<LinearLayoutAttached *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = _t->stretchFactor(); break;
        case 1: *reinterpret_cast< Qt::Alignment*>(_v) = _t->alignment(); break;
        case 2: *reinterpret_cast< int*>(_v) = _t->spacing(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        LinearLayoutAttached *_t = static_cast<LinearLayoutAttached *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setStretchFactor(*reinterpret_cast< int*>(_v)); break;
        case 1: _t->setAlignment(*reinterpret_cast< Qt::Alignment*>(_v)); break;
        case 2: _t->setSpacing(*reinterpret_cast< int*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject LinearLayoutAttached::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_LinearLayoutAttached.data,
      qt_meta_data_LinearLayoutAttached,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

int LinearLayoutAttached::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 < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
#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 -= 3;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 3;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

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

// SIGNAL 1
void LinearLayoutAttached::alignmentChanged(QGraphicsLayoutItem * _t1, Qt::Alignment _t2)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void LinearLayoutAttached::spacingChanged(QGraphicsLayoutItem * _t1, int _t2)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
QT_END_MOC_NAMESPACE
