aboutsummaryrefslogtreecommitdiffstats
path: root/src/tagrulesdialog.h
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-08-13 11:39:49 +0200
committerDanilo M. <danix@danix.xyz>2026-08-13 11:39:49 +0200
commit2ad9b17d53e19418de089cc98820af0776c3bfba (patch)
treedc3ce44242187d3b5205611b263e556b85968d63 /src/tagrulesdialog.h
parent4cb43886ceb18cc6078ab2e8ec28fa15a1c701f2 (diff)
downloadqtmaildir-2ad9b17d53e19418de089cc98820af0776c3bfba.tar.gz
qtmaildir-2ad9b17d53e19418de089cc98820af0776c3bfba.zip
feat(rules): text mode, and leave untouched rules unwritten
Diffstat (limited to 'src/tagrulesdialog.h')
-rw-r--r--src/tagrulesdialog.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tagrulesdialog.h b/src/tagrulesdialog.h
index 6676da9..9cee163 100644
--- a/src/tagrulesdialog.h
+++ b/src/tagrulesdialog.h
@@ -64,6 +64,11 @@ public:
/// Selects the rule at `index` as a click on the list would.
void selectRuleForTest(int index);
+ bool textModeForTest() const;
+ void setRowValueForTest(int index, const QString &value);
+ /// Runs the Save path without showing the dialog.
+ void saveForTest() { onSave(); }
+
signals:
/// Asks the owner to run countQueries() through the worker.
void countsRequested();
@@ -104,6 +109,8 @@ private:
void updateExclusionsVisibility();
void syncQueryLine();
+ void setTextMode(bool on);
+
void rebuildRows(const RuleQuery &query);
void applyTermToRow(Row *row, const RuleTerm &term);
RuleQuery currentQueryFromRows() const;