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

#include "../../src/kwidgetsaddons-5.43.0/src/kfontchooser.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kfontchooser.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.4. 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_KFontChooser_t {
    QByteArrayData data[15];
    char stringdata0[214];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KFontChooser_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KFontChooser_t qt_meta_stringdata_KFontChooser = {
    {
QT_MOC_LITERAL(0, 0, 12), // "KFontChooser"
QT_MOC_LITERAL(1, 13, 12), // "fontSelected"
QT_MOC_LITERAL(2, 26, 0), // ""
QT_MOC_LITERAL(3, 27, 4), // "font"
QT_MOC_LITERAL(4, 32, 19), // "_k_toggled_checkbox"
QT_MOC_LITERAL(5, 52, 21), // "_k_family_chosen_slot"
QT_MOC_LITERAL(6, 74, 19), // "_k_size_chosen_slot"
QT_MOC_LITERAL(7, 94, 20), // "_k_style_chosen_slot"
QT_MOC_LITERAL(8, 115, 16), // "_k_displaySample"
QT_MOC_LITERAL(9, 132, 18), // "_k_size_value_slot"
QT_MOC_LITERAL(10, 151, 5), // "color"
QT_MOC_LITERAL(11, 157, 15), // "backgroundColor"
QT_MOC_LITERAL(12, 173, 14), // "sizeIsRelative"
QT_MOC_LITERAL(13, 188, 14), // "Qt::CheckState"
QT_MOC_LITERAL(14, 203, 10) // "sampleText"

    },
    "KFontChooser\0fontSelected\0\0font\0"
    "_k_toggled_checkbox\0_k_family_chosen_slot\0"
    "_k_size_chosen_slot\0_k_style_chosen_slot\0"
    "_k_displaySample\0_k_size_value_slot\0"
    "color\0backgroundColor\0sizeIsRelative\0"
    "Qt::CheckState\0sampleText"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KFontChooser[] = {

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

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

 // slots: name, argc, parameters, tag, flags
       4,    0,   52,    2, 0x08 /* Private */,
       5,    1,   53,    2, 0x08 /* Private */,
       6,    1,   56,    2, 0x08 /* Private */,
       7,    1,   59,    2, 0x08 /* Private */,
       8,    1,   62,    2, 0x08 /* Private */,
       9,    1,   65,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::QFont,    3,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    2,
    QMetaType::Void, QMetaType::QString,    2,
    QMetaType::Void, QMetaType::QString,    2,
    QMetaType::Void, QMetaType::QFont,    3,
    QMetaType::Void, QMetaType::Double,    2,

 // properties: name, type, flags
       3, QMetaType::QFont, 0x00595103,
      10, QMetaType::QColor, 0x00095103,
      11, QMetaType::QColor, 0x00095103,
      12, 0x80000000 | 13, 0x0009510b,
      14, QMetaType::QString, 0x00095103,

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

       0        // eod
};

void KFontChooser::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KFontChooser *_t = static_cast<KFontChooser *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->fontSelected((*reinterpret_cast< const QFont(*)>(_a[1]))); break;
        case 1: _t->d->_k_toggled_checkbox(); break;
        case 2: _t->d->_k_family_chosen_slot((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 3: _t->d->_k_size_chosen_slot((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 4: _t->d->_k_style_chosen_slot((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 5: _t->d->_k_displaySample((*reinterpret_cast< const QFont(*)>(_a[1]))); break;
        case 6: _t->d->_k_size_value_slot((*reinterpret_cast< double(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (KFontChooser::*_t)(const QFont & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KFontChooser::fontSelected)) {
                *result = 0;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        KFontChooser *_t = static_cast<KFontChooser *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QFont*>(_v) = _t->font(); break;
        case 1: *reinterpret_cast< QColor*>(_v) = _t->color(); break;
        case 2: *reinterpret_cast< QColor*>(_v) = _t->backgroundColor(); break;
        case 3: *reinterpret_cast< Qt::CheckState*>(_v) = _t->sizeIsRelative(); break;
        case 4: *reinterpret_cast< QString*>(_v) = _t->sampleText(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        KFontChooser *_t = static_cast<KFontChooser *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setFont(*reinterpret_cast< QFont*>(_v)); break;
        case 1: _t->setColor(*reinterpret_cast< QColor*>(_v)); break;
        case 2: _t->setBackgroundColor(*reinterpret_cast< QColor*>(_v)); break;
        case 3: _t->setSizeIsRelative(*reinterpret_cast< Qt::CheckState*>(_v)); break;
        case 4: _t->setSampleText(*reinterpret_cast< QString*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject KFontChooser::staticMetaObject = {
    { &QWidget::staticMetaObject, qt_meta_stringdata_KFontChooser.data,
      qt_meta_data_KFontChooser,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

// SIGNAL 0
void KFontChooser::fontSelected(const QFont & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
