aboutsummaryrefslogtreecommitdiffstats
path: root/src/messageview.h
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-08-08 10:24:16 +0200
committerDanilo M. <danix@danix.xyz>2026-08-10 08:23:06 +0200
commitc80c060a593fb802f7149223d0d2f8495bc1f443 (patch)
tree752e073bc845eed021b57719350b60d20a9ae488 /src/messageview.h
parent879a117cba62df57dfcb0c0dfd4383308fa07f13 (diff)
downloadqtmaildir-c80c060a593fb802f7149223d0d2f8495bc1f443.tar.gz
qtmaildir-c80c060a593fb802f7149223d0d2f8495bc1f443.zip
feat(model): resolve action scope from the selected row kind
ActionScope is what an action is about to touch, resolved from the selection in one place so no call site reinvents the mapping. A thread root contributes the whole thread, a message row contributes one message, and messageCount is what the status bar reports. The count comes from totalCount, not from the loaded children. A thread that was never expanded still has all of its messages, and counting only the rows that happen to be on screen would understate what the action does: mutation-checked, and the wrong version reports 1 message where 7 are about to be tagged. A mixed selection is honoured as given rather than escalated to thread scope or narrowed to message scope. Silently widening it would defeat the reason the scope is shown at all.
Diffstat (limited to 'src/messageview.h')
0 files changed, 0 insertions, 0 deletions