/****************************************************************************
** Meta object code from reading C++ file 'qgraphicsscene.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 "../graphicsview/qgraphicsscene.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qgraphicsscene.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_QGraphicsScene_t {
    QByteArrayData data[41];
    char stringdata0[508];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QGraphicsScene_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QGraphicsScene_t qt_meta_stringdata_QGraphicsScene = {
    {
QT_MOC_LITERAL(0, 0, 14), // "QGraphicsScene"
QT_MOC_LITERAL(1, 15, 7), // "changed"
QT_MOC_LITERAL(2, 23, 0), // ""
QT_MOC_LITERAL(3, 24, 13), // "QList<QRectF>"
QT_MOC_LITERAL(4, 38, 6), // "region"
QT_MOC_LITERAL(5, 45, 16), // "sceneRectChanged"
QT_MOC_LITERAL(6, 62, 4), // "rect"
QT_MOC_LITERAL(7, 67, 16), // "selectionChanged"
QT_MOC_LITERAL(8, 84, 16), // "focusItemChanged"
QT_MOC_LITERAL(9, 101, 14), // "QGraphicsItem*"
QT_MOC_LITERAL(10, 116, 8), // "newFocus"
QT_MOC_LITERAL(11, 125, 8), // "oldFocus"
QT_MOC_LITERAL(12, 134, 15), // "Qt::FocusReason"
QT_MOC_LITERAL(13, 150, 6), // "reason"
QT_MOC_LITERAL(14, 157, 6), // "update"
QT_MOC_LITERAL(15, 164, 10), // "invalidate"
QT_MOC_LITERAL(16, 175, 11), // "SceneLayers"
QT_MOC_LITERAL(17, 187, 6), // "layers"
QT_MOC_LITERAL(18, 194, 7), // "advance"
QT_MOC_LITERAL(19, 202, 14), // "clearSelection"
QT_MOC_LITERAL(20, 217, 5), // "clear"
QT_MOC_LITERAL(21, 223, 18), // "focusNextPrevChild"
QT_MOC_LITERAL(22, 242, 4), // "next"
QT_MOC_LITERAL(23, 247, 14), // "_q_emitUpdated"
QT_MOC_LITERAL(24, 262, 14), // "_q_polishItems"
QT_MOC_LITERAL(25, 277, 20), // "_q_processDirtyItems"
QT_MOC_LITERAL(26, 298, 28), // "_q_updateScenePosDescendants"
QT_MOC_LITERAL(27, 327, 15), // "backgroundBrush"
QT_MOC_LITERAL(28, 343, 15), // "foregroundBrush"
QT_MOC_LITERAL(29, 359, 15), // "itemIndexMethod"
QT_MOC_LITERAL(30, 375, 15), // "ItemIndexMethod"
QT_MOC_LITERAL(31, 391, 9), // "sceneRect"
QT_MOC_LITERAL(32, 401, 12), // "bspTreeDepth"
QT_MOC_LITERAL(33, 414, 7), // "palette"
QT_MOC_LITERAL(34, 422, 4), // "font"
QT_MOC_LITERAL(35, 427, 16), // "sortCacheEnabled"
QT_MOC_LITERAL(36, 444, 11), // "stickyFocus"
QT_MOC_LITERAL(37, 456, 17), // "minimumRenderSize"
QT_MOC_LITERAL(38, 474, 12), // "focusOnTouch"
QT_MOC_LITERAL(39, 487, 12), // "BspTreeIndex"
QT_MOC_LITERAL(40, 500, 7) // "NoIndex"

    },
    "QGraphicsScene\0changed\0\0QList<QRectF>\0"
    "region\0sceneRectChanged\0rect\0"
    "selectionChanged\0focusItemChanged\0"
    "QGraphicsItem*\0newFocus\0oldFocus\0"
    "Qt::FocusReason\0reason\0update\0invalidate\0"
    "SceneLayers\0layers\0advance\0clearSelection\0"
    "clear\0focusNextPrevChild\0next\0"
    "_q_emitUpdated\0_q_polishItems\0"
    "_q_processDirtyItems\0_q_updateScenePosDescendants\0"
    "backgroundBrush\0foregroundBrush\0"
    "itemIndexMethod\0ItemIndexMethod\0"
    "sceneRect\0bspTreeDepth\0palette\0font\0"
    "sortCacheEnabled\0stickyFocus\0"
    "minimumRenderSize\0focusOnTouch\0"
    "BspTreeIndex\0NoIndex"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QGraphicsScene[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      17,   14, // methods
      11,  136, // properties
       1,  169, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   99,    2, 0x06 /* Public */,
       5,    1,  102,    2, 0x06 /* Public */,
       7,    0,  105,    2, 0x06 /* Public */,
       8,    3,  106,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      14,    1,  113,    2, 0x0a /* Public */,
      14,    0,  116,    2, 0x2a /* Public | MethodCloned */,
      15,    2,  117,    2, 0x0a /* Public */,
      15,    1,  122,    2, 0x2a /* Public | MethodCloned */,
      15,    0,  125,    2, 0x2a /* Public | MethodCloned */,
      18,    0,  126,    2, 0x0a /* Public */,
      19,    0,  127,    2, 0x0a /* Public */,
      20,    0,  128,    2, 0x0a /* Public */,
      21,    1,  129,    2, 0x09 /* Protected */,
      23,    0,  132,    2, 0x08 /* Private */,
      24,    0,  133,    2, 0x08 /* Private */,
      25,    0,  134,    2, 0x08 /* Private */,
      26,    0,  135,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, QMetaType::QRectF,    6,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 9, 0x80000000 | 9, 0x80000000 | 12,   10,   11,   13,

 // slots: parameters
    QMetaType::Void, QMetaType::QRectF,    6,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QRectF, 0x80000000 | 16,    6,   17,
    QMetaType::Void, QMetaType::QRectF,    6,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Bool, QMetaType::Bool,   22,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // properties: name, type, flags
      27, QMetaType::QBrush, 0x00095103,
      28, QMetaType::QBrush, 0x00095103,
      29, 0x80000000 | 30, 0x0009510b,
      31, QMetaType::QRectF, 0x00095103,
      32, QMetaType::Int, 0x00095103,
      33, QMetaType::QPalette, 0x00095103,
      34, QMetaType::QFont, 0x00095103,
      35, QMetaType::Bool, 0x00095103,
      36, QMetaType::Bool, 0x00095103,
      37, QMetaType::QReal, 0x00095103,
      38, QMetaType::Bool, 0x00095103,

 // enums: name, alias, flags, count, data
      30,   30, 0x0,    2,  174,

 // enum data: key, value
      39, uint(QGraphicsScene::BspTreeIndex),
      40, uint(QGraphicsScene::NoIndex),

       0        // eod
};

