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

#include "../../../../../src/qtquickcontrols2-opensource-src-5.9.3/examples/quickcontrols2/texteditor/documenthandler.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'documenthandler.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.3. 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_DocumentHandler_t {
    QByteArrayData data[37];
    char stringdata0[447];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_DocumentHandler_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_DocumentHandler_t qt_meta_stringdata_DocumentHandler = {
    {
QT_MOC_LITERAL(0, 0, 15), // "DocumentHandler"
QT_MOC_LITERAL(1, 16, 15), // "documentChanged"
QT_MOC_LITERAL(2, 32, 0), // ""
QT_MOC_LITERAL(3, 33, 21), // "cursorPositionChanged"
QT_MOC_LITERAL(4, 55, 21), // "selectionStartChanged"
QT_MOC_LITERAL(5, 77, 19), // "selectionEndChanged"
QT_MOC_LITERAL(6, 97, 17), // "fontFamilyChanged"
QT_MOC_LITERAL(7, 115, 16), // "textColorChanged"
QT_MOC_LITERAL(8, 132, 16), // "alignmentChanged"
QT_MOC_LITERAL(9, 149, 11), // "boldChanged"
QT_MOC_LITERAL(10, 161, 13), // "italicChanged"
QT_MOC_LITERAL(11, 175, 16), // "underlineChanged"
QT_MOC_LITERAL(12, 192, 15), // "fontSizeChanged"
QT_MOC_LITERAL(13, 208, 11), // "textChanged"
QT_MOC_LITERAL(14, 220, 14), // "fileUrlChanged"
QT_MOC_LITERAL(15, 235, 6), // "loaded"
QT_MOC_LITERAL(16, 242, 4), // "text"
QT_MOC_LITERAL(17, 247, 5), // "error"
QT_MOC_LITERAL(18, 253, 7), // "message"
QT_MOC_LITERAL(19, 261, 4), // "load"
QT_MOC_LITERAL(20, 266, 7), // "fileUrl"
QT_MOC_LITERAL(21, 274, 6), // "saveAs"
QT_MOC_LITERAL(22, 281, 8), // "document"
QT_MOC_LITERAL(23, 290, 19), // "QQuickTextDocument*"
QT_MOC_LITERAL(24, 310, 14), // "cursorPosition"
QT_MOC_LITERAL(25, 325, 14), // "selectionStart"
QT_MOC_LITERAL(26, 340, 12), // "selectionEnd"
QT_MOC_LITERAL(27, 353, 9), // "textColor"
QT_MOC_LITERAL(28, 363, 10), // "fontFamily"
QT_MOC_LITERAL(29, 374, 9), // "alignment"
QT_MOC_LITERAL(30, 384, 13), // "Qt::Alignment"
QT_MOC_LITERAL(31, 398, 4), // "bold"
QT_MOC_LITERAL(32, 403, 6), // "italic"
QT_MOC_LITERAL(33, 410, 9), // "underline"
QT_MOC_LITERAL(34, 420, 8), // "fontSize"
QT_MOC_LITERAL(35, 429, 8), // "fileName"
QT_MOC_LITERAL(36, 438, 8) // "fileType"

    },
    "DocumentHandler\0documentChanged\0\0"
    "cursorPositionChanged\0selectionStartChanged\0"
    "selectionEndChanged\0fontFamilyChanged\0"
    "textColorChanged\0alignmentChanged\0"
    "boldChanged\0italicChanged\0underlineChanged\0"
    "fontSizeChanged\0textChanged\0fileUrlChanged\0"
    "loaded\0text\0error\0message\0load\0fileUrl\0"
    "saveAs\0document\0QQuickTextDocument*\0"
    "cursorPosition\0selectionStart\0"
    "selectionEnd\0textColor\0fontFamily\0"
    "alignment\0Qt::Alignment\0bold\0italic\0"
    "underline\0fontSize\0fileName\0fileType"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_DocumentHandler[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      17,   14, // methods
      14,  124, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
      15,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   99,    2, 0x06 /* Public */,
       3,    0,  100,    2, 0x06 /* Public */,
       4,    0,  101,    2, 0x06 /* Public */,
       5,    0,  102,    2, 0x06 /* Public */,
       6,    0,  103,    2, 0x06 /* Public */,
       7,    0,  104,    2, 0x06 /* Public */,
       8,    0,  105,    2, 0x06 /* Public */,
       9,    0,  106,    2, 0x06 /* Public */,
      10,    0,  107,    2, 0x06 /* Public */,
      11,    0,  108,    2, 0x06 /* Public */,
      12,    0,  109,    2, 0x06 /* Public */,
      13,    0,  110,    2, 0x06 /* Public */,
      14,    0,  111,    2, 0x06 /* Public */,
      15,    1,  112,    2, 0x06 /* Public */,
      17,    1,  115,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      19,    1,  118,    2, 0x0a /* Public */,
      21,    1,  121,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,   16,
    QMetaType::Void, QMetaType::QString,   18,

 // slots: parameters
    QMetaType::Void, QMetaType::QUrl,   20,
    QMetaType::Void, QMetaType::QUrl,   20,

 // properties: name, type, flags
      22, 0x80000000 | 23, 0x0049510b,
      24, QMetaType::Int, 0x00495103,
      25, QMetaType::Int, 0x00495103,
      26, QMetaType::Int, 0x00495103,
      27, QMetaType::QColor, 0x00495103,
      28, QMetaType::QString, 0x00495103,
      29, 0x80000000 | 30, 0x0049510b,
      31, QMetaType::Bool, 0x00495103,
      32, QMetaType::Bool, 0x00495103,
      33, QMetaType::Bool, 0x00495103,
      34, QMetaType::Int, 0x00495103,
      35, QMetaType::QString, 0x00495001,
      36, QMetaType::QString, 0x00495001,
      20, QMetaType::QUrl, 0x00495001,

 // properties: notify_signal_id
       0,
       1,
       2,
       3,
       5,
       4,
       6,
       7,
       8,
       9,
      10,
      12,
      12,
      12,

       0        // eod
};

void DocumentHandler::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        DocumentHandler *_t = static_cast<DocumentHandler *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->documentChanged(); break;
        case 1: _t->cursorPositionChanged(); break;
        case 2: _t->selectionStartChanged(); break;
        case 3: _t->selectionEndChanged(); break;
        case 4: _t->fontFamilyChanged(); break;
        case 5: _t->textColorChanged(); break;
        case 6: _t->alignmentChanged(); break;
        case 7: _t->boldChanged(); break;
        case 8: _t->italicChanged(); break;
        case 9: _t->underlineChanged(); break;
        case 10: _t->fontSizeChanged(); break;
        case 11: _t->textChanged(); break;
        case 12: _t->fileUrlChanged(); break;
        case 13: _t->loaded((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 14: _t->error((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 15: _t->load((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;
        case 16: _t->saveAs((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentHandler::documentChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentHandler::cursorPositionChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentHandler::selectionStartChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentHandler::selectionEndChanged)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentHandler::fontFamilyChanged)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentHandler::textColorChanged)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentHandler::alignmentChanged)) {
                *result = 6;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentHandler::boldChanged)) {
                *result = 7;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentHandler::italicChanged)) {
                *result = 8;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentHandler::underlineChanged)) {
                *result = 9;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentHandler::fontSizeChanged)) {
                *result = 10;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentHandler::textChanged)) {
                *result = 11;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentHandler::fileUrlChanged)) {
                *result = 12;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentHandler::loaded)) {
                *result = 13;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentHandler::error)) {
                *result = 14;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        DocumentHandler *_t = static_cast<DocumentHandler *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QQuickTextDocument**>(_v) = _t->document(); break;
        case 1: *reinterpret_cast< int*>(_v) = _t->cursorPosition(); break;
        case 2: *reinterpret_cast< int*>(_v) = _t->selectionStart(); break;
        case 3: *reinterpret_cast< int*>(_v) = _t->selectionEnd(); break;
        case 4: *reinterpret_cast< QColor*>(_v) = _t->textColor(); break;
        case 5: *reinterpret_cast< QString*>(_v) = _t->fontFamily(); break;
        case 6: *reinterpret_cast< Qt::Alignment*>(_v) = _t->alignment(); break;
        case 7: *reinterpret_cast< bool*>(_v) = _t->bold(); break;
        case 8: *reinterpret_cast< bool*>(_v) = _t->italic(); break;
        case 9: *reinterpret_cast< bool*>(_v) = _t->underline(); break;
        case 10: *reinterpret_cast< int*>(_v) = _t->fontSize(); break;
        case 11: *reinterpret_cast< QString*>(_v) = _t->fileName(); break;
        case 12: *reinterpret_cast< QString*>(_v) = _t->fileType(); break;
        case 13: *reinterpret_cast< QUrl*>(_v) = _t->fileUrl(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        DocumentHandler *_t = static_cast<DocumentHandler *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setDocument(*reinterpret_cast< QQuickTextDocument**>(_v)); break;
        case 1: _t->setCursorPosition(*reinterpret_cast< int*>(_v)); break;
        case 2: _t->setSelectionStart(*reinterpret_cast< int*>(_v)); break;
        case 3: _t->setSelectionEnd(*reinterpret_cast< int*>(_v)); break;
        case 4: _t->setTextColor(*reinterpret_cast< QColor*>(_v)); break;
        case 5: _t->setFontFamily(*reinterpret_cast< QString*>(_v)); break;
        case 6: _t->setAlignment(*reinterpret_cast< Qt::Alignment*>(_v)); break;
        case 7: _t->setBold(*reinterpret_cast< bool*>(_v)); break;
        case 8: _t->setItalic(*reinterpret_cast< bool*>(_v)); break;
        case 9: _t->setUnderline(*reinterpret_cast< bool*>(_v)); break;
        case 10: _t->setFontSize(*reinterpret_cast< int*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject DocumentHandler::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_DocumentHandler.data,
      qt_meta_data_DocumentHandler,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

// SIGNAL 0
void DocumentHandler::documentChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

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

// SIGNAL 2
void DocumentHandler::selectionStartChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void DocumentHandler::selectionEndChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

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

// SIGNAL 5
void DocumentHandler::textColorChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void DocumentHandler::alignmentChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void DocumentHandler::boldChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void DocumentHandler::italicChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void DocumentHandler::underlineChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}

// SIGNAL 10
void DocumentHandler::fontSizeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 10, nullptr);
}

// SIGNAL 11
void DocumentHandler::textChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 11, nullptr);
}

// SIGNAL 12
void DocumentHandler::fileUrlChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 12, nullptr);
}

// SIGNAL 13
void DocumentHandler::loaded(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 13, _a);
}

// SIGNAL 14
void DocumentHandler::error(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 14, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
