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

#include "../../../../applet-window-buttons6/libappletdecoration/previewbutton.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'previewbutton.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN17PreviewButtonItemE_t {};
} // unnamed namespace

template <> constexpr inline auto PreviewButtonItem::qt_create_metaobjectdata<qt_meta_tag_ZN17PreviewButtonItemE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PreviewButtonItem",
        "bridgeChanged",
        "",
        "isActiveChanged",
        "isMaximizedChanged",
        "isOnAllDesktopsChanged",
        "isKeepAboveChanged",
        "localXChanged",
        "localYChanged",
        "paddingChanged",
        "schemeChanged",
        "sharedDecorationChanged",
        "typeChanged",
        "clicked",
        "createButton",
        "syncInternalGeometry",
        "onButtonDamaged",
        "onDecorationDamaged",
        "QRegion",
        "region",
        "bridge",
        "PreviewBridge*",
        "sharedDecoration",
        "SharedDecoration*",
        "isActive",
        "isMaximized",
        "isOnAllDesktops",
        "isKeepAbove",
        "localX",
        "localY",
        "type",
        "scheme",
        "padding",
        "Padding*"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'bridgeChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'isActiveChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'isMaximizedChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'isOnAllDesktopsChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'isKeepAboveChanged'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'localXChanged'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'localYChanged'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'paddingChanged'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'schemeChanged'
        QtMocHelpers::SignalData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sharedDecorationChanged'
        QtMocHelpers::SignalData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'typeChanged'
        QtMocHelpers::SignalData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'clicked'
        QtMocHelpers::SignalData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'createButton'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'syncInternalGeometry'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onButtonDamaged'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onDecorationDamaged'
        QtMocHelpers::SlotData<void(const QRegion &)>(17, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 18, 19 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'bridge'
        QtMocHelpers::PropertyData<PreviewBridge*>(20, 0x80000000 | 21, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'sharedDecoration'
        QtMocHelpers::PropertyData<SharedDecoration*>(22, 0x80000000 | 23, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 9),
        // property 'isActive'
        QtMocHelpers::PropertyData<bool>(24, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'isMaximized'
        QtMocHelpers::PropertyData<bool>(25, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'isOnAllDesktops'
        QtMocHelpers::PropertyData<bool>(26, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'isKeepAbove'
        QtMocHelpers::PropertyData<bool>(27, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
        // property 'localX'
        QtMocHelpers::PropertyData<int>(28, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5),
        // property 'localY'
        QtMocHelpers::PropertyData<int>(29, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 6),
        // property 'type'
        QtMocHelpers::PropertyData<int>(30, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 10),
        // property 'scheme'
        QtMocHelpers::PropertyData<QString>(31, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 8),
        // property 'padding'
        QtMocHelpers::PropertyData<Padding*>(32, 0x80000000 | 33, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 7),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<PreviewButtonItem, qt_meta_tag_ZN17PreviewButtonItemE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject PreviewButtonItem::staticMetaObject = { {
    QMetaObject::SuperData::link<QQuickPaintedItem::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17PreviewButtonItemE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17PreviewButtonItemE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN17PreviewButtonItemE_t>.metaTypes,
    nullptr
} };

void PreviewButtonItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PreviewButtonItem *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->bridgeChanged(); break;
        case 1: _t->isActiveChanged(); break;
        case 2: _t->isMaximizedChanged(); break;
        case 3: _t->isOnAllDesktopsChanged(); break;
        case 4: _t->isKeepAboveChanged(); break;
        case 5: _t->localXChanged(); break;
        case 6: _t->localYChanged(); break;
        case 7: _t->paddingChanged(); break;
        case 8: _t->schemeChanged(); break;
        case 9: _t->sharedDecorationChanged(); break;
        case 10: _t->typeChanged(); break;
        case 11: _t->clicked(); break;
        case 12: _t->createButton(); break;
        case 13: _t->syncInternalGeometry(); break;
        case 14: _t->onButtonDamaged(); break;
        case 15: _t->onDecorationDamaged((*reinterpret_cast<std::add_pointer_t<QRegion>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PreviewButtonItem::*)()>(_a, &PreviewButtonItem::bridgeChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreviewButtonItem::*)()>(_a, &PreviewButtonItem::isActiveChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreviewButtonItem::*)()>(_a, &PreviewButtonItem::isMaximizedChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreviewButtonItem::*)()>(_a, &PreviewButtonItem::isOnAllDesktopsChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreviewButtonItem::*)()>(_a, &PreviewButtonItem::isKeepAboveChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreviewButtonItem::*)()>(_a, &PreviewButtonItem::localXChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreviewButtonItem::*)()>(_a, &PreviewButtonItem::localYChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreviewButtonItem::*)()>(_a, &PreviewButtonItem::paddingChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreviewButtonItem::*)()>(_a, &PreviewButtonItem::schemeChanged, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreviewButtonItem::*)()>(_a, &PreviewButtonItem::sharedDecorationChanged, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreviewButtonItem::*)()>(_a, &PreviewButtonItem::typeChanged, 10))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreviewButtonItem::*)()>(_a, &PreviewButtonItem::clicked, 11))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< PreviewBridge* >(); break;
        case 1:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< SharedDecoration* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<PreviewBridge**>(_v) = _t->bridge(); break;
        case 1: *reinterpret_cast<SharedDecoration**>(_v) = _t->sharedDecoration(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->isActive(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->isMaximized(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->isOnAllDesktops(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->isKeepAbove(); break;
        case 6: *reinterpret_cast<int*>(_v) = _t->localX(); break;
        case 7: *reinterpret_cast<int*>(_v) = _t->localY(); break;
        case 8: *reinterpret_cast<int*>(_v) = _t->typeAsInt(); break;
        case 9: *reinterpret_cast<QString*>(_v) = _t->scheme(); break;
        case 10: *reinterpret_cast<Padding**>(_v) = _t->padding(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setBridge(*reinterpret_cast<PreviewBridge**>(_v)); break;
        case 1: _t->setSharedDecoration(*reinterpret_cast<SharedDecoration**>(_v)); break;
        case 2: _t->setIsActive(*reinterpret_cast<bool*>(_v)); break;
        case 3: _t->setIsMaximized(*reinterpret_cast<bool*>(_v)); break;
        case 4: _t->setIsOnAllDesktops(*reinterpret_cast<bool*>(_v)); break;
        case 5: _t->setIsKeepAbove(*reinterpret_cast<bool*>(_v)); break;
        case 6: _t->setLocalX(*reinterpret_cast<int*>(_v)); break;
        case 7: _t->setLocalY(*reinterpret_cast<int*>(_v)); break;
        case 8: _t->setType(*reinterpret_cast<int*>(_v)); break;
        case 9: _t->setScheme(*reinterpret_cast<QString*>(_v)); break;
        default: break;
        }
    }
}

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

void *PreviewButtonItem::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17PreviewButtonItemE_t>.strings))
        return static_cast<void*>(this);
    return QQuickPaintedItem::qt_metacast(_clname);
}

int PreviewButtonItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QQuickPaintedItem::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 16)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 16;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 16)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 16;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    return _id;
}

// SIGNAL 0
void PreviewButtonItem::bridgeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void PreviewButtonItem::isActiveChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

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

// SIGNAL 3
void PreviewButtonItem::isOnAllDesktopsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void PreviewButtonItem::isKeepAboveChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void PreviewButtonItem::localXChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void PreviewButtonItem::localYChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void PreviewButtonItem::paddingChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void PreviewButtonItem::schemeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void PreviewButtonItem::sharedDecorationChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}

// SIGNAL 10
void PreviewButtonItem::typeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 10, nullptr);
}

// SIGNAL 11
void PreviewButtonItem::clicked()
{
    QMetaObject::activate(this, &staticMetaObject, 11, nullptr);
}
QT_WARNING_POP