void QGraphicsScene::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<QGraphicsScene *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->changed((*reinterpret_cast< const QList<QRectF>(*)>(_a[1]))); break;
        case 1: _t->sceneRectChanged((*reinterpret_cast< const QRectF(*)>(_a[1]))); break;
        case 2: _t->selectionChanged(); break;
        case 3: _t->focusItemChanged((*reinterpret_cast< QGraphicsItem*(*)>(_a[1])),(*reinterpret_cast< QGraphicsItem*(*)>(_a[2])),(*reinterpret_cast< Qt::FocusReason(*)>(_a[3]))); break;
        case 4: _t->update((*reinterpret_cast< const QRectF(*)>(_a[1]))); break;
        case 5: _t->update(); break;
        case 6: _t->invalidate((*reinterpret_cast< const QRectF(*)>(_a[1])),(*reinterpret_cast< SceneLayers(*)>(_a[2]))); break;
        case 7: _t->invalidate((*reinterpret_cast< const QRectF(*)>(_a[1]))); break;
        case 8: _t->invalidate(); break;
        case 9: _t->advance(); break;
        case 10: _t->clearSelection(); break;
        case 11: _t->clear(); break;
        case 12: { bool _r = _t->focusNextPrevChild((*reinterpret_cast< bool(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 13: _t->d_func()->_q_emitUpdated(); break;
        case 14: _t->d_func()->_q_polishItems(); break;
        case 15: _t->d_func()->_q_processDirtyItems(); break;
        case 16: _t->d_func()->_q_updateScenePosDescendants(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<QRectF> >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (QGraphicsScene::*)(const QList<QRectF> & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsScene::changed)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (QGraphicsScene::*)(const QRectF & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsScene::sceneRectChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (QGraphicsScene::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsScene::selectionChanged)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (QGraphicsScene::*)(QGraphicsItem * , QGraphicsItem * , Qt::FocusReason );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGraphicsScene::focusItemChanged)) {
                *result = 3;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<QGraphicsScene *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QBrush*>(_v) = _t->backgroundBrush(); break;
        case 1: *reinterpret_cast< QBrush*>(_v) = _t->foregroundBrush(); break;
        case 2: *reinterpret_cast< ItemIndexMethod*>(_v) = _t->itemIndexMethod(); break;
        case 3: *reinterpret_cast< QRectF*>(_v) = _t->sceneRect(); break;
        case 4: *reinterpret_cast< int*>(_v) = _t->bspTreeDepth(); break;
        case 5: *reinterpret_cast< QPalette*>(_v) = _t->palette(); break;
        case 6: *reinterpret_cast< QFont*>(_v) = _t->font(); break;
        case 7: *reinterpret_cast< bool*>(_v) = _t->isSortCacheEnabled(); break;
        case 8: *reinterpret_cast< bool*>(_v) = _t->stickyFocus(); break;
        case 9: *reinterpret_cast< qreal*>(_v) = _t->minimumRenderSize(); break;
        case 10: *reinterpret_cast< bool*>(_v) = _t->focusOnTouch(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<QGraphicsScene *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setBackgroundBrush(*reinterpret_cast< QBrush*>(_v)); break;
        case 1: _t->setForegroundBrush(*reinterpret_cast< QBrush*>(_v)); break;
        case 2: _t->setItemIndexMethod(*reinterpret_cast< ItemIndexMethod*>(_v)); break;
        case 3: _t->setSceneRect(*reinterpret_cast< QRectF*>(_v)); break;
        case 4: _t->setBspTreeDepth(*reinterpret_cast< int*>(_v)); break;
        case 5: _t->setPalette(*reinterpret_cast< QPalette*>(_v)); break;
        case 6: _t->setFont(*reinterpret_cast< QFont*>(_v)); break;
        case 7: _t->setSortCacheEnabled(*reinterpret_cast< bool*>(_v)); break;
        case 8: _t->setStickyFocus(*reinterpret_cast< bool*>(_v)); break;
        case 9: _t->setMinimumRenderSize(*reinterpret_cast< qreal*>(_v)); break;
        case 10: _t->setFocusOnTouch(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject QGraphicsScene::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_QGraphicsScene.data,
    qt_meta_data_QGraphicsScene,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int QGraphicsScene::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)
            qt_static_metacall(this, _c, _id, _a);
        _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 -= 11;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 11;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void QGraphicsScene::changed(const QList<QRectF> & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void QGraphicsScene::sceneRectChanged(const QRectF & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

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

// SIGNAL 3
void QGraphicsScene::focusItemChanged(QGraphicsItem * _t1, QGraphicsItem * _t2, Qt::FocusReason _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, 3, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
