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

#include <memory>
#include "../../../../include/widgets/dstyleditemdelegate.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'dstyleditemdelegate.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.19. 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_Dtk__Widget__DViewItemAction_t {
    QByteArrayData data[1];
    char stringdata0[29];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Dtk__Widget__DViewItemAction_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Dtk__Widget__DViewItemAction_t qt_meta_stringdata_Dtk__Widget__DViewItemAction = {
    {
QT_MOC_LITERAL(0, 0, 28) // "Dtk::Widget::DViewItemAction"

    },
    "Dtk::Widget::DViewItemAction"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Dtk__Widget__DViewItemAction[] = {

 // content:
       8,       // 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 Dtk::Widget::DViewItemAction::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    (void)_o;
    (void)_id;
    (void)_c;
    (void)_a;
}

QT_INIT_METAOBJECT const QMetaObject Dtk::Widget::DViewItemAction::staticMetaObject = { {
    QMetaObject::SuperData::link<QAction::staticMetaObject>(),
    qt_meta_stringdata_Dtk__Widget__DViewItemAction.data,
    qt_meta_data_Dtk__Widget__DViewItemAction,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *Dtk::Widget::DViewItemAction::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Dtk__Widget__DViewItemAction.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "Core::DObject"))
        return static_cast< Core::DObject*>(this);
    return QAction::qt_metacast(_clname);
}

int Dtk::Widget::DViewItemAction::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAction::qt_metacall(_c, _id, _a);
    return _id;
}
struct qt_meta_stringdata_Dtk__Widget__DStyledItemDelegate_t {
    QByteArrayData data[12];
    char stringdata0[154];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Dtk__Widget__DStyledItemDelegate_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Dtk__Widget__DStyledItemDelegate_t qt_meta_stringdata_Dtk__Widget__DStyledItemDelegate = {
    {
QT_MOC_LITERAL(0, 0, 32), // "Dtk::Widget::DStyledItemDelegate"
QT_MOC_LITERAL(1, 33, 17), // "setBackgroundType"
QT_MOC_LITERAL(2, 51, 0), // ""
QT_MOC_LITERAL(3, 52, 14), // "BackgroundType"
QT_MOC_LITERAL(4, 67, 14), // "backgroundType"
QT_MOC_LITERAL(5, 82, 10), // "setMargins"
QT_MOC_LITERAL(6, 93, 8), // "QMargins"
QT_MOC_LITERAL(7, 102, 7), // "margins"
QT_MOC_LITERAL(8, 110, 11), // "setItemSize"
QT_MOC_LITERAL(9, 122, 8), // "itemSize"
QT_MOC_LITERAL(10, 131, 14), // "setItemSpacing"
QT_MOC_LITERAL(11, 146, 7) // "spacing"

    },
    "Dtk::Widget::DStyledItemDelegate\0"
    "setBackgroundType\0\0BackgroundType\0"
    "backgroundType\0setMargins\0QMargins\0"
    "margins\0setItemSize\0itemSize\0"
    "setItemSpacing\0spacing"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Dtk__Widget__DStyledItemDelegate[] = {

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

 // slots: name, argc, parameters, tag, flags
       1,    1,   34,    2, 0x0a /* Public */,
       5,    1,   37,    2, 0x0a /* Public */,
       8,    1,   40,    2, 0x0a /* Public */,
      10,    1,   43,    2, 0x0a /* Public */,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 6,    7,
    QMetaType::Void, QMetaType::QSize,    9,
    QMetaType::Void, QMetaType::Int,   11,

 // properties: name, type, flags
       4, 0x80000000 | 3, 0x0009510b,
       7, 0x80000000 | 6, 0x0009510b,
       9, QMetaType::QSize, 0x00095103,

       0        // eod
};

void Dtk::Widget::DStyledItemDelegate::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<DStyledItemDelegate *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->setBackgroundType((*reinterpret_cast< BackgroundType(*)>(_a[1]))); break;
        case 1: _t->setMargins((*reinterpret_cast< const QMargins(*)>(_a[1]))); break;
        case 2: _t->setItemSize((*reinterpret_cast< QSize(*)>(_a[1]))); break;
        case 3: _t->setItemSpacing((*reinterpret_cast< int(*)>(_a[1]))); break;
        default: ;
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<DStyledItemDelegate *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< BackgroundType*>(_v) = _t->backgroundType(); break;
        case 1: *reinterpret_cast< QMargins*>(_v) = _t->margins(); break;
        case 2: *reinterpret_cast< QSize*>(_v) = _t->itemSize(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<DStyledItemDelegate *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setBackgroundType(*reinterpret_cast< BackgroundType*>(_v)); break;
        case 1: _t->setMargins(*reinterpret_cast< QMargins*>(_v)); break;
        case 2: _t->setItemSize(*reinterpret_cast< QSize*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject Dtk::Widget::DStyledItemDelegate::staticMetaObject = { {
    QMetaObject::SuperData::link<QStyledItemDelegate::staticMetaObject>(),
    qt_meta_stringdata_Dtk__Widget__DStyledItemDelegate.data,
    qt_meta_data_Dtk__Widget__DStyledItemDelegate,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *Dtk::Widget::DStyledItemDelegate::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Dtk__Widget__DStyledItemDelegate.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "Core::DObject"))
        return static_cast< Core::DObject*>(this);
    return QStyledItemDelegate::qt_metacast(_clname);
}

int Dtk::Widget::DStyledItemDelegate::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QStyledItemDelegate::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 4)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 4;
    }
#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;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
