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

#include "../../../src/plasma-sdk-5.8.8/themeexplorer/src/thememodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'thememodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.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
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_ThemeModel_t {
    QByteArrayData data[19];
    char stringdata0[199];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_ThemeModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_ThemeModel_t qt_meta_stringdata_ThemeModel = {
    {
QT_MOC_LITERAL(0, 0, 10), // "ThemeModel"
QT_MOC_LITERAL(1, 11, 12), // "themeChanged"
QT_MOC_LITERAL(2, 24, 0), // ""
QT_MOC_LITERAL(3, 25, 15), // "processFinished"
QT_MOC_LITERAL(4, 41, 11), // "editElement"
QT_MOC_LITERAL(5, 53, 9), // "imagePath"
QT_MOC_LITERAL(6, 63, 17), // "editThemeMetaData"
QT_MOC_LITERAL(7, 81, 4), // "name"
QT_MOC_LITERAL(8, 86, 6), // "author"
QT_MOC_LITERAL(9, 93, 5), // "email"
QT_MOC_LITERAL(10, 99, 7), // "license"
QT_MOC_LITERAL(11, 107, 7), // "website"
QT_MOC_LITERAL(12, 115, 14), // "createNewTheme"
QT_MOC_LITERAL(13, 130, 5), // "theme"
QT_MOC_LITERAL(14, 136, 9), // "themeList"
QT_MOC_LITERAL(15, 146, 15), // "ThemeListModel*"
QT_MOC_LITERAL(16, 162, 11), // "colorEditor"
QT_MOC_LITERAL(17, 174, 12), // "ColorEditor*"
QT_MOC_LITERAL(18, 187, 11) // "themeFolder"

    },
    "ThemeModel\0themeChanged\0\0processFinished\0"
    "editElement\0imagePath\0editThemeMetaData\0"
    "name\0author\0email\0license\0website\0"
    "createNewTheme\0theme\0themeList\0"
    "ThemeListModel*\0colorEditor\0ColorEditor*\0"
    "themeFolder"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_ThemeModel[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       5,   14, // methods
       8,   66, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       1,       // signalCount

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

 // slots: name, argc, parameters, tag, flags
       3,    0,   40,    2, 0x08 /* Private */,

 // methods: name, argc, parameters, tag, flags
       4,    1,   41,    2, 0x02 /* Public */,
       6,    5,   44,    2, 0x02 /* Public */,
      12,    5,   55,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,

 // methods: parameters
    QMetaType::Void, QMetaType::QString,    5,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString, QMetaType::QString, QMetaType::QString,    7,    8,    9,   10,   11,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString, QMetaType::QString, QMetaType::QString,    7,    8,    9,   10,   11,

 // properties: name, type, flags
      13, QMetaType::QString, 0x00495103,
      14, 0x80000000 | 15, 0x00095409,
      16, 0x80000000 | 17, 0x00095409,
       8, QMetaType::QString, 0x00495001,
       9, QMetaType::QString, 0x00495001,
      10, QMetaType::QString, 0x00495001,
      11, QMetaType::QString, 0x00495001,
      18, QMetaType::QString, 0x00495001,

 // properties: notify_signal_id
       0,
       0,
       0,
       0,
       0,
       0,
       0,
       0,

       0        // eod
};

void ThemeModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        ThemeModel *_t = static_cast<ThemeModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->themeChanged(); break;
        case 1: _t->processFinished(); break;
        case 2: _t->editElement((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 3: _t->editThemeMetaData((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])),(*reinterpret_cast< const QString(*)>(_a[4])),(*reinterpret_cast< const QString(*)>(_a[5]))); break;
        case 4: _t->createNewTheme((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])),(*reinterpret_cast< const QString(*)>(_a[4])),(*reinterpret_cast< const QString(*)>(_a[5]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (ThemeModel::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ThemeModel::themeChanged)) {
                *result = 0;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        ThemeModel *_t = static_cast<ThemeModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = _t->theme(); break;
        case 1: *reinterpret_cast< ThemeListModel**>(_v) = _t->themeList(); break;
        case 2: *reinterpret_cast< ColorEditor**>(_v) = _t->colorEditor(); break;
        case 3: *reinterpret_cast< QString*>(_v) = _t->author(); break;
        case 4: *reinterpret_cast< QString*>(_v) = _t->email(); break;
        case 5: *reinterpret_cast< QString*>(_v) = _t->license(); break;
        case 6: *reinterpret_cast< QString*>(_v) = _t->website(); break;
        case 7: *reinterpret_cast< QString*>(_v) = _t->themeFolder(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        ThemeModel *_t = static_cast<ThemeModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setTheme(*reinterpret_cast< QString*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject ThemeModel::staticMetaObject = {
    { &QAbstractListModel::staticMetaObject, qt_meta_stringdata_ThemeModel.data,
      qt_meta_data_ThemeModel,  qt_static_metacall, nullptr, nullptr}
};


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

void *ThemeModel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_ThemeModel.stringdata0))
        return static_cast<void*>(this);
    return QAbstractListModel::qt_metacast(_clname);
}

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

// SIGNAL 0
void ThemeModel::themeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
