aboutsummaryrefslogtreecommitdiffstats
path: root/src/tagrulesdialog.h
diff options
context:
space:
mode:
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 9cee163..948ebe2 100644
--- a/src/tagrulesdialog.h
+++ b/src/tagrulesdialog.h
@@ -69,6 +69,13 @@ public:
/// Runs the Save path without showing the dialog.
void saveForTest() { onSave(); }
+ /// Types into the query field and toggles the mode, so the refusal path
+ /// can be reached without a synthetic click. The refusal reports through
+ /// the warning label rather than a modal precisely so this is testable.
+ void setQueryTextForTest(const QString &text);
+ void setTextModeForTest(bool on);
+ QString warningTextForTest() const;
+
signals:
/// Asks the owner to run countQueries() through the worker.
void countsRequested();