From b64cd45ebb6ca88f6f57acba22c5705899e0eca1 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 16 Nov 2026 12:24:23 +0100 Subject: 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 --- src/tagrulesdialog.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tagrulesdialog.h') 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; -- cgit v1.2.3