aboutsummaryrefslogtreecommitdiffstats
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-14 12:08:16 +0200
committerDanilo M. <danix@danix.xyz>2026-09-14 12:08:16 +0200
commit91920f431cccbd425b28b9ee553fa425c005d7fe (patch)
tree5e8e61e5d7941dffcf607aef156b875402de51b6 /src/mainwindow.h
parentc7a2444ed5b9bb30b9f10d3e8dff8a6d6b6bb16a (diff)
downloadqtmaildir-91920f431cccbd425b28b9ee553fa425c005d7fe.tar.gz
qtmaildir-91920f431cccbd425b28b9ee553fa425c005d7fe.zip
feat: spam on the message bar, with a bug icon and junk fallback
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 14bb06f..1fc8822 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -235,6 +235,16 @@ public:
return everySelectedRowIsInATrashFolder();
}
+ /// The icon table's two theme names for a known action: primary first,
+ /// fallback second (empty when the action has none), and a pair of empty
+ /// strings for an action the table does not carry.
+ ///
+ /// A test seam. The table lives at file scope in mainwindow.cpp and the
+ /// fallback is invisible from the resolved QIcon: a theme that has BOTH
+ /// names renders identically whichever one the code tried, so a test on
+ /// the icon alone cannot catch a fallback wired to the wrong entry.
+ static QPair<QString, QString> iconNamesForTesting(const QString &action);
+
/// Runs a purge without the confirmation, which a test cannot drive: a
/// modal blocks the thread it is shown on (item 84). What this exists to
/// cover is what happens AFTER the user confirms.