/****************************************************************************
** Meta object code from reading C++ file 'previewitem.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/kwin-5.4.3/kcmkwin/kwindecoration/declarative-plugin/previewitem.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'previewitem.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_KDecoration2__Preview__PreviewItem_t {
    QByteArrayData data[22];
    char stringdata0[388];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KDecoration2__Preview__PreviewItem_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KDecoration2__Preview__PreviewItem_t qt_meta_stringdata_KDecoration2__Preview__PreviewItem = {
    {
QT_MOC_LITERAL(0, 0, 34), // "KDecoration2::Preview::Previe..."
QT_MOC_LITERAL(1, 35, 17), // "decorationChanged"
QT_MOC_LITERAL(2, 53, 0), // ""
QT_MOC_LITERAL(3, 54, 25), // "KDecoration2::Decoration*"
QT_MOC_LITERAL(4, 80, 4), // "deco"
QT_MOC_LITERAL(5, 85, 18), // "windowColorChanged"
QT_MOC_LITERAL(6, 104, 5), // "color"
QT_MOC_LITERAL(7, 110, 24), // "drawingBackgroundChanged"
QT_MOC_LITERAL(8, 135, 13), // "bridgeChanged"
QT_MOC_LITERAL(9, 149, 15), // "settingsChanged"
QT_MOC_LITERAL(10, 165, 13), // "shadowChanged"
QT_MOC_LITERAL(11, 179, 10), // "decoration"
QT_MOC_LITERAL(12, 190, 6), // "bridge"
QT_MOC_LITERAL(13, 197, 37), // "KDecoration2::Preview::Previe..."
QT_MOC_LITERAL(14, 235, 8), // "settings"
QT_MOC_LITERAL(15, 244, 32), // "KDecoration2::Preview::Settings*"
QT_MOC_LITERAL(16, 277, 6), // "client"
QT_MOC_LITERAL(17, 284, 37), // "KDecoration2::Preview::Previe..."
QT_MOC_LITERAL(18, 322, 6), // "shadow"
QT_MOC_LITERAL(19, 329, 31), // "KDecoration2::DecorationShadow*"
QT_MOC_LITERAL(20, 361, 11), // "windowColor"
QT_MOC_LITERAL(21, 373, 14) // "drawBackground"

    },
    "KDecoration2::Preview::PreviewItem\0"
    "decorationChanged\0\0KDecoration2::Decoration*\0"
    "deco\0windowColorChanged\0color\0"
    "drawingBackgroundChanged\0bridgeChanged\0"
    "settingsChanged\0shadowChanged\0decoration\0"
    "bridge\0KDecoration2::Preview::PreviewBridge*\0"
    "settings\0KDecoration2::Preview::Settings*\0"
    "client\0KDecoration2::Preview::PreviewClient*\0"
    "shadow\0KDecoration2::DecorationShadow*\0"
    "windowColor\0drawBackground"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KDecoration2__Preview__PreviewItem[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   44,    2, 0x06 /* Public */,
       5,    1,   47,    2, 0x06 /* Public */,
       7,    1,   50,    2, 0x06 /* Public */,
       8,    0,   53,    2, 0x06 /* Public */,
       9,    0,   54,    2, 0x06 /* Public */,
      10,    0,   55,    2, 0x06 /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, QMetaType::QColor,    6,
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // properties: name, type, flags
      11, 0x80000000 | 3, 0x00495009,
      12, 0x80000000 | 13, 0x0049510b,
      14, 0x80000000 | 15, 0x0049510b,
      16, 0x80000000 | 17, 0x00095009,
      18, 0x80000000 | 19, 0x00495009,
      20, QMetaType::QColor, 0x00495103,
      21, QMetaType::Bool, 0x00495003,

 // properties: notify_signal_id
       0,
       3,
       4,
       0,
       5,
       1,
       2,

       0        // eod
};

void KDecoration2::Preview::PreviewItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        PreviewItem *_t = static_cast<PreviewItem *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->decorationChanged((*reinterpret_cast< KDecoration2::Decoration*(*)>(_a[1]))); break;
        case 1: _t->windowColorChanged((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
        case 2: _t->drawingBackgroundChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 3: _t->bridgeChanged(); break;
        case 4: _t->settingsChanged(); break;
        case 5: _t->shadowChanged(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (PreviewItem::*_t)(KDecoration2::Decoration * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PreviewItem::decorationChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (PreviewItem::*_t)(const QColor & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PreviewItem::windowColorChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (PreviewItem::*_t)(bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PreviewItem::drawingBackgroundChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (PreviewItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PreviewItem::bridgeChanged)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (PreviewItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PreviewItem::settingsChanged)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (PreviewItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PreviewItem::shadowChanged)) {
                *result = 5;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        PreviewItem *_t = static_cast<PreviewItem *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< KDecoration2::Decoration**>(_v) = _t->decoration(); break;
        case 1: *reinterpret_cast< KDecoration2::Preview::PreviewBridge**>(_v) = _t->bridge(); break;
        case 2: *reinterpret_cast< KDecoration2::Preview::Settings**>(_v) = _t->settings(); break;
        case 3: *reinterpret_cast< KDecoration2::Preview::PreviewClient**>(_v) = _t->client(); break;
        case 4: *reinterpret_cast< KDecoration2::DecorationShadow**>(_v) = _t->shadow(); break;
        case 5: *reinterpret_cast< QColor*>(_v) = _t->windowColor(); break;
        case 6: *reinterpret_cast< bool*>(_v) = _t->isDrawingBackground(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        PreviewItem *_t = static_cast<PreviewItem *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setBridge(*reinterpret_cast< KDecoration2::Preview::PreviewBridge**>(_v)); break;
        case 2: _t->setSettings(*reinterpret_cast< KDecoration2::Preview::Settings**>(_v)); break;
        case 5: _t->setWindowColor(*reinterpret_cast< QColor*>(_v)); break;
        case 6: _t->setDrawingBackground(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject KDecoration2::Preview::PreviewItem::staticMetaObject = {
    { &QQuickPaintedItem::staticMetaObject, qt_meta_stringdata_KDecoration2__Preview__PreviewItem.data,
      qt_meta_data_KDecoration2__Preview__PreviewItem,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *KDecoration2::Preview::PreviewItem::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_KDecoration2__Preview__PreviewItem.stringdata0))
        return static_cast<void*>(const_cast< PreviewItem*>(this));
    return QQuickPaintedItem::qt_metacast(_clname);
}

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

// SIGNAL 0
void KDecoration2::Preview::PreviewItem::decorationChanged(KDecoration2::Decoration * _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void KDecoration2::Preview::PreviewItem::windowColorChanged(const QColor & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

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

// SIGNAL 3
void KDecoration2::Preview::PreviewItem::bridgeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, Q_NULLPTR);
}

// SIGNAL 4
void KDecoration2::Preview::PreviewItem::settingsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, Q_NULLPTR);
}

// SIGNAL 5
void KDecoration2::Preview::PreviewItem::shadowChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
