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

#include <memory>
#include "../text/qtextdocument.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qtextdocument.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.19. 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_QTextDocument_t {
    QByteArrayData data[53];
    char stringdata0[696];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QTextDocument_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QTextDocument_t qt_meta_stringdata_QTextDocument = {
    {
QT_MOC_LITERAL(0, 0, 13), // "QTextDocument"
QT_MOC_LITERAL(1, 14, 14), // "contentsChange"
QT_MOC_LITERAL(2, 29, 0), // ""
QT_MOC_LITERAL(3, 30, 4), // "from"
QT_MOC_LITERAL(4, 35, 12), // "charsRemoved"
QT_MOC_LITERAL(5, 48, 10), // "charsAdded"
QT_MOC_LITERAL(6, 59, 15), // "contentsChanged"
QT_MOC_LITERAL(7, 75, 13), // "undoAvailable"
QT_MOC_LITERAL(8, 89, 13), // "redoAvailable"
QT_MOC_LITERAL(9, 103, 16), // "undoCommandAdded"
QT_MOC_LITERAL(10, 120, 19), // "modificationChanged"
QT_MOC_LITERAL(11, 140, 1), // "m"
QT_MOC_LITERAL(12, 142, 21), // "cursorPositionChanged"
QT_MOC_LITERAL(13, 164, 11), // "QTextCursor"
QT_MOC_LITERAL(14, 176, 6), // "cursor"
QT_MOC_LITERAL(15, 183, 17), // "blockCountChanged"
QT_MOC_LITERAL(16, 201, 13), // "newBlockCount"
QT_MOC_LITERAL(17, 215, 14), // "baseUrlChanged"
QT_MOC_LITERAL(18, 230, 3), // "url"
QT_MOC_LITERAL(19, 234, 21), // "documentLayoutChanged"
QT_MOC_LITERAL(20, 256, 4), // "undo"
QT_MOC_LITERAL(21, 261, 4), // "redo"
QT_MOC_LITERAL(22, 266, 14), // "appendUndoItem"
QT_MOC_LITERAL(23, 281, 18), // "QAbstractUndoItem*"
QT_MOC_LITERAL(24, 300, 11), // "setModified"
QT_MOC_LITERAL(25, 312, 12), // "loadResource"
QT_MOC_LITERAL(26, 325, 4), // "type"
QT_MOC_LITERAL(27, 330, 4), // "name"
QT_MOC_LITERAL(28, 335, 15), // "undoRedoEnabled"
QT_MOC_LITERAL(29, 351, 8), // "modified"
QT_MOC_LITERAL(30, 360, 8), // "pageSize"
QT_MOC_LITERAL(31, 369, 11), // "defaultFont"
QT_MOC_LITERAL(32, 381, 16), // "useDesignMetrics"
QT_MOC_LITERAL(33, 398, 4), // "size"
QT_MOC_LITERAL(34, 403, 9), // "textWidth"
QT_MOC_LITERAL(35, 413, 10), // "blockCount"
QT_MOC_LITERAL(36, 424, 11), // "indentWidth"
QT_MOC_LITERAL(37, 436, 17), // "defaultStyleSheet"
QT_MOC_LITERAL(38, 454, 17), // "maximumBlockCount"
QT_MOC_LITERAL(39, 472, 14), // "documentMargin"
QT_MOC_LITERAL(40, 487, 7), // "baseUrl"
QT_MOC_LITERAL(41, 495, 16), // "MarkdownFeatures"
QT_MOC_LITERAL(42, 512, 15), // "MarkdownFeature"
QT_MOC_LITERAL(43, 528, 14), // "MarkdownNoHTML"
QT_MOC_LITERAL(44, 543, 25), // "MarkdownDialectCommonMark"
QT_MOC_LITERAL(45, 569, 21), // "MarkdownDialectGitHub"
QT_MOC_LITERAL(46, 591, 12), // "ResourceType"
QT_MOC_LITERAL(47, 604, 15), // "UnknownResource"
QT_MOC_LITERAL(48, 620, 12), // "HtmlResource"
QT_MOC_LITERAL(49, 633, 13), // "ImageResource"
QT_MOC_LITERAL(50, 647, 18), // "StyleSheetResource"
QT_MOC_LITERAL(51, 666, 16), // "MarkdownResource"
QT_MOC_LITERAL(52, 683, 12) // "UserResource"

    },
    "QTextDocument\0contentsChange\0\0from\0"
    "charsRemoved\0charsAdded\0contentsChanged\0"
    "undoAvailable\0redoAvailable\0"
    "undoCommandAdded\0modificationChanged\0"
    "m\0cursorPositionChanged\0QTextCursor\0"
    "cursor\0blockCountChanged\0newBlockCount\0"
    "baseUrlChanged\0url\0documentLayoutChanged\0"
    "undo\0redo\0appendUndoItem\0QAbstractUndoItem*\0"
    "setModified\0loadResource\0type\0name\0"
    "undoRedoEnabled\0modified\0pageSize\0"
    "defaultFont\0useDesignMetrics\0size\0"
    "textWidth\0blockCount\0indentWidth\0"
    "defaultStyleSheet\0maximumBlockCount\0"
    "documentMargin\0baseUrl\0MarkdownFeatures\0"
    "MarkdownFeature\0MarkdownNoHTML\0"
    "MarkdownDialectCommonMark\0"
    "MarkdownDialectGitHub\0ResourceType\0"
    "UnknownResource\0HtmlResource\0ImageResource\0"
    "StyleSheetResource\0MarkdownResource\0"
    "UserResource"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QTextDocument[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      16,   14, // methods
      13,  136, // properties
       2,  188, // enums/sets
       0,    0, // constructors
       0,       // flags
      10,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    3,   94,    2, 0x06 /* Public */,
       6,    0,  101,    2, 0x06 /* Public */,
       7,    1,  102,    2, 0x06 /* Public */,
       8,    1,  105,    2, 0x06 /* Public */,
       9,    0,  108,    2, 0x06 /* Public */,
      10,    1,  109,    2, 0x06 /* Public */,
      12,    1,  112,    2, 0x06 /* Public */,
      15,    1,  115,    2, 0x06 /* Public */,
      17,    1,  118,    2, 0x06 /* Public */,
      19,    0,  121,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      20,    0,  122,    2, 0x0a /* Public */,
      21,    0,  123,    2, 0x0a /* Public */,
      22,    1,  124,    2, 0x0a /* Public */,
      24,    1,  127,    2, 0x0a /* Public */,
      24,    0,  130,    2, 0x2a /* Public | MethodCloned */,

 // methods: name, argc, parameters, tag, flags
      25,    2,  131,    2, 0x01 /* Protected */,

 // signals: parameters
    QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int,    3,    4,    5,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   11,
    QMetaType::Void, 0x80000000 | 13,   14,
    QMetaType::Void, QMetaType::Int,   16,
    QMetaType::Void, QMetaType::QUrl,   18,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 23,    2,
    QMetaType::Void, QMetaType::Bool,   11,
    QMetaType::Void,

 // methods: parameters
    QMetaType::QVariant, QMetaType::Int, QMetaType::QUrl,   26,   27,

 // properties: name, type, flags
      28, QMetaType::Bool, 0x00095103,
      29, QMetaType::Bool, 0x00094103,
      30, QMetaType::QSizeF, 0x00095103,
      31, QMetaType::QFont, 0x00095103,
      32, QMetaType::Bool, 0x00095103,
      33, QMetaType::QSizeF, 0x00095001,
      34, QMetaType::QReal, 0x00095103,
      35, QMetaType::Int, 0x00095001,
      36, QMetaType::QReal, 0x00095103,
      37, QMetaType::QString, 0x00095103,
      38, QMetaType::Int, 0x00095103,
      39, QMetaType::QReal, 0x00095103,
      40, QMetaType::QUrl, 0x00495103,

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

 // enums: name, alias, flags, count, data
      41,   42, 0x1,    3,  198,
      46,   46, 0x0,    6,  204,

 // enum data: key, value
      43, uint(QTextDocument::MarkdownNoHTML),
      44, uint(QTextDocument::MarkdownDialectCommonMark),
      45, uint(QTextDocument::MarkdownDialectGitHub),
      47, uint(QTextDocument::UnknownResource),
      48, uint(QTextDocument::HtmlResource),
      49, uint(QTextDocument::ImageResource),
      50, uint(QTextDocument::StyleSheetResource),
      51, uint(QTextDocument::MarkdownResource),
      52, uint(QTextDocument::UserResource),

       0        // eod
};

void QTextDocument::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<QTextDocument *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->contentsChange((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 1: _t->contentsChanged(); break;
        case 2: _t->undoAvailable((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 3: _t->redoAvailable((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 4: _t->undoCommandAdded(); break;
        case 5: _t->modificationChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 6: _t->cursorPositionChanged((*reinterpret_cast< const QTextCursor(*)>(_a[1]))); break;
        case 7: _t->blockCountChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 8: _t->baseUrlChanged((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;
        case 9: _t->documentLayoutChanged(); break;
        case 10: _t->undo(); break;
        case 11: _t->redo(); break;
        case 12: _t->appendUndoItem((*reinterpret_cast< QAbstractUndoItem*(*)>(_a[1]))); break;
        case 13: _t->setModified((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 14: _t->setModified(); break;
        case 15: { QVariant _r = _t->loadResource((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QUrl(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (QTextDocument::*)(int , int , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextDocument::contentsChange)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (QTextDocument::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextDocument::contentsChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (QTextDocument::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextDocument::undoAvailable)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (QTextDocument::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextDocument::redoAvailable)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (QTextDocument::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextDocument::undoCommandAdded)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (QTextDocument::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextDocument::modificationChanged)) {
                *result = 5;
                return;
            }
        }
        {
            using _t = void (QTextDocument::*)(const QTextCursor & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextDocument::cursorPositionChanged)) {
                *result = 6;
                return;
            }
        }
        {
            using _t = void (QTextDocument::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextDocument::blockCountChanged)) {
                *result = 7;
                return;
            }
        }
        {
            using _t = void (QTextDocument::*)(const QUrl & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextDocument::baseUrlChanged)) {
                *result = 8;
                return;
            }
        }
        {
            using _t = void (QTextDocument::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTextDocument::documentLayoutChanged)) {
                *result = 9;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<QTextDocument *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->isUndoRedoEnabled(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->isModified(); break;
        case 2: *reinterpret_cast< QSizeF*>(_v) = _t->pageSize(); break;
        case 3: *reinterpret_cast< QFont*>(_v) = _t->defaultFont(); break;
        case 4: *reinterpret_cast< bool*>(_v) = _t->useDesignMetrics(); break;
        case 5: *reinterpret_cast< QSizeF*>(_v) = _t->size(); break;
        case 6: *reinterpret_cast< qreal*>(_v) = _t->textWidth(); break;
        case 7: *reinterpret_cast< int*>(_v) = _t->blockCount(); break;
        case 8: *reinterpret_cast< qreal*>(_v) = _t->indentWidth(); break;
        case 9: *reinterpret_cast< QString*>(_v) = _t->defaultStyleSheet(); break;
        case 10: *reinterpret_cast< int*>(_v) = _t->maximumBlockCount(); break;
        case 11: *reinterpret_cast< qreal*>(_v) = _t->documentMargin(); break;
        case 12: *reinterpret_cast< QUrl*>(_v) = _t->baseUrl(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<QTextDocument *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setUndoRedoEnabled(*reinterpret_cast< bool*>(_v)); break;
        case 1: _t->setModified(*reinterpret_cast< bool*>(_v)); break;
        case 2: _t->setPageSize(*reinterpret_cast< QSizeF*>(_v)); break;
        case 3: _t->setDefaultFont(*reinterpret_cast< QFont*>(_v)); break;
        case 4: _t->setUseDesignMetrics(*reinterpret_cast< bool*>(_v)); break;
        case 6: _t->setTextWidth(*reinterpret_cast< qreal*>(_v)); break;
        case 8: _t->setIndentWidth(*reinterpret_cast< qreal*>(_v)); break;
        case 9: _t->setDefaultStyleSheet(*reinterpret_cast< QString*>(_v)); break;
        case 10: _t->setMaximumBlockCount(*reinterpret_cast< int*>(_v)); break;
        case 11: _t->setDocumentMargin(*reinterpret_cast< qreal*>(_v)); break;
        case 12: _t->setBaseUrl(*reinterpret_cast< QUrl*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject QTextDocument::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_QTextDocument.data,
    qt_meta_data_QTextDocument,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

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

// SIGNAL 0
void QTextDocument::contentsChange(int _t1, int _t2, int _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void QTextDocument::contentsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void QTextDocument::undoAvailable(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void QTextDocument::redoAvailable(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void QTextDocument::undoCommandAdded()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void QTextDocument::modificationChanged(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}

// SIGNAL 6
void QTextDocument::cursorPositionChanged(const QTextCursor & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 6, _a);
}

// SIGNAL 7
void QTextDocument::blockCountChanged(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 7, _a);
}

// SIGNAL 8
void QTextDocument::baseUrlChanged(const QUrl & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 8, _a);
}

// SIGNAL 9
void QTextDocument::documentLayoutChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
