/****************************************************************************
** Meta object code from reading C++ file 'documenthandler.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/qtquickcontrols-opensource-src-5.9.2/examples/quickcontrols/controls/texteditor/src/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.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_DocumentHandler_t {
    QByteArrayData data[48];
    char stringdata0[600];
};
#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, 13), // "targetChanged"
QT_MOC_LITERAL(2, 30, 0), // ""
QT_MOC_LITERAL(3, 31, 21), // "cursorPositionChanged"
QT_MOC_LITERAL(4, 53, 21), // "selectionStartChanged"
QT_MOC_LITERAL(5, 75, 19), // "selectionEndChanged"
QT_MOC_LITERAL(6, 95, 17), // "fontFamilyChanged"
QT_MOC_LITERAL(7, 113, 16), // "textColorChanged"
QT_MOC_LITERAL(8, 130, 16), // "alignmentChanged"
QT_MOC_LITERAL(9, 147, 11), // "boldChanged"
QT_MOC_LITERAL(10, 159, 13), // "italicChanged"
QT_MOC_LITERAL(11, 173, 16), // "underlineChanged"
QT_MOC_LITERAL(12, 190, 15), // "fontSizeChanged"
QT_MOC_LITERAL(13, 206, 23), // "defaultFontSizesChanged"
QT_MOC_LITERAL(14, 230, 14), // "fileUrlChanged"
QT_MOC_LITERAL(15, 245, 11), // "textChanged"
QT_MOC_LITERAL(16, 257, 20), // "documentTitleChanged"
QT_MOC_LITERAL(17, 278, 5), // "error"
QT_MOC_LITERAL(18, 284, 7), // "message"
QT_MOC_LITERAL(19, 292, 7), // "setBold"
QT_MOC_LITERAL(20, 300, 3), // "arg"
QT_MOC_LITERAL(21, 304, 9), // "setItalic"
QT_MOC_LITERAL(22, 314, 12), // "setUnderline"
QT_MOC_LITERAL(23, 327, 11), // "setFontSize"
QT_MOC_LITERAL(24, 339, 12), // "setTextColor"
QT_MOC_LITERAL(25, 352, 13), // "setFontFamily"
QT_MOC_LITERAL(26, 366, 10), // "setFileUrl"
QT_MOC_LITERAL(27, 377, 7), // "setText"
QT_MOC_LITERAL(28, 385, 6), // "saveAs"
QT_MOC_LITERAL(29, 392, 8), // "fileType"
QT_MOC_LITERAL(30, 401, 16), // "setDocumentTitle"
QT_MOC_LITERAL(31, 418, 6), // "target"
QT_MOC_LITERAL(32, 425, 11), // "QQuickItem*"
QT_MOC_LITERAL(33, 437, 14), // "cursorPosition"
QT_MOC_LITERAL(34, 452, 14), // "selectionStart"
QT_MOC_LITERAL(35, 467, 12), // "selectionEnd"
QT_MOC_LITERAL(36, 480, 9), // "textColor"
QT_MOC_LITERAL(37, 490, 10), // "fontFamily"
QT_MOC_LITERAL(38, 501, 9), // "alignment"
QT_MOC_LITERAL(39, 511, 13), // "Qt::Alignment"
QT_MOC_LITERAL(40, 525, 4), // "bold"
QT_MOC_LITERAL(41, 530, 6), // "italic"
QT_MOC_LITERAL(42, 537, 9), // "underline"
QT_MOC_LITERAL(43, 547, 8), // "fontSize"
QT_MOC_LITERAL(44, 556, 16), // "defaultFontSizes"
QT_MOC_LITERAL(45, 573, 7), // "fileUrl"
QT_MOC_LITERAL(46, 581, 4), // "text"
QT_MOC_LITERAL(47, 586, 13) // "documentTitle"

    },
    "DocumentHandler\0targetChanged\0\0"
    "cursorPositionChanged\0selectionStartChanged\0"
    "selectionEndChanged\0fontFamilyChanged\0"
    "textColorChanged\0alignmentChanged\0"
    "boldChanged\0italicChanged\0underlineChanged\0"
    "fontSizeChanged\0defaultFontSizesChanged\0"
    "fileUrlChanged\0textChanged\0"
    "documentTitleChanged\0error\0message\0"
    "setBold\0arg\0setItalic\0setUnderline\0"
    "setFontSize\0setTextColor\0setFontFamily\0"
    "setFileUrl\0setText\0saveAs\0fileType\0"
    "setDocumentTitle\0target\0QQuickItem*\0"
    "cursorPosition\0selectionStart\0"
    "selectionEnd\0textColor\0fontFamily\0"
    "alignment\0Qt::Alignment\0bold\0italic\0"
    "underline\0fontSize\0defaultFontSizes\0"
    "fileUrl\0text\0documentTitle"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_DocumentHandler[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,  144,    2, 0x06 /* Public */,
       3,    0,  145,    2, 0x06 /* Public */,
       4,    0,  146,    2, 0x06 /* Public */,
       5,    0,  147,    2, 0x06 /* Public */,
       6,    0,  148,    2, 0x06 /* Public */,
       7,    0,  149,    2, 0x06 /* Public */,
       8,    0,  150,    2, 0x06 /* Public */,
       9,    0,  151,    2, 0x06 /* Public */,
      10,    0,  152,    2, 0x06 /* Public */,
      11,    0,  153,    2, 0x06 /* Public */,
      12,    0,  154,    2, 0x06 /* Public */,
      13,    0,  155,    2, 0x06 /* Public */,
      14,    0,  156,    2, 0x06 /* Public */,
      15,    0,  157,    2, 0x06 /* Public */,
      16,    0,  158,    2, 0x06 /* Public */,
      17,    1,  159,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      19,    1,  162,    2, 0x0a /* Public */,
      21,    1,  165,    2, 0x0a /* Public */,
      22,    1,  168,    2, 0x0a /* Public */,
      23,    1,  171,    2, 0x0a /* Public */,
      24,    1,  174,    2, 0x0a /* Public */,
      25,    1,  177,    2, 0x0a /* Public */,
      26,    1,  180,    2, 0x0a /* Public */,
      27,    1,  183,    2, 0x0a /* Public */,
      28,    2,  186,    2, 0x0a /* Public */,
      30,    1,  191,    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::Void,
    QMetaType::Void, QMetaType::QString,   18,

 // slots: parameters
    QMetaType::Void, QMetaType::Bool,   20,
    QMetaType::Void, QMetaType::Bool,   20,
    QMetaType::Void, QMetaType::Bool,   20,
    QMetaType::Void, QMetaType::Int,   20,
    QMetaType::Void, QMetaType::QColor,   20,
    QMetaType::Void, QMetaType::QString,   20,
    QMetaType::Void, QMetaType::QUrl,   20,
    QMetaType::Void, QMetaType::QString,   20,
    QMetaType::Void, QMetaType::QUrl, QMetaType::QString,   20,   29,
    QMetaType::Void, QMetaType::QString,   20,

 // properties: name, type, flags
      31, 0x80000000 | 32, 0x0049510b,
      33, QMetaType::Int, 0x00495103,
      34, QMetaType::Int, 0x00495103,
      35, QMetaType::Int, 0x00495103,
      36, QMetaType::QColor, 0x00495103,
      37, QMetaType::QString, 0x00495103,
      38, 0x80000000 | 39, 0x0049510b,
      40, QMetaType::Bool, 0x00495103,
      41, QMetaType::Bool, 0x00495103,
      42, QMetaType::Bool, 0x00495103,
      43, QMetaType::Int, 0x00495103,
      44, QMetaType::QStringList, 0x00495001,
      45, QMetaType::QUrl, 0x00495103,
      46, QMetaType::QString, 0x00495103,
      47, QMetaType::QString, 0x00495103,

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

 // enums: name, flags, count, data

 // enum data: key, value

       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->targetChanged(); 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->defaultFontSizesChanged(); break;
        case 12: _t->fileUrlChanged(); break;
        case 13: _t->textChanged(); break;
        case 14: _t->documentTitleChanged(); break;
        case 15: _t->error((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 16: _t->setBold((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 17: _t->setItalic((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 18: _t->setUnderline((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 19: _t->setFontSize((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 20: _t->setTextColor((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
        case 21: _t->setFontFamily((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 22: _t->setFileUrl((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;
        case 23: _t->setText((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 24: _t->saveAs((*reinterpret_cast< const QUrl(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 25: _t->setDocumentTitle((*reinterpret_cast< QString(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentHandler::targetChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentHandler::cursorPositionChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentHandler::selectionStartChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentHandler::selectionEndChanged)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentHandler::fontFamilyChanged)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentHandler::textColorChanged)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentHandler::alignmentChanged)) {
                *result = 6;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentHandler::boldChanged)) {
                *result = 7;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentHandler::italicChanged)) {
                *result = 8;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentHandler::underlineChanged)) {
                *result = 9;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentHandler::fontSizeChanged)) {
                *result = 10;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentHandler::defaultFontSizesChanged)) {
                *result = 11;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentHandler::fileUrlChanged)) {
                *result = 12;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentHandler::textChanged)) {
                *result = 13;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentHandler::documentTitleChanged)) {
                *result = 14;
                return;
            }
        }
        {
            typedef void (DocumentHandler::*_t)(QString );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentHandler::error)) {
                *result = 15;
                return;
            }
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickItem* >(); break;
        }
    }

#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< QQuickItem**>(_v) = _t->target(); 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< QStringList*>(_v) = _t->defaultFontSizes(); break;
        case 12: *reinterpret_cast< QUrl*>(_v) = _t->fileUrl(); break;
        case 13: *reinterpret_cast< QString*>(_v) = _t->text(); break;
        case 14: *reinterpret_cast< QString*>(_v) = _t->documentTitle(); 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->setTarget(*reinterpret_cast< QQuickItem**>(_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;
        case 12: _t->setFileUrl(*reinterpret_cast< QUrl*>(_v)); break;
        case 13: _t->setText(*reinterpret_cast< QString*>(_v)); break;
        case 14: _t->setDocumentTitle(*reinterpret_cast< QString*>(_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 < 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;
    }
#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 -= 15;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 15;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 15;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 15;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 15;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 15;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void DocumentHandler::targetChanged()
{
    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::defaultFontSizesChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 11, nullptr);
}

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

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

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

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