QtPass 1.5.1
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
moc_qpushbuttonwithclipboard.cpp
Go to the documentation of this file.
1/****************************************************************************
2** Meta object code from reading C++ file 'qpushbuttonwithclipboard.h'
3**
4** Created by: The Qt Meta Object Compiler version 69 (Qt 6.10.2)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
10#include <QtCore/qmetatype.h>
11
12#include <QtCore/qtmochelpers.h>
13
14#include <memory>
15
16
17#include <QtCore/qxptype_traits.h>
18#if !defined(Q_MOC_OUTPUT_REVISION)
19#error "The header file 'qpushbuttonwithclipboard.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 69
21#error "This file was generated using the moc from 6.10.2. It"
22#error "cannot be used with the include files from this version of Qt."
23#error "(The moc has changed too much.)"
24#endif
25
26#ifndef Q_CONSTINIT
27#define Q_CONSTINIT
28#endif
29
30QT_WARNING_PUSH
32QT_WARNING_DISABLE_GCC("-Wuseless-cast")
33namespace {
35} // unnamed namespace
36
37template <> constexpr inline auto QPushButtonWithClipboard::qt_create_metaobjectdata<qt_meta_tag_ZN24QPushButtonWithClipboardE_t>()
38{
39 namespace QMC = QtMocConstants;
40 QtMocHelpers::StringRefStorage qt_stringData {
41 "QPushButtonWithClipboard",
42 "clicked",
43 "",
44 "changeIconDefault",
45 "buttonClicked"
46 };
47
48 QtMocHelpers::UintData qt_methods {
49 // Signal 'clicked'
50 QtMocHelpers::SignalData<void(const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
51 { QMetaType::QString, 2 },
52 }}),
53 // Slot 'changeIconDefault'
54 QtMocHelpers::SlotData<void()>(3, 2, QMC::AccessPrivate, QMetaType::Void),
55 // Slot 'buttonClicked'
56 QtMocHelpers::SlotData<void(bool)>(4, 2, QMC::AccessPrivate, QMetaType::Void, {{
57 { QMetaType::Bool, 2 },
58 }}),
59 };
60 QtMocHelpers::UintData qt_properties {
61 };
62 QtMocHelpers::UintData qt_enums {
63 };
64 return QtMocHelpers::metaObjectData<QPushButtonWithClipboard, qt_meta_tag_ZN24QPushButtonWithClipboardE_t>(QMC::MetaObjectFlag{}, qt_stringData,
65 qt_methods, qt_properties, qt_enums);
66}
67Q_CONSTINIT const QMetaObject QPushButtonWithClipboard::staticMetaObject = { {
68 QMetaObject::SuperData::link<QPushButton::staticMetaObject>(),
69 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN24QPushButtonWithClipboardE_t>.stringdata,
70 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN24QPushButtonWithClipboardE_t>.data,
71 qt_static_metacall,
72 nullptr,
73 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN24QPushButtonWithClipboardE_t>.metaTypes,
74 nullptr
75} };
76
77void QPushButtonWithClipboard::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
78{
79 auto *_t = static_cast<QPushButtonWithClipboard *>(_o);
80 if (_c == QMetaObject::InvokeMetaMethod) {
81 switch (_id) {
82 case 0: _t->clicked((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
83 case 1: _t->changeIconDefault(); break;
84 case 2: _t->buttonClicked((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
85 default: ;
86 }
87 }
88 if (_c == QMetaObject::IndexOfMethod) {
89 if (QtMocHelpers::indexOfMethod<void (QPushButtonWithClipboard::*)(const QString & )>(_a, &QPushButtonWithClipboard::clicked, 0))
90 return;
91 }
92}
93
94const QMetaObject *QPushButtonWithClipboard::metaObject() const
95{
96 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
97}
98
99void *QPushButtonWithClipboard::qt_metacast(const char *_clname)
100{
101 if (!_clname) return nullptr;
102 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN24QPushButtonWithClipboardE_t>.strings))
103 return static_cast<void*>(this);
104 return QPushButton::qt_metacast(_clname);
105}
106
107int QPushButtonWithClipboard::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
108{
109 _id = QPushButton::qt_metacall(_c, _id, _a);
110 if (_id < 0)
111 return _id;
112 if (_c == QMetaObject::InvokeMetaMethod) {
113 if (_id < 3)
114 qt_static_metacall(this, _c, _id, _a);
115 _id -= 3;
116 }
117 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
118 if (_id < 3)
119 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
120 _id -= 3;
121 }
122 return _id;
123}
124
125// SIGNAL 0
126void QPushButtonWithClipboard::clicked(const QString & _t1)
127{
128 QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
129}
130QT_WARNING_POP
QPushButtonWithClipboard(QString textToCopy="", QWidget *parent=nullptr)
QPushButtonWithClipboard::QPushButtonWithClipboard basic constructor.
#define Q_CONSTINIT