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
This commit is contained in:
@@ -85,6 +85,9 @@ template <> constexpr inline auto MainMainWindow::qt_create_metaobjectdata<qt_me
|
||||
"onMoreRequested",
|
||||
"QPoint",
|
||||
"globalPos",
|
||||
"onReplyRequested",
|
||||
"onForwardRequested",
|
||||
"onMarkUnreadRequested",
|
||||
"onEmbeddedSendRequested",
|
||||
"to",
|
||||
"cc",
|
||||
@@ -207,16 +210,28 @@ template <> constexpr inline auto MainMainWindow::qt_create_metaobjectdata<qt_me
|
||||
QtMocHelpers::SlotData<void(int, const QPoint &)>(42, 2, QMC::AccessPrivate, QMetaType::Void, {{
|
||||
{ QMetaType::Int, 7 }, { 0x80000000 | 43, 44 },
|
||||
}}),
|
||||
// Slot 'onReplyRequested'
|
||||
QtMocHelpers::SlotData<void(int)>(45, 2, QMC::AccessPrivate, QMetaType::Void, {{
|
||||
{ QMetaType::Int, 7 },
|
||||
}}),
|
||||
// Slot 'onForwardRequested'
|
||||
QtMocHelpers::SlotData<void(int)>(46, 2, QMC::AccessPrivate, QMetaType::Void, {{
|
||||
{ QMetaType::Int, 7 },
|
||||
}}),
|
||||
// Slot 'onMarkUnreadRequested'
|
||||
QtMocHelpers::SlotData<void(int)>(47, 2, QMC::AccessPrivate, QMetaType::Void, {{
|
||||
{ QMetaType::Int, 7 },
|
||||
}}),
|
||||
// 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 },
|
||||
QtMocHelpers::SlotData<void(const QString &, const QString &, const QString &, const QString &, const QString &, const QDateTime &, const QString &, const QStringList &)>(48, 2, QMC::AccessPrivate, QMetaType::Void, {{
|
||||
{ QMetaType::QString, 49 }, { QMetaType::QString, 50 }, { QMetaType::QString, 51 }, { QMetaType::QString, 52 },
|
||||
{ QMetaType::QString, 53 }, { QMetaType::QDateTime, 54 }, { QMetaType::QString, 55 }, { QMetaType::QStringList, 56 },
|
||||
}}),
|
||||
// Slot 'onEmbeddedDiscardRequested'
|
||||
QtMocHelpers::SlotData<void()>(54, 2, QMC::AccessPrivate, QMetaType::Void),
|
||||
QtMocHelpers::SlotData<void()>(57, 2, QMC::AccessPrivate, QMetaType::Void),
|
||||
// Slot 'onEmbeddedDetachRequested'
|
||||
QtMocHelpers::SlotData<void(QWidget *)>(55, 2, QMC::AccessPrivate, QMetaType::Void, {{
|
||||
{ 0x80000000 | 56, 57 },
|
||||
QtMocHelpers::SlotData<void(QWidget *)>(58, 2, QMC::AccessPrivate, QMetaType::Void, {{
|
||||
{ 0x80000000 | 59, 60 },
|
||||
}}),
|
||||
};
|
||||
QtMocHelpers::UintData qt_properties {
|
||||
@@ -273,16 +288,19 @@ void MainMainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _
|
||||
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;
|
||||
case 32: _t->onReplyRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
|
||||
case 33: _t->onForwardRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
|
||||
case 34: _t->onMarkUnreadRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
|
||||
case 35: _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 36: _t->onEmbeddedDiscardRequested(); break;
|
||||
case 37: _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:
|
||||
case 37:
|
||||
switch (*reinterpret_cast<int*>(_a[1])) {
|
||||
default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
|
||||
case 0:
|
||||
@@ -312,14 +330,14 @@ int MainMainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 35)
|
||||
if (_id < 38)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 35;
|
||||
_id -= 38;
|
||||
}
|
||||
if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
if (_id < 35)
|
||||
if (_id < 38)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 35;
|
||||
_id -= 38;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user