aboutsummaryrefslogtreecommitdiffstats
path: root/src/tagrulesdialog.h
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-16 12:24:23 +0100
committerDanilo M. <danix@danix.xyz>2026-11-16 12:24:23 +0100
commitb64cd45ebb6ca88f6f57acba22c5705899e0eca1 (patch)
tree8f4d9addf8920142e29727c0f758f1ddca2301bb /src/tagrulesdialog.h
parent227258a199283089ec16e4798988277cf5062e67 (diff)
downloadqtmaildir-b64cd45ebb6ca88f6f57acba22c5705899e0eca1.tar.gz
qtmaildir-b64cd45ebb6ca88f6f57acba22c5705899e0eca1.zip
feat(rules): Move to in the rules dialog
TagRule gains move, read and written by TagRules and chosen from a Move to combo whose item data is the wire-format role. An unknown value from the file is kept raw in unknown and the rule still loads, so a save writes it back instead of deleting the rule; a role picked in the dialog replaces it. A move-only rule is valid. Item 214. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'src/tagrulesdialog.h')
-rw-r--r--src/tagrulesdialog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tagrulesdialog.h b/src/tagrulesdialog.h
index 3bfb3d5..0148f38 100644
--- a/src/tagrulesdialog.h
+++ b/src/tagrulesdialog.h
@@ -128,6 +128,8 @@ public:
bool currentRuleEnabledForTest() const;
void addRuleForTest() { onAddRule(); }
void setTagsForTest(const QString &tags);
+ void setMoveForTest(const QString &role);
+ QString moveForTest() const;
/// Whether the text-mode toggle would be on screen. A toggle that hides
/// itself when switched on is a one-way trip, and asserting only on the
@@ -294,6 +296,7 @@ private:
QLineEdit *m_id = nullptr;
QLineEdit *m_add = nullptr;
QLineEdit *m_remove = nullptr;
+ QComboBox *m_move = nullptr;
QLineEdit *m_query = nullptr;
QPlainTextEdit *m_note = nullptr;
QSpinBox *m_stage = nullptr;