QtPass 1.5.1
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
moc_trayicon.cpp
Go to the documentation of this file.
1/****************************************************************************
2** Meta object code from reading C++ file 'trayicon.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 'trayicon.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 TrayIcon::qt_create_metaobjectdata<qt_meta_tag_ZN8TrayIconE_t>()
38{
39 namespace QMC = QtMocConstants;
40 QtMocHelpers::StringRefStorage qt_stringData {
41 "TrayIcon",
42 "showHideParent",
43 "",
44 "iconActivated",
45 "QSystemTrayIcon::ActivationReason",
46 "reason"
47 };
48
49 QtMocHelpers::UintData qt_methods {
50 // Slot 'showHideParent'
51 QtMocHelpers::SlotData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
52 // Slot 'iconActivated'
53 QtMocHelpers::SlotData<void(QSystemTrayIcon::ActivationReason)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
54 { 0x80000000 | 4, 5 },
55 }}),
56 };
57 QtMocHelpers::UintData qt_properties {
58 };
59 QtMocHelpers::UintData qt_enums {
60 };
61 return QtMocHelpers::metaObjectData<TrayIcon, qt_meta_tag_ZN8TrayIconE_t>(QMC::MetaObjectFlag{}, qt_stringData,
62 qt_methods, qt_properties, qt_enums);
63}
64Q_CONSTINIT const QMetaObject TrayIcon::staticMetaObject = { {
65 QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
66 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8TrayIconE_t>.stringdata,
67 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8TrayIconE_t>.data,
68 qt_static_metacall,
69 nullptr,
70 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8TrayIconE_t>.metaTypes,
71 nullptr
72} };
73
74void TrayIcon::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
75{
76 auto *_t = static_cast<TrayIcon *>(_o);
77 if (_c == QMetaObject::InvokeMetaMethod) {
78 switch (_id) {
79 case 0: _t->showHideParent(); break;
80 case 1: _t->iconActivated((*reinterpret_cast<std::add_pointer_t<QSystemTrayIcon::ActivationReason>>(_a[1]))); break;
81 default: ;
82 }
83 }
84}
85
86const QMetaObject *TrayIcon::metaObject() const
87{
88 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
89}
90
91void *TrayIcon::qt_metacast(const char *_clname)
92{
93 if (!_clname) return nullptr;
94 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8TrayIconE_t>.strings))
95 return static_cast<void*>(this);
96 return QWidget::qt_metacast(_clname);
97}
98
99int TrayIcon::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
100{
101 _id = QWidget::qt_metacall(_c, _id, _a);
102 if (_id < 0)
103 return _id;
104 if (_c == QMetaObject::InvokeMetaMethod) {
105 if (_id < 2)
106 qt_static_metacall(this, _c, _id, _a);
107 _id -= 2;
108 }
109 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
110 if (_id < 2)
111 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
112 _id -= 2;
113 }
114 return _id;
115}
116QT_WARNING_POP
TrayIcon(QMainWindow *parent)
TrayIcon::TrayIcon use a (system) tray icon with a nice QtPass logo on it (currently) only Quits.
Definition trayicon.cpp:18
#define Q_CONSTINIT