Files
wino-mail-dtkqt/build/wino-mail-qt_autogen/YPKJ5OE7LN/moc_maillistview.cpp
T
javier fa699b5399 feat: Wino-style compact mail view with display modes + hover actions
- CompactMailDelegate: 3 display modes (Compact/Medium/Spacious) like WinUI original
  * Compact: 64px, minimal, no preview
  * Medium: 96px, with preview, detailed categories
  * Spacious: 120px, full padding, preview visible
- Hover actions: Reply (↩), Forward (↪), Mark unread (✎) on right side
- Unread dot indicator (top-right, blue) like WinUI
- User-configurable display mode via combo box in filter bar
- MainMainWindow handlers for reply/forward/mark-unread from compact view
- Signals: replyRequested, forwardRequested, markUnreadRequested
2026-08-25 13:41:43 +02:00

328 lines
13 KiB
C++

/****************************************************************************
** Meta object code from reading C++ file 'maillistview.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 "../../../src/ui/maillistview.h"
#include <QtGui/qtextcursor.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 'maillistview.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_ZN12MailListViewE_t {};
} // unnamed namespace
template <> constexpr inline auto MailListView::qt_create_metaobjectdata<qt_meta_tag_ZN12MailListViewE_t>()
{
namespace QMC = QtMocConstants;
QtMocHelpers::StringRefStorage qt_stringData {
"MailListView",
"emailSelected",
"",
"mailId",
"emailOpenRequested",
"composeRequested",
"flagRequested",
"deleteRequested",
"categoryRequested",
"moreRequested",
"QPoint",
"globalPos",
"replyRequested",
"forwardRequested",
"markUnreadRequested",
"onRowSelected",
"QModelIndex",
"index",
"onSearchTextChanged",
"text",
"onFilterChanged",
"onGroupByChanged",
"onCompactFlagRequested",
"onCompactDeleteRequested",
"onCompactCategoryRequested",
"onCompactMoreRequested",
"onCompactMailClicked",
"onCompactReplyRequested",
"onCompactForwardRequested",
"onCompactMarkUnreadRequested",
"onDisplayModeChanged"
};
QtMocHelpers::UintData qt_methods {
// Signal 'emailSelected'
QtMocHelpers::SignalData<void(int)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
{ QMetaType::Int, 3 },
}}),
// Signal 'emailOpenRequested'
QtMocHelpers::SignalData<void(int)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
{ QMetaType::Int, 3 },
}}),
// Signal 'composeRequested'
QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
// Signal 'flagRequested'
QtMocHelpers::SignalData<void(int)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
{ QMetaType::Int, 3 },
}}),
// Signal 'deleteRequested'
QtMocHelpers::SignalData<void(int)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
{ QMetaType::Int, 3 },
}}),
// Signal 'categoryRequested'
QtMocHelpers::SignalData<void(int)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
{ QMetaType::Int, 3 },
}}),
// Signal 'moreRequested'
QtMocHelpers::SignalData<void(int, const QPoint &)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
{ QMetaType::Int, 3 }, { 0x80000000 | 10, 11 },
}}),
// Signal 'replyRequested'
QtMocHelpers::SignalData<void(int)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
{ QMetaType::Int, 3 },
}}),
// Signal 'forwardRequested'
QtMocHelpers::SignalData<void(int)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
{ QMetaType::Int, 3 },
}}),
// Signal 'markUnreadRequested'
QtMocHelpers::SignalData<void(int)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
{ QMetaType::Int, 3 },
}}),
// Slot 'onRowSelected'
QtMocHelpers::SlotData<void(const QModelIndex &)>(15, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ 0x80000000 | 16, 17 },
}}),
// Slot 'onSearchTextChanged'
QtMocHelpers::SlotData<void(const QString &)>(18, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::QString, 19 },
}}),
// Slot 'onFilterChanged'
QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPrivate, QMetaType::Void),
// Slot 'onGroupByChanged'
QtMocHelpers::SlotData<void(int)>(21, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 17 },
}}),
// Slot 'onCompactFlagRequested'
QtMocHelpers::SlotData<void(int)>(22, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 3 },
}}),
// Slot 'onCompactDeleteRequested'
QtMocHelpers::SlotData<void(int)>(23, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 3 },
}}),
// Slot 'onCompactCategoryRequested'
QtMocHelpers::SlotData<void(int)>(24, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 3 },
}}),
// Slot 'onCompactMoreRequested'
QtMocHelpers::SlotData<void(int, const QPoint &)>(25, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 3 }, { 0x80000000 | 10, 11 },
}}),
// Slot 'onCompactMailClicked'
QtMocHelpers::SlotData<void(int)>(26, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 3 },
}}),
// Slot 'onCompactReplyRequested'
QtMocHelpers::SlotData<void(int)>(27, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 3 },
}}),
// Slot 'onCompactForwardRequested'
QtMocHelpers::SlotData<void(int)>(28, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 3 },
}}),
// Slot 'onCompactMarkUnreadRequested'
QtMocHelpers::SlotData<void(int)>(29, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 3 },
}}),
// Slot 'onDisplayModeChanged'
QtMocHelpers::SlotData<void(int)>(30, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 17 },
}}),
};
QtMocHelpers::UintData qt_properties {
};
QtMocHelpers::UintData qt_enums {
};
return QtMocHelpers::metaObjectData<MailListView, qt_meta_tag_ZN12MailListViewE_t>(QMC::MetaObjectFlag{}, qt_stringData,
qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject MailListView::staticMetaObject = { {
QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12MailListViewE_t>.stringdata,
qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12MailListViewE_t>.data,
qt_static_metacall,
nullptr,
qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12MailListViewE_t>.metaTypes,
nullptr
} };
void MailListView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
auto *_t = static_cast<MailListView *>(_o);
if (_c == QMetaObject::InvokeMetaMethod) {
switch (_id) {
case 0: _t->emailSelected((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 1: _t->emailOpenRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 2: _t->composeRequested(); break;
case 3: _t->flagRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 4: _t->deleteRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 5: _t->categoryRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 6: _t->moreRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[2]))); break;
case 7: _t->replyRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 8: _t->forwardRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 9: _t->markUnreadRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 10: _t->onRowSelected((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
case 11: _t->onSearchTextChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
case 12: _t->onFilterChanged(); break;
case 13: _t->onGroupByChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 14: _t->onCompactFlagRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 15: _t->onCompactDeleteRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 16: _t->onCompactCategoryRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 17: _t->onCompactMoreRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[2]))); break;
case 18: _t->onCompactMailClicked((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 19: _t->onCompactReplyRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 20: _t->onCompactForwardRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 21: _t->onCompactMarkUnreadRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 22: _t->onDisplayModeChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
default: ;
}
}
if (_c == QMetaObject::IndexOfMethod) {
if (QtMocHelpers::indexOfMethod<void (MailListView::*)(int )>(_a, &MailListView::emailSelected, 0))
return;
if (QtMocHelpers::indexOfMethod<void (MailListView::*)(int )>(_a, &MailListView::emailOpenRequested, 1))
return;
if (QtMocHelpers::indexOfMethod<void (MailListView::*)()>(_a, &MailListView::composeRequested, 2))
return;
if (QtMocHelpers::indexOfMethod<void (MailListView::*)(int )>(_a, &MailListView::flagRequested, 3))
return;
if (QtMocHelpers::indexOfMethod<void (MailListView::*)(int )>(_a, &MailListView::deleteRequested, 4))
return;
if (QtMocHelpers::indexOfMethod<void (MailListView::*)(int )>(_a, &MailListView::categoryRequested, 5))
return;
if (QtMocHelpers::indexOfMethod<void (MailListView::*)(int , const QPoint & )>(_a, &MailListView::moreRequested, 6))
return;
if (QtMocHelpers::indexOfMethod<void (MailListView::*)(int )>(_a, &MailListView::replyRequested, 7))
return;
if (QtMocHelpers::indexOfMethod<void (MailListView::*)(int )>(_a, &MailListView::forwardRequested, 8))
return;
if (QtMocHelpers::indexOfMethod<void (MailListView::*)(int )>(_a, &MailListView::markUnreadRequested, 9))
return;
}
}
const QMetaObject *MailListView::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *MailListView::qt_metacast(const char *_clname)
{
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12MailListViewE_t>.strings))
return static_cast<void*>(this);
return QWidget::qt_metacast(_clname);
}
int MailListView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QWidget::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 23)
qt_static_metacall(this, _c, _id, _a);
_id -= 23;
}
if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 23)
*reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
_id -= 23;
}
return _id;
}
// SIGNAL 0
void MailListView::emailSelected(int _t1)
{
QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}
// SIGNAL 1
void MailListView::emailOpenRequested(int _t1)
{
QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}
// SIGNAL 2
void MailListView::composeRequested()
{
QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
// SIGNAL 3
void MailListView::flagRequested(int _t1)
{
QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
// SIGNAL 4
void MailListView::deleteRequested(int _t1)
{
QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
// SIGNAL 5
void MailListView::categoryRequested(int _t1)
{
QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}
// SIGNAL 6
void MailListView::moreRequested(int _t1, const QPoint & _t2)
{
QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1, _t2);
}
// SIGNAL 7
void MailListView::replyRequested(int _t1)
{
QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}
// SIGNAL 8
void MailListView::forwardRequested(int _t1)
{
QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}
// SIGNAL 9
void MailListView::markUnreadRequested(int _t1)
{
QMetaObject::activate<void>(this, &staticMetaObject, 9, nullptr, _t1);
}
QT_WARNING_POP