aboutsummaryrefslogtreecommitdiffstats
path: root/src/threadlistmodel.h
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-08-26 15:55:13 +0200
committerDanilo M. <danix@danix.xyz>2026-08-26 15:55:13 +0200
commitca5b6ca711e73bc22fdf108e06d82241e059c6ee (patch)
tree26fc84fb4f5de11fbf71179fe2f3dc7eb9c01f2e /src/threadlistmodel.h
parent5e769b073062a8913d2c4250d079aeb2d7d7b0e8 (diff)
downloadqtmaildir-ca5b6ca711e73bc22fdf108e06d82241e059c6ee.tar.gz
qtmaildir-ca5b6ca711e73bc22fdf108e06d82241e059c6ee.zip
feat: expose a row's sender to the delegate
Diffstat (limited to 'src/threadlistmodel.h')
-rw-r--r--src/threadlistmodel.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/threadlistmodel.h b/src/threadlistmodel.h
index 2e56328..4af09d8 100644
--- a/src/threadlistmodel.h
+++ b/src/threadlistmodel.h
@@ -52,6 +52,15 @@ public:
/// Fill colour for that chip.
AccountColourRole,
+ /// The bare address of the message this row stands for, for the
+ /// avatar's hash and for the business-senders lookup. Empty when the
+ /// query did not resolve one, which the delegate handles by falling
+ /// back to the account.
+ SenderAddressRole,
+ /// The display name to take initials from. `authors` for a thread row,
+ /// `recipients` in a flat view, matching what the card already shows.
+ SenderNameRole,
+
/// Every tag on the thread, for the strip under the message pane.
TagsRole,