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

#include <memory>
#include "../../gui/exhibition/matchresult/matchwidget.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'matchwidget.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.18. 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_GrandSearch__MatchWidget_t {
    QByteArrayData data[21];
    char stringdata0[309];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_GrandSearch__MatchWidget_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_GrandSearch__MatchWidget_t qt_meta_stringdata_GrandSearch__MatchWidget = {
    {
QT_MOC_LITERAL(0, 0, 24), // "GrandSearch::MatchWidget"
QT_MOC_LITERAL(1, 25, 21), // "sigCurrentItemChanged"
QT_MOC_LITERAL(2, 47, 0), // ""
QT_MOC_LITERAL(3, 48, 15), // "searchGroupName"
QT_MOC_LITERAL(4, 64, 11), // "MatchedItem"
QT_MOC_LITERAL(5, 76, 4), // "item"
QT_MOC_LITERAL(6, 81, 16), // "sigShowNoContent"
QT_MOC_LITERAL(7, 98, 9), // "noContent"
QT_MOC_LITERAL(8, 108, 14), // "sigCloseWindow"
QT_MOC_LITERAL(9, 123, 17), // "appendMatchedData"
QT_MOC_LITERAL(10, 141, 14), // "MatchedItemMap"
QT_MOC_LITERAL(11, 156, 11), // "matchedData"
QT_MOC_LITERAL(12, 168, 16), // "clearMatchedData"
QT_MOC_LITERAL(13, 185, 17), // "onSearchCompleted"
QT_MOC_LITERAL(14, 203, 10), // "onShowMore"
QT_MOC_LITERAL(15, 214, 14), // "selectNextItem"
QT_MOC_LITERAL(16, 229, 18), // "selectPreviousItem"
QT_MOC_LITERAL(17, 248, 10), // "handleItem"
QT_MOC_LITERAL(18, 259, 21), // "onPreviewStateChanged"
QT_MOC_LITERAL(19, 281, 7), // "preview"
QT_MOC_LITERAL(20, 289, 19) // "onSelectItemByMouse"

    },
    "GrandSearch::MatchWidget\0sigCurrentItemChanged\0"
    "\0searchGroupName\0MatchedItem\0item\0"
    "sigShowNoContent\0noContent\0sigCloseWindow\0"
    "appendMatchedData\0MatchedItemMap\0"
    "matchedData\0clearMatchedData\0"
    "onSearchCompleted\0onShowMore\0"
    "selectNextItem\0selectPreviousItem\0"
    "handleItem\0onPreviewStateChanged\0"
    "preview\0onSelectItemByMouse"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_GrandSearch__MatchWidget[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      12,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       3,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    2,   74,    2, 0x06 /* Public */,
       6,    1,   79,    2, 0x06 /* Public */,
       8,    0,   82,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       9,    1,   83,    2, 0x0a /* Public */,
      12,    0,   86,    2, 0x0a /* Public */,
      13,    0,   87,    2, 0x0a /* Public */,
      14,    0,   88,    2, 0x0a /* Public */,
      15,    0,   89,    2, 0x0a /* Public */,
      16,    0,   90,    2, 0x0a /* Public */,
      17,    0,   91,    2, 0x0a /* Public */,
      18,    1,   92,    2, 0x0a /* Public */,
      20,    1,   95,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString, 0x80000000 | 4,    3,    5,
    QMetaType::Void, QMetaType::Bool,    7,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 10,   11,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   19,
    QMetaType::Void, 0x80000000 | 4,    5,

       0        // eod
};

void GrandSearch::MatchWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<MatchWidget *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->sigCurrentItemChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const MatchedItem(*)>(_a[2]))); break;
        case 1: _t->sigShowNoContent((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 2: _t->sigCloseWindow(); break;
        case 3: _t->appendMatchedData((*reinterpret_cast< const MatchedItemMap(*)>(_a[1]))); break;
        case 4: _t->clearMatchedData(); break;
        case 5: _t->onSearchCompleted(); break;
        case 6: _t->onShowMore(); break;
        case 7: _t->selectNextItem(); break;
        case 8: _t->selectPreviousItem(); break;
        case 9: _t->handleItem(); break;
        case 10: _t->onPreviewStateChanged((*reinterpret_cast< const bool(*)>(_a[1]))); break;
        case 11: _t->onSelectItemByMouse((*reinterpret_cast< const MatchedItem(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (MatchWidget::*)(const QString & , const MatchedItem & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MatchWidget::sigCurrentItemChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (MatchWidget::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MatchWidget::sigShowNoContent)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (MatchWidget::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MatchWidget::sigCloseWindow)) {
                *result = 2;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject GrandSearch::MatchWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<Dtk::Widget::DWidget::staticMetaObject>(),
    qt_meta_stringdata_GrandSearch__MatchWidget.data,
    qt_meta_data_GrandSearch__MatchWidget,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *GrandSearch::MatchWidget::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_GrandSearch__MatchWidget.stringdata0))
        return static_cast<void*>(this);
    return Dtk::Widget::DWidget::qt_metacast(_clname);
}

int GrandSearch::MatchWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Dtk::Widget::DWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 12;
    }
    return _id;
}

// SIGNAL 0
void GrandSearch::MatchWidget::sigCurrentItemChanged(const QString & _t1, const MatchedItem & _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

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

// SIGNAL 2
void GrandSearch::MatchWidget::sigCloseWindow()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
