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

#include "../../src/ktextwidgets-5.12.0/src/widgets/krichtextedit.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'krichtextedit.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.4.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_KRichTextEdit_t {
    QByteArrayData data[41];
    char stringdata[545];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KRichTextEdit_t, stringdata) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KRichTextEdit_t qt_meta_stringdata_KRichTextEdit = {
    {
QT_MOC_LITERAL(0, 0, 13), // "KRichTextEdit"
QT_MOC_LITERAL(1, 14, 15), // "textModeChanged"
QT_MOC_LITERAL(2, 30, 0), // ""
QT_MOC_LITERAL(3, 31, 19), // "KRichTextEdit::Mode"
QT_MOC_LITERAL(4, 51, 4), // "mode"
QT_MOC_LITERAL(5, 56, 17), // "selectionFinished"
QT_MOC_LITERAL(6, 74, 9), // "alignLeft"
QT_MOC_LITERAL(7, 84, 11), // "alignCenter"
QT_MOC_LITERAL(8, 96, 10), // "alignRight"
QT_MOC_LITERAL(9, 107, 12), // "alignJustify"
QT_MOC_LITERAL(10, 120, 15), // "makeRightToLeft"
QT_MOC_LITERAL(11, 136, 15), // "makeLeftToRight"
QT_MOC_LITERAL(12, 152, 12), // "setListStyle"
QT_MOC_LITERAL(13, 165, 11), // "_styleIndex"
QT_MOC_LITERAL(14, 177, 14), // "indentListMore"
QT_MOC_LITERAL(15, 192, 14), // "indentListLess"
QT_MOC_LITERAL(16, 207, 13), // "setFontFamily"
QT_MOC_LITERAL(17, 221, 10), // "fontFamily"
QT_MOC_LITERAL(18, 232, 11), // "setFontSize"
QT_MOC_LITERAL(19, 244, 4), // "size"
QT_MOC_LITERAL(20, 249, 7), // "setFont"
QT_MOC_LITERAL(21, 257, 4), // "font"
QT_MOC_LITERAL(22, 262, 11), // "setTextBold"
QT_MOC_LITERAL(23, 274, 4), // "bold"
QT_MOC_LITERAL(24, 279, 13), // "setTextItalic"
QT_MOC_LITERAL(25, 293, 6), // "italic"
QT_MOC_LITERAL(26, 300, 16), // "setTextUnderline"
QT_MOC_LITERAL(27, 317, 9), // "underline"
QT_MOC_LITERAL(28, 327, 16), // "setTextStrikeOut"
QT_MOC_LITERAL(29, 344, 9), // "strikeOut"
QT_MOC_LITERAL(30, 354, 22), // "setTextForegroundColor"
QT_MOC_LITERAL(31, 377, 5), // "color"
QT_MOC_LITERAL(32, 383, 22), // "setTextBackgroundColor"
QT_MOC_LITERAL(33, 406, 20), // "insertHorizontalRule"
QT_MOC_LITERAL(34, 427, 17), // "switchToPlainText"
QT_MOC_LITERAL(35, 445, 11), // "toCleanHtml"
QT_MOC_LITERAL(36, 457, 18), // "setTextSuperScript"
QT_MOC_LITERAL(37, 476, 11), // "superscript"
QT_MOC_LITERAL(38, 488, 16), // "setTextSubScript"
QT_MOC_LITERAL(39, 505, 9), // "subscript"
QT_MOC_LITERAL(40, 515, 29) // "insertPlainTextImplementation"

    },
    "KRichTextEdit\0textModeChanged\0\0"
    "KRichTextEdit::Mode\0mode\0selectionFinished\0"
    "alignLeft\0alignCenter\0alignRight\0"
    "alignJustify\0makeRightToLeft\0"
    "makeLeftToRight\0setListStyle\0_styleIndex\0"
    "indentListMore\0indentListLess\0"
    "setFontFamily\0fontFamily\0setFontSize\0"
    "size\0setFont\0font\0setTextBold\0bold\0"
    "setTextItalic\0italic\0setTextUnderline\0"
    "underline\0setTextStrikeOut\0strikeOut\0"
    "setTextForegroundColor\0color\0"
    "setTextBackgroundColor\0insertHorizontalRule\0"
    "switchToPlainText\0toCleanHtml\0"
    "setTextSuperScript\0superscript\0"
    "setTextSubScript\0subscript\0"
    "insertPlainTextImplementation"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KRichTextEdit[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,  144,    2, 0x06 /* Public */,
       5,    0,  147,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    0,  148,    2, 0x0a /* Public */,
       7,    0,  149,    2, 0x0a /* Public */,
       8,    0,  150,    2, 0x0a /* Public */,
       9,    0,  151,    2, 0x0a /* Public */,
      10,    0,  152,    2, 0x0a /* Public */,
      11,    0,  153,    2, 0x0a /* Public */,
      12,    1,  154,    2, 0x0a /* Public */,
      14,    0,  157,    2, 0x0a /* Public */,
      15,    0,  158,    2, 0x0a /* Public */,
      16,    1,  159,    2, 0x0a /* Public */,
      18,    1,  162,    2, 0x0a /* Public */,
      20,    1,  165,    2, 0x0a /* Public */,
      22,    1,  168,    2, 0x0a /* Public */,
      24,    1,  171,    2, 0x0a /* Public */,
      26,    1,  174,    2, 0x0a /* Public */,
      28,    1,  177,    2, 0x0a /* Public */,
      30,    1,  180,    2, 0x0a /* Public */,
      32,    1,  183,    2, 0x0a /* Public */,
      33,    0,  186,    2, 0x0a /* Public */,
      34,    0,  187,    2, 0x0a /* Public */,
      35,    0,  188,    2, 0x0a /* Public */,
      36,    1,  189,    2, 0x0a /* Public */,
      38,    1,  192,    2, 0x0a /* Public */,
      40,    0,  195,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,   13,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,   17,
    QMetaType::Void, QMetaType::Int,   19,
    QMetaType::Void, QMetaType::QFont,   21,
    QMetaType::Void, QMetaType::Bool,   23,
    QMetaType::Void, QMetaType::Bool,   25,
    QMetaType::Void, QMetaType::Bool,   27,
    QMetaType::Void, QMetaType::Bool,   29,
    QMetaType::Void, QMetaType::QColor,   31,
    QMetaType::Void, QMetaType::QColor,   31,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::QString,
    QMetaType::Void, QMetaType::Bool,   37,
    QMetaType::Void, QMetaType::Bool,   39,
    QMetaType::Void,

       0        // eod
};

void KRichTextEdit::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KRichTextEdit *_t = static_cast<KRichTextEdit *>(_o);
        switch (_id) {
        case 0: _t->textModeChanged((*reinterpret_cast< KRichTextEdit::Mode(*)>(_a[1]))); break;
        case 1: _t->selectionFinished(); break;
        case 2: _t->alignLeft(); break;
        case 3: _t->alignCenter(); break;
        case 4: _t->alignRight(); break;
        case 5: _t->alignJustify(); break;
        case 6: _t->makeRightToLeft(); break;
        case 7: _t->makeLeftToRight(); break;
        case 8: _t->setListStyle((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 9: _t->indentListMore(); break;
        case 10: _t->indentListLess(); break;
        case 11: _t->setFontFamily((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 12: _t->setFontSize((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 13: _t->setFont((*reinterpret_cast< const QFont(*)>(_a[1]))); break;
        case 14: _t->setTextBold((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 15: _t->setTextItalic((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 16: _t->setTextUnderline((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 17: _t->setTextStrikeOut((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 18: _t->setTextForegroundColor((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
        case 19: _t->setTextBackgroundColor((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
        case 20: _t->insertHorizontalRule(); break;
        case 21: _t->switchToPlainText(); break;
        case 22: { QString _r = _t->toCleanHtml();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        case 23: _t->setTextSuperScript((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 24: _t->setTextSubScript((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 25: _t->insertPlainTextImplementation(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (KRichTextEdit::*_t)(KRichTextEdit::Mode );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KRichTextEdit::textModeChanged)) {
                *result = 0;
            }
        }
        {
            typedef void (KRichTextEdit::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KRichTextEdit::selectionFinished)) {
                *result = 1;
            }
        }
    }
}

const QMetaObject KRichTextEdit::staticMetaObject = {
    { &KTextEdit::staticMetaObject, qt_meta_stringdata_KRichTextEdit.data,
      qt_meta_data_KRichTextEdit,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *KRichTextEdit::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_KRichTextEdit.stringdata))
        return static_cast<void*>(const_cast< KRichTextEdit*>(this));
    return KTextEdit::qt_metacast(_clname);
}

int KRichTextEdit::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = KTextEdit::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 26)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 26;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 26)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 26;
    }
    return _id;
}

// SIGNAL 0
void KRichTextEdit::textModeChanged(KRichTextEdit::Mode _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void KRichTextEdit::selectionFinished()
{
    QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
