aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/diffeditor/diffeditorcontroller.h
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2018-01-16 22:20:07 +0200
committerOrgad Shaneh <orgads@gmail.com>2018-01-17 09:13:40 +0000
commit6bc12ff4464d4921029d45770541d5ad20c54630 (patch)
tree24129ac2efe9a41566d329ddf1bd5f96d86f09b8 /src/plugins/diffeditor/diffeditorcontroller.h
parentb8ee51fef170e221d8370c211760db45c23773a6 (diff)
DiffEditor: Replace bool arguments with flags enum
Change-Id: I70262476d015ba5b73069b149093dac66f7c6008 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/diffeditor/diffeditorcontroller.h')
-rw-r--r--src/plugins/diffeditor/diffeditorcontroller.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/diffeditor/diffeditorcontroller.h b/src/plugins/diffeditor/diffeditorcontroller.h
index b6c8fd77a6..ebe1151ce1 100644
--- a/src/plugins/diffeditor/diffeditorcontroller.h
+++ b/src/plugins/diffeditor/diffeditorcontroller.h
@@ -53,7 +53,13 @@ public:
QString revisionFromDescription() const;
- QString makePatch(bool revert, bool addPrefix = false) const;
+ enum PatchOption {
+ NoOption = 0,
+ Revert = 1,
+ AddPrefix = 2
+ };
+ Q_DECLARE_FLAGS(PatchOptions, PatchOption)
+ QString makePatch(PatchOptions options) const;
static Core::IDocument *findOrCreateDocument(const QString &vcsId,
const QString &displayName);