/****************************************************************************
** Meta object code from reading C++ file 'qmdiarea.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 "../widgets/qmdiarea.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qmdiarea.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_QMdiArea_t {
    QByteArrayData data[38];
    char stringdata0[574];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QMdiArea_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QMdiArea_t qt_meta_stringdata_QMdiArea = {
    {
QT_MOC_LITERAL(0, 0, 8), // "QMdiArea"
QT_MOC_LITERAL(1, 9, 18), // "subWindowActivated"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 14), // "QMdiSubWindow*"
QT_MOC_LITERAL(4, 44, 18), // "setActiveSubWindow"
QT_MOC_LITERAL(5, 63, 6), // "window"
QT_MOC_LITERAL(6, 70, 14), // "tileSubWindows"
QT_MOC_LITERAL(7, 85, 17), // "cascadeSubWindows"
QT_MOC_LITERAL(8, 103, 20), // "closeActiveSubWindow"
QT_MOC_LITERAL(9, 124, 18), // "closeAllSubWindows"
QT_MOC_LITERAL(10, 143, 21), // "activateNextSubWindow"
QT_MOC_LITERAL(11, 165, 25), // "activatePreviousSubWindow"
QT_MOC_LITERAL(12, 191, 13), // "setupViewport"
QT_MOC_LITERAL(13, 205, 8), // "QWidget*"
QT_MOC_LITERAL(14, 214, 8), // "viewport"
QT_MOC_LITERAL(15, 223, 23), // "_q_deactivateAllWindows"
QT_MOC_LITERAL(16, 247, 28), // "_q_processWindowStateChanged"
QT_MOC_LITERAL(17, 276, 16), // "Qt::WindowStates"
QT_MOC_LITERAL(18, 293, 20), // "_q_currentTabChanged"
QT_MOC_LITERAL(19, 314, 11), // "_q_closeTab"
QT_MOC_LITERAL(20, 326, 10), // "_q_moveTab"
QT_MOC_LITERAL(21, 337, 10), // "background"
QT_MOC_LITERAL(22, 348, 15), // "activationOrder"
QT_MOC_LITERAL(23, 364, 11), // "WindowOrder"
QT_MOC_LITERAL(24, 376, 8), // "viewMode"
QT_MOC_LITERAL(25, 385, 8), // "ViewMode"
QT_MOC_LITERAL(26, 394, 12), // "documentMode"
QT_MOC_LITERAL(27, 407, 12), // "tabsClosable"
QT_MOC_LITERAL(28, 420, 11), // "tabsMovable"
QT_MOC_LITERAL(29, 432, 8), // "tabShape"
QT_MOC_LITERAL(30, 441, 20), // "QTabWidget::TabShape"
QT_MOC_LITERAL(31, 462, 11), // "tabPosition"
QT_MOC_LITERAL(32, 474, 23), // "QTabWidget::TabPosition"
QT_MOC_LITERAL(33, 498, 13), // "CreationOrder"
QT_MOC_LITERAL(34, 512, 13), // "StackingOrder"
QT_MOC_LITERAL(35, 526, 22), // "ActivationHistoryOrder"
QT_MOC_LITERAL(36, 549, 13), // "SubWindowView"
QT_MOC_LITERAL(37, 563, 10) // "TabbedView"

    },
    "QMdiArea\0subWindowActivated\0\0"
    "QMdiSubWindow*\0setActiveSubWindow\0"
    "window\0tileSubWindows\0cascadeSubWindows\0"
    "closeActiveSubWindow\0closeAllSubWindows\0"
    "activateNextSubWindow\0activatePreviousSubWindow\0"
    "setupViewport\0QWidget*\0viewport\0"
    "_q_deactivateAllWindows\0"
    "_q_processWindowStateChanged\0"
    "Qt::WindowStates\0_q_currentTabChanged\0"
    "_q_closeTab\0_q_moveTab\0background\0"
    "activationOrder\0WindowOrder\0viewMode\0"
    "ViewMode\0documentMode\0tabsClosable\0"
    "tabsMovable\0tabShape\0QTabWidget::TabShape\0"
    "tabPosition\0QTabWidget::TabPosition\0"
    "CreationOrder\0StackingOrder\0"
    "ActivationHistoryOrder\0SubWindowView\0"
    "TabbedView"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QMdiArea[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      14,   14, // methods
       8,  116, // properties
       2,  140, // enums/sets
       0,    0, // constructors
       0,       // flags
       1,       // signalCount

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

 // slots: name, argc, parameters, tag, flags
       4,    1,   87,    2, 0x0a /* Public */,
       6,    0,   90,    2, 0x0a /* Public */,
       7,    0,   91,    2, 0x0a /* Public */,
       8,    0,   92,    2, 0x0a /* Public */,
       9,    0,   93,    2, 0x0a /* Public */,
      10,    0,   94,    2, 0x0a /* Public */,
      11,    0,   95,    2, 0x0a /* Public */,
      12,    1,   96,    2, 0x09 /* Protected */,
      15,    0,   99,    2, 0x08 /* Private */,
      16,    2,  100,    2, 0x08 /* Private */,
      18,    1,  105,    2, 0x08 /* Private */,
      19,    1,  108,    2, 0x08 /* Private */,
      20,    2,  111,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    2,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 3,    5,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 13,   14,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 17, 0x80000000 | 17,    2,    2,
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    2,    2,

 // properties: name, type, flags
      21, QMetaType::QBrush, 0x00095103,
      22, 0x80000000 | 23, 0x0009510b,
      24, 0x80000000 | 25, 0x0009510b,
      26, QMetaType::Bool, 0x00095103,
      27, QMetaType::Bool, 0x00095103,
      28, QMetaType::Bool, 0x00095103,
      29, 0x80000000 | 30, 0x0009510b,
      31, 0x80000000 | 32, 0x0009510b,

 // enums: name, alias, flags, count, data
      23,   23, 0x0,    3,  150,
      25,   25, 0x0,    2,  156,

 // enum data: key, value
      33, uint(QMdiArea::CreationOrder),
      34, uint(QMdiArea::StackingOrder),
      35, uint(QMdiArea::ActivationHistoryOrder),
      36, uint(QMdiArea::SubWindowView),
      37, uint(QMdiArea::TabbedView),

       0        // eod
};

