Files
wino-mail-dtkqt/build/wino-mail-qt_autogen/YPKJ5OE7LN/moc_mainmainwindow.cpp
T
javier 4c4fec7a0a feat: responsive compact mail view + folder unread badges
- CompactMailDelegate: card-based view for narrow panels (<420px)
  * Avatar with hash-based color, sender + date (relative format)
  * Subject line with attachment icon
  * Action buttons: flag, delete, category, more (context menu)
  * Unread highlight with light blue background + bold sender
- MailListView: automatic switch between tree/table (wide) and list/cards (narrow)
  * QStackedWidget with QTreeView + QListView sharing same proxy model
  * resizeEvent threshold at 420px
  * Signals forwarded to MainMainWindow for actions
- FolderTreeDelegate: custom paint for folder tree
  * Unread count badge (blue pill) right-aligned on folder nodes
  * Account nodes bold, folder nodes normal weight
  * Proper indentation per depth level
- MailItemDao::countUnreadByFolderId() for real-time unread counts
- MainMainWindow handlers for compact actions (flag, delete, category, more menu)
2026-08-24 23:25:13 +02:00

327 lines
14 KiB
C++

/****************************************************************************
** Meta object code from reading C++ file 'mainmainwindow.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/mainmainwindow.h"
#include <QtGui/qtextcursor.h>
#include <QtNetwork/QSslError>
#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 'mainmainwindow.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_ZN14MainMainWindowE_t {};
} // unnamed namespace
template <> constexpr inline auto MainMainWindow::qt_create_metaobjectdata<qt_meta_tag_ZN14MainMainWindowE_t>()
{
namespace QMC = QtMocConstants;
QtMocHelpers::StringRefStorage qt_stringData {
"MainMainWindow",
"onNavChanged",
"",
"index",
"onFolderSelected",
"QModelIndex",
"onEmailSelected",
"mailId",
"onComposeRequested",
"onReaderReplyRequested",
"onReaderForwardRequested",
"onReaderDeleteRequested",
"onNewMessage",
"openMailInIndependentWindow",
"onAddAccountRequested",
"onAccountEditRequested",
"accountId",
"onAccountDeleteRequested",
"onProgressChanged",
"percent",
"onStatusMessage",
"msg",
"onSyncRequested",
"onSettingsRequested",
"updateMaximizeButtonIcon",
"onCategorySelected",
"Category",
"cat",
"onCategoryDoubleClicked",
"onAssignCategoryRequested",
"categoryId",
"onCategoryCreated",
"onCategoryEdited",
"onCategoryDeleted",
"onRulesChanged",
"onRunRulesOnFolder",
"onRunRulesOnSelected",
"showRulesManager",
"showTemplatesManager",
"onFlagRequested",
"onDeleteRequested",
"onCategoryRequested",
"onMoreRequested",
"QPoint",
"globalPos",
"onEmbeddedSendRequested",
"to",
"cc",
"bcc",
"subject",
"body",
"scheduleTime",
"fromAddress",
"attachmentPaths",
"onEmbeddedDiscardRequested",
"onEmbeddedDetachRequested",
"QWidget*",
"widget"
};
QtMocHelpers::UintData qt_methods {
// Slot 'onNavChanged'
QtMocHelpers::SlotData<void(int)>(1, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 3 },
}}),
// Slot 'onFolderSelected'
QtMocHelpers::SlotData<void(const QModelIndex &)>(4, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ 0x80000000 | 5, 3 },
}}),
// Slot 'onEmailSelected'
QtMocHelpers::SlotData<void(int)>(6, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 7 },
}}),
// Slot 'onComposeRequested'
QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPrivate, QMetaType::Void),
// Slot 'onReaderReplyRequested'
QtMocHelpers::SlotData<void(int)>(9, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 7 },
}}),
// Slot 'onReaderForwardRequested'
QtMocHelpers::SlotData<void(int)>(10, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 7 },
}}),
// Slot 'onReaderDeleteRequested'
QtMocHelpers::SlotData<void(int)>(11, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 7 },
}}),
// Slot 'onNewMessage'
QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPrivate, QMetaType::Void),
// Slot 'openMailInIndependentWindow'
QtMocHelpers::SlotData<void(int)>(13, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 7 },
}}),
// Slot 'onAddAccountRequested'
QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPrivate, QMetaType::Void),
// Slot 'onAccountEditRequested'
QtMocHelpers::SlotData<void(int)>(15, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 16 },
}}),
// Slot 'onAccountDeleteRequested'
QtMocHelpers::SlotData<void(int)>(17, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 16 },
}}),
// Slot 'onProgressChanged'
QtMocHelpers::SlotData<void(int)>(18, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 19 },
}}),
// Slot 'onStatusMessage'
QtMocHelpers::SlotData<void(const QString &)>(20, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::QString, 21 },
}}),
// Slot 'onSyncRequested'
QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPrivate, QMetaType::Void),
// Slot 'onSettingsRequested'
QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPrivate, QMetaType::Void),
// Slot 'updateMaximizeButtonIcon'
QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPrivate, QMetaType::Void),
// Slot 'onCategorySelected'
QtMocHelpers::SlotData<void(const Category &)>(25, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ 0x80000000 | 26, 27 },
}}),
// Slot 'onCategoryDoubleClicked'
QtMocHelpers::SlotData<void(const Category &)>(28, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ 0x80000000 | 26, 27 },
}}),
// Slot 'onAssignCategoryRequested'
QtMocHelpers::SlotData<void(qint64, qint64)>(29, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::LongLong, 7 }, { QMetaType::LongLong, 30 },
}}),
// Slot 'onCategoryCreated'
QtMocHelpers::SlotData<void(const Category &)>(31, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ 0x80000000 | 26, 27 },
}}),
// Slot 'onCategoryEdited'
QtMocHelpers::SlotData<void(const Category &)>(32, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ 0x80000000 | 26, 27 },
}}),
// Slot 'onCategoryDeleted'
QtMocHelpers::SlotData<void(qint64)>(33, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::LongLong, 30 },
}}),
// Slot 'onRulesChanged'
QtMocHelpers::SlotData<void()>(34, 2, QMC::AccessPrivate, QMetaType::Void),
// Slot 'onRunRulesOnFolder'
QtMocHelpers::SlotData<void()>(35, 2, QMC::AccessPrivate, QMetaType::Void),
// Slot 'onRunRulesOnSelected'
QtMocHelpers::SlotData<void()>(36, 2, QMC::AccessPrivate, QMetaType::Void),
// Slot 'showRulesManager'
QtMocHelpers::SlotData<void()>(37, 2, QMC::AccessPrivate, QMetaType::Void),
// Slot 'showTemplatesManager'
QtMocHelpers::SlotData<void()>(38, 2, QMC::AccessPrivate, QMetaType::Void),
// Slot 'onFlagRequested'
QtMocHelpers::SlotData<void(int)>(39, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 7 },
}}),
// Slot 'onDeleteRequested'
QtMocHelpers::SlotData<void(int)>(40, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 7 },
}}),
// Slot 'onCategoryRequested'
QtMocHelpers::SlotData<void(int)>(41, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 7 },
}}),
// Slot 'onMoreRequested'
QtMocHelpers::SlotData<void(int, const QPoint &)>(42, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::Int, 7 }, { 0x80000000 | 43, 44 },
}}),
// Slot 'onEmbeddedSendRequested'
QtMocHelpers::SlotData<void(const QString &, const QString &, const QString &, const QString &, const QString &, const QDateTime &, const QString &, const QStringList &)>(45, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ QMetaType::QString, 46 }, { QMetaType::QString, 47 }, { QMetaType::QString, 48 }, { QMetaType::QString, 49 },
{ QMetaType::QString, 50 }, { QMetaType::QDateTime, 51 }, { QMetaType::QString, 52 }, { QMetaType::QStringList, 53 },
}}),
// Slot 'onEmbeddedDiscardRequested'
QtMocHelpers::SlotData<void()>(54, 2, QMC::AccessPrivate, QMetaType::Void),
// Slot 'onEmbeddedDetachRequested'
QtMocHelpers::SlotData<void(QWidget *)>(55, 2, QMC::AccessPrivate, QMetaType::Void, {{
{ 0x80000000 | 56, 57 },
}}),
};
QtMocHelpers::UintData qt_properties {
};
QtMocHelpers::UintData qt_enums {
};
return QtMocHelpers::metaObjectData<MainMainWindow, qt_meta_tag_ZN14MainMainWindowE_t>(QMC::MetaObjectFlag{}, qt_stringData,
qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject MainMainWindow::staticMetaObject = { {
QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(),
qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14MainMainWindowE_t>.stringdata,
qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14MainMainWindowE_t>.data,
qt_static_metacall,
nullptr,
qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN14MainMainWindowE_t>.metaTypes,
nullptr
} };
void MainMainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
auto *_t = static_cast<MainMainWindow *>(_o);
if (_c == QMetaObject::InvokeMetaMethod) {
switch (_id) {
case 0: _t->onNavChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 1: _t->onFolderSelected((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
case 2: _t->onEmailSelected((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 3: _t->onComposeRequested(); break;
case 4: _t->onReaderReplyRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 5: _t->onReaderForwardRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 6: _t->onReaderDeleteRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 7: _t->onNewMessage(); break;
case 8: _t->openMailInIndependentWindow((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 9: _t->onAddAccountRequested(); break;
case 10: _t->onAccountEditRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 11: _t->onAccountDeleteRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 12: _t->onProgressChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 13: _t->onStatusMessage((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
case 14: _t->onSyncRequested(); break;
case 15: _t->onSettingsRequested(); break;
case 16: _t->updateMaximizeButtonIcon(); break;
case 17: _t->onCategorySelected((*reinterpret_cast<std::add_pointer_t<Category>>(_a[1]))); break;
case 18: _t->onCategoryDoubleClicked((*reinterpret_cast<std::add_pointer_t<Category>>(_a[1]))); break;
case 19: _t->onAssignCategoryRequested((*reinterpret_cast<std::add_pointer_t<qint64>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qint64>>(_a[2]))); break;
case 20: _t->onCategoryCreated((*reinterpret_cast<std::add_pointer_t<Category>>(_a[1]))); break;
case 21: _t->onCategoryEdited((*reinterpret_cast<std::add_pointer_t<Category>>(_a[1]))); break;
case 22: _t->onCategoryDeleted((*reinterpret_cast<std::add_pointer_t<qint64>>(_a[1]))); break;
case 23: _t->onRulesChanged(); break;
case 24: _t->onRunRulesOnFolder(); break;
case 25: _t->onRunRulesOnSelected(); break;
case 26: _t->showRulesManager(); break;
case 27: _t->showTemplatesManager(); break;
case 28: _t->onFlagRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 29: _t->onDeleteRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 30: _t->onCategoryRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
case 31: _t->onMoreRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[2]))); break;
case 32: _t->onEmbeddedSendRequested((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[5])),(*reinterpret_cast<std::add_pointer_t<QDateTime>>(_a[6])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[7])),(*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[8]))); break;
case 33: _t->onEmbeddedDiscardRequested(); break;
case 34: _t->onEmbeddedDetachRequested((*reinterpret_cast<std::add_pointer_t<QWidget*>>(_a[1]))); break;
default: ;
}
}
if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
switch (_id) {
default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
case 34:
switch (*reinterpret_cast<int*>(_a[1])) {
default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
case 0:
*reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QWidget* >(); break;
}
break;
}
}
}
const QMetaObject *MainMainWindow::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *MainMainWindow::qt_metacast(const char *_clname)
{
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14MainMainWindowE_t>.strings))
return static_cast<void*>(this);
return QMainWindow::qt_metacast(_clname);
}
int MainMainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QMainWindow::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 35)
qt_static_metacall(this, _c, _id, _a);
_id -= 35;
}
if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 35)
qt_static_metacall(this, _c, _id, _a);
_id -= 35;
}
return _id;
}
QT_WARNING_POP