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

#include "../../../../src/qtbase-opensource-src-5.4.2/src/corelib/itemmodels/qitemselectionmodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qitemselectionmodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.4.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
struct qt_meta_stringdata_QItemSelectionModel_t {
    QByteArrayData data[43];
    char stringdata[615];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QItemSelectionModel_t, stringdata) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QItemSelectionModel_t qt_meta_stringdata_QItemSelectionModel = {
    {
QT_MOC_LITERAL(0, 0, 19), // "QItemSelectionModel"
QT_MOC_LITERAL(1, 20, 16), // "selectionChanged"
QT_MOC_LITERAL(2, 37, 0), // ""
QT_MOC_LITERAL(3, 38, 14), // "QItemSelection"
QT_MOC_LITERAL(4, 53, 8), // "selected"
QT_MOC_LITERAL(5, 62, 10), // "deselected"
QT_MOC_LITERAL(6, 73, 14), // "currentChanged"
QT_MOC_LITERAL(7, 88, 7), // "current"
QT_MOC_LITERAL(8, 96, 8), // "previous"
QT_MOC_LITERAL(9, 105, 17), // "currentRowChanged"
QT_MOC_LITERAL(10, 123, 20), // "currentColumnChanged"
QT_MOC_LITERAL(11, 144, 15), // "setCurrentIndex"
QT_MOC_LITERAL(12, 160, 5), // "index"
QT_MOC_LITERAL(13, 166, 35), // "QItemSelectionModel::Selectio..."
QT_MOC_LITERAL(14, 202, 7), // "command"
QT_MOC_LITERAL(15, 210, 6), // "select"
QT_MOC_LITERAL(16, 217, 9), // "selection"
QT_MOC_LITERAL(17, 227, 5), // "clear"
QT_MOC_LITERAL(18, 233, 5), // "reset"
QT_MOC_LITERAL(19, 239, 14), // "clearSelection"
QT_MOC_LITERAL(20, 254, 17), // "clearCurrentIndex"
QT_MOC_LITERAL(21, 272, 26), // "_q_columnsAboutToBeRemoved"
QT_MOC_LITERAL(22, 299, 23), // "_q_rowsAboutToBeRemoved"
QT_MOC_LITERAL(23, 323, 27), // "_q_columnsAboutToBeInserted"
QT_MOC_LITERAL(24, 351, 24), // "_q_rowsAboutToBeInserted"
QT_MOC_LITERAL(25, 376, 25), // "_q_layoutAboutToBeChanged"
QT_MOC_LITERAL(26, 402, 28), // "QList<QPersistentModelIndex>"
QT_MOC_LITERAL(27, 431, 7), // "parents"
QT_MOC_LITERAL(28, 439, 36), // "QAbstractItemModel::LayoutCha..."
QT_MOC_LITERAL(29, 476, 4), // "hint"
QT_MOC_LITERAL(30, 481, 16), // "_q_layoutChanged"
QT_MOC_LITERAL(31, 498, 14), // "SelectionFlags"
QT_MOC_LITERAL(32, 513, 8), // "NoUpdate"
QT_MOC_LITERAL(33, 522, 5), // "Clear"
QT_MOC_LITERAL(34, 528, 6), // "Select"
QT_MOC_LITERAL(35, 535, 8), // "Deselect"
QT_MOC_LITERAL(36, 544, 6), // "Toggle"
QT_MOC_LITERAL(37, 551, 7), // "Current"
QT_MOC_LITERAL(38, 559, 4), // "Rows"
QT_MOC_LITERAL(39, 564, 7), // "Columns"
QT_MOC_LITERAL(40, 572, 13), // "SelectCurrent"
QT_MOC_LITERAL(41, 586, 13), // "ToggleCurrent"
QT_MOC_LITERAL(42, 600, 14) // "ClearAndSelect"

    },
    "QItemSelectionModel\0selectionChanged\0"
    "\0QItemSelection\0selected\0deselected\0"
    "currentChanged\0current\0previous\0"
    "currentRowChanged\0currentColumnChanged\0"
    "setCurrentIndex\0index\0"
    "QItemSelectionModel::SelectionFlags\0"
    "command\0select\0selection\0clear\0reset\0"
    "clearSelection\0clearCurrentIndex\0"
    "_q_columnsAboutToBeRemoved\0"
    "_q_rowsAboutToBeRemoved\0"
    "_q_columnsAboutToBeInserted\0"
    "_q_rowsAboutToBeInserted\0"
    "_q_layoutAboutToBeChanged\0"
    "QList<QPersistentModelIndex>\0parents\0"
    "QAbstractItemModel::LayoutChangeHint\0"
    "hint\0_q_layoutChanged\0SelectionFlags\0"
    "NoUpdate\0Clear\0Select\0Deselect\0Toggle\0"
    "Current\0Rows\0Columns\0SelectCurrent\0"
    "ToggleCurrent\0ClearAndSelect"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QItemSelectionModel[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      21,   14, // methods
       0,    0, // properties
       1,  204, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    2,  119,    2, 0x06 /* Public */,
       6,    2,  124,    2, 0x06 /* Public */,
       9,    2,  129,    2, 0x06 /* Public */,
      10,    2,  134,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      11,    2,  139,    2, 0x0a /* Public */,
      15,    2,  144,    2, 0x0a /* Public */,
      15,    2,  149,    2, 0x0a /* Public */,
      17,    0,  154,    2, 0x0a /* Public */,
      18,    0,  155,    2, 0x0a /* Public */,
      19,    0,  156,    2, 0x0a /* Public */,
      20,    0,  157,    2, 0x0a /* Public */,
      21,    3,  158,    2, 0x08 /* Private */,
      22,    3,  165,    2, 0x08 /* Private */,
      23,    3,  172,    2, 0x08 /* Private */,
      24,    3,  179,    2, 0x08 /* Private */,
      25,    2,  186,    2, 0x08 /* Private */,
      25,    1,  191,    2, 0x28 /* Private | MethodCloned */,
      25,    0,  194,    2, 0x28 /* Private | MethodCloned */,
      30,    2,  195,    2, 0x08 /* Private */,
      30,    1,  200,    2, 0x28 /* Private | MethodCloned */,
      30,    0,  203,    2, 0x28 /* Private | MethodCloned */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3, 0x80000000 | 3,    4,    5,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::QModelIndex,    7,    8,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::QModelIndex,    7,    8,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::QModelIndex,    7,    8,

 // slots: parameters
    QMetaType::Void, QMetaType::QModelIndex, 0x80000000 | 13,   12,   14,
    QMetaType::Void, QMetaType::QModelIndex, 0x80000000 | 13,   12,   14,
    QMetaType::Void, 0x80000000 | 3, 0x80000000 | 13,   16,   14,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int,    2,    2,    2,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int,    2,    2,    2,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int,    2,    2,    2,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int,    2,    2,    2,
    QMetaType::Void, 0x80000000 | 26, 0x80000000 | 28,   27,   29,
    QMetaType::Void, 0x80000000 | 26,   27,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 26, 0x80000000 | 28,   27,   29,
    QMetaType::Void, 0x80000000 | 26,   27,
    QMetaType::Void,

 // enums: name, flags, count, data
      31, 0x1,   11,  208,

 // enum data: key, value
      32, uint(QItemSelectionModel::NoUpdate),
      33, uint(QItemSelectionModel::Clear),
      34, uint(QItemSelectionModel::Select),
      35, uint(QItemSelectionModel::Deselect),
      36, uint(QItemSelectionModel::Toggle),
      37, uint(QItemSelectionModel::Current),
      38, uint(QItemSelectionModel::Rows),
      39, uint(QItemSelectionModel::Columns),
      40, uint(QItemSelectionModel::SelectCurrent),
      41, uint(QItemSelectionModel::ToggleCurrent),
      42, uint(QItemSelectionModel::ClearAndSelect),

       0        // eod
};

void QItemSelectionModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        QItemSelectionModel *_t = static_cast<QItemSelectionModel *>(_o);
        switch (_id) {
        case 0: _t->selectionChanged((*reinterpret_cast< const QItemSelection(*)>(_a[1])),(*reinterpret_cast< const QItemSelection(*)>(_a[2]))); break;
        case 1: _t->currentChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2]))); break;
        case 2: _t->currentRowChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2]))); break;
        case 3: _t->currentColumnChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2]))); break;
        case 4: _t->setCurrentIndex((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< QItemSelectionModel::SelectionFlags(*)>(_a[2]))); break;
        case 5: _t->select((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< QItemSelectionModel::SelectionFlags(*)>(_a[2]))); break;
        case 6: _t->select((*reinterpret_cast< const QItemSelection(*)>(_a[1])),(*reinterpret_cast< QItemSelectionModel::SelectionFlags(*)>(_a[2]))); break;
        case 7: _t->clear(); break;
        case 8: _t->reset(); break;
        case 9: _t->clearSelection(); break;
        case 10: _t->clearCurrentIndex(); break;
        case 11: _t->d_func()->_q_columnsAboutToBeRemoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 12: _t->d_func()->_q_rowsAboutToBeRemoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 13: _t->d_func()->_q_columnsAboutToBeInserted((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 14: _t->d_func()->_q_rowsAboutToBeInserted((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 15: _t->d_func()->_q_layoutAboutToBeChanged((*reinterpret_cast< const QList<QPersistentModelIndex>(*)>(_a[1])),(*reinterpret_cast< QAbstractItemModel::LayoutChangeHint(*)>(_a[2]))); break;
        case 16: _t->d_func()->_q_layoutAboutToBeChanged((*reinterpret_cast< const QList<QPersistentModelIndex>(*)>(_a[1]))); break;
        case 17: _t->d_func()->_q_layoutAboutToBeChanged(); break;
        case 18: _t->d_func()->_q_layoutChanged((*reinterpret_cast< const QList<QPersistentModelIndex>(*)>(_a[1])),(*reinterpret_cast< QAbstractItemModel::LayoutChangeHint(*)>(_a[2]))); break;
        case 19: _t->d_func()->_q_layoutChanged((*reinterpret_cast< const QList<QPersistentModelIndex>(*)>(_a[1]))); break;
        case 20: _t->d_func()->_q_layoutChanged(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (QItemSelectionModel::*_t)(const QItemSelection & , const QItemSelection & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QItemSelectionModel::selectionChanged)) {
                *result = 0;
            }
        }
        {
            typedef void (QItemSelectionModel::*_t)(const QModelIndex & , const QModelIndex & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QItemSelectionModel::currentChanged)) {
                *result = 1;
            }
        }
        {
            typedef void (QItemSelectionModel::*_t)(const QModelIndex & , const QModelIndex & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QItemSelectionModel::currentRowChanged)) {
                *result = 2;
            }
        }
        {
            typedef void (QItemSelectionModel::*_t)(const QModelIndex & , const QModelIndex & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QItemSelectionModel::currentColumnChanged)) {
                *result = 3;
            }
        }
    }
}

const QMetaObject QItemSelectionModel::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_QItemSelectionModel.data,
      qt_meta_data_QItemSelectionModel,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *QItemSelectionModel::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_QItemSelectionModel.stringdata))
        return static_cast<void*>(const_cast< QItemSelectionModel*>(this));
    return QObject::qt_metacast(_clname);
}

int QItemSelectionModel::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 < 21)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 21;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 21)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 21;
    }
    return _id;
}

// SIGNAL 0
void QItemSelectionModel::selectionChanged(const QItemSelection & _t1, const QItemSelection & _t2)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void QItemSelectionModel::currentChanged(const QModelIndex & _t1, const QModelIndex & _t2)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void QItemSelectionModel::currentRowChanged(const QModelIndex & _t1, const QModelIndex & _t2)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void QItemSelectionModel::currentColumnChanged(const QModelIndex & _t1, const QModelIndex & _t2)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_END_MOC_NAMESPACE
