/****************************************************************************
** Meta object code from reading C++ file 'FormattedTextWidget.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/marble-17.08.3/src/lib/marble/FormattedTextWidget.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'FormattedTextWidget.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_Marble__FormattedTextWidget_t {
    QByteArrayData data[20];
    char stringdata0[323];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Marble__FormattedTextWidget_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Marble__FormattedTextWidget_t qt_meta_stringdata_Marble__FormattedTextWidget = {
    {
QT_MOC_LITERAL(0, 0, 27), // "Marble::FormattedTextWidget"
QT_MOC_LITERAL(1, 28, 11), // "textUpdated"
QT_MOC_LITERAL(2, 40, 0), // ""
QT_MOC_LITERAL(3, 41, 25), // "toggleDescriptionEditMode"
QT_MOC_LITERAL(4, 67, 19), // "isFormattedTextMode"
QT_MOC_LITERAL(5, 87, 17), // "setTextCursorBold"
QT_MOC_LITERAL(6, 105, 4), // "bold"
QT_MOC_LITERAL(7, 110, 19), // "setTextCursorItalic"
QT_MOC_LITERAL(8, 130, 6), // "italic"
QT_MOC_LITERAL(9, 137, 23), // "setTextCursorUnderlined"
QT_MOC_LITERAL(10, 161, 10), // "underlined"
QT_MOC_LITERAL(11, 172, 18), // "setTextCursorColor"
QT_MOC_LITERAL(12, 191, 5), // "color"
QT_MOC_LITERAL(13, 197, 17), // "setTextCursorFont"
QT_MOC_LITERAL(14, 215, 4), // "font"
QT_MOC_LITERAL(15, 220, 21), // "setTextCursorFontSize"
QT_MOC_LITERAL(16, 242, 8), // "fontSize"
QT_MOC_LITERAL(17, 251, 21), // "addImageToDescription"
QT_MOC_LITERAL(18, 273, 20), // "addLinkToDescription"
QT_MOC_LITERAL(19, 294, 28) // "updateDescriptionEditButtons"

    },
    "Marble::FormattedTextWidget\0textUpdated\0"
    "\0toggleDescriptionEditMode\0"
    "isFormattedTextMode\0setTextCursorBold\0"
    "bold\0setTextCursorItalic\0italic\0"
    "setTextCursorUnderlined\0underlined\0"
    "setTextCursorColor\0color\0setTextCursorFont\0"
    "font\0setTextCursorFontSize\0fontSize\0"
    "addImageToDescription\0addLinkToDescription\0"
    "updateDescriptionEditButtons"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Marble__FormattedTextWidget[] = {

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

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

 // slots: name, argc, parameters, tag, flags
       3,    1,   75,    2, 0x08 /* Private */,
       3,    0,   78,    2, 0x28 /* Private | MethodCloned */,
       5,    1,   79,    2, 0x08 /* Private */,
       7,    1,   82,    2, 0x08 /* Private */,
       9,    1,   85,    2, 0x08 /* Private */,
      11,    1,   88,    2, 0x08 /* Private */,
      13,    1,   91,    2, 0x08 /* Private */,
      15,    1,   94,    2, 0x08 /* Private */,
      17,    0,   97,    2, 0x08 /* Private */,
      18,    0,   98,    2, 0x08 /* Private */,
      19,    0,   99,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, QMetaType::Bool,    4,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,    6,
    QMetaType::Void, QMetaType::Bool,    8,
    QMetaType::Void, QMetaType::Bool,   10,
    QMetaType::Void, QMetaType::QColor,   12,
    QMetaType::Void, QMetaType::QFont,   14,
    QMetaType::Void, QMetaType::QString,   16,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void Marble::FormattedTextWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        FormattedTextWidget *_t = static_cast<FormattedTextWidget *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->textUpdated(); break;
        case 1: _t->toggleDescriptionEditMode((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 2: _t->toggleDescriptionEditMode(); break;
        case 3: _t->setTextCursorBold((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 4: _t->setTextCursorItalic((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 5: _t->setTextCursorUnderlined((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 6: _t->setTextCursorColor((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
        case 7: _t->setTextCursorFont((*reinterpret_cast< const QFont(*)>(_a[1]))); break;
        case 8: _t->setTextCursorFontSize((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 9: _t->addImageToDescription(); break;
        case 10: _t->addLinkToDescription(); break;
        case 11: _t->updateDescriptionEditButtons(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (FormattedTextWidget::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FormattedTextWidget::textUpdated)) {
                *result = 0;
                return;
            }
        }
    }
}

const QMetaObject Marble::FormattedTextWidget::staticMetaObject = {
    { &QWidget::staticMetaObject, qt_meta_stringdata_Marble__FormattedTextWidget.data,
      qt_meta_data_Marble__FormattedTextWidget,  qt_static_metacall, nullptr, nullptr}
};


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

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

int Marble::FormattedTextWidget::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 < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 12;
    }
    return _id;
}

// SIGNAL 0
void Marble::FormattedTextWidget::textUpdated()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