void QMdiArea::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<QMdiArea *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->subWindowActivated((*reinterpret_cast< QMdiSubWindow*(*)>(_a[1]))); break;
        case 1: _t->setActiveSubWindow((*reinterpret_cast< QMdiSubWindow*(*)>(_a[1]))); break;
        case 2: _t->tileSubWindows(); break;
        case 3: _t->cascadeSubWindows(); break;
        case 4: _t->closeActiveSubWindow(); break;
        case 5: _t->closeAllSubWindows(); break;
        case 6: _t->activateNextSubWindow(); break;
        case 7: _t->activatePreviousSubWindow(); break;
        case 8: _t->setupViewport((*reinterpret_cast< QWidget*(*)>(_a[1]))); break;
        case 9: _t->d_func()->_q_deactivateAllWindows(); break;
        case 10: _t->d_func()->_q_processWindowStateChanged((*reinterpret_cast< Qt::WindowStates(*)>(_a[1])),(*reinterpret_cast< Qt::WindowStates(*)>(_a[2]))); break;
        case 11: _t->d_func()->_q_currentTabChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 12: _t->d_func()->_q_closeTab((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 13: _t->d_func()->_q_moveTab((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QWidget* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (QMdiArea::*)(QMdiSubWindow * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QMdiArea::subWindowActivated)) {
                *result = 0;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<QMdiArea *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QBrush*>(_v) = _t->background(); break;
        case 1: *reinterpret_cast< WindowOrder*>(_v) = _t->activationOrder(); break;
        case 2: *reinterpret_cast< ViewMode*>(_v) = _t->viewMode(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->documentMode(); break;
        case 4: *reinterpret_cast< bool*>(_v) = _t->tabsClosable(); break;
        case 5: *reinterpret_cast< bool*>(_v) = _t->tabsMovable(); break;
        case 6: *reinterpret_cast< QTabWidget::TabShape*>(_v) = _t->tabShape(); break;
        case 7: *reinterpret_cast< QTabWidget::TabPosition*>(_v) = _t->tabPosition(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<QMdiArea *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setBackground(*reinterpret_cast< QBrush*>(_v)); break;
        case 1: _t->setActivationOrder(*reinterpret_cast< WindowOrder*>(_v)); break;
        case 2: _t->setViewMode(*reinterpret_cast< ViewMode*>(_v)); break;
        case 3: _t->setDocumentMode(*reinterpret_cast< bool*>(_v)); break;
        case 4: _t->setTabsClosable(*reinterpret_cast< bool*>(_v)); break;
        case 5: _t->setTabsMovable(*reinterpret_cast< bool*>(_v)); break;
        case 6: _t->setTabShape(*reinterpret_cast< QTabWidget::TabShape*>(_v)); break;
        case 7: _t->setTabPosition(*reinterpret_cast< QTabWidget::TabPosition*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

static const QMetaObject::SuperData qt_meta_extradata_QMdiArea[] = {
    QMetaObject::SuperData::link<QTabWidget::staticMetaObject>(),
    nullptr
};

QT_INIT_METAOBJECT const QMetaObject QMdiArea::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractScrollArea::staticMetaObject>(),
    qt_meta_stringdata_QMdiArea.data,
    qt_meta_data_QMdiArea,
    qt_static_metacall,
    qt_meta_extradata_QMdiArea,
    nullptr
} };


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

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

int QMdiArea::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractScrollArea::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
#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 -= 8;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 8;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 8;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 8;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 8;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 8;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void QMdiArea::subWindowActivated(QMdiSubWindow * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
