VCS: Abstract multi-choice settings in editor config

Change-Id: Iafc089f5ad3796348ab9521b71b31cb645238292
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2019-11-23 22:57:03 +02:00
committed by Orgad Shaneh
parent 9c96a1c4de
commit f2cd459ec5
4 changed files with 25 additions and 20 deletions

View File

@@ -547,13 +547,13 @@ public:
tr("Ignore whitespace only changes.")),
settings.boolPointer(GitSettings::ignoreSpaceChangesInBlameKey));
const QList<ComboBoxItem> logChoices = {
ComboBoxItem(tr("No Move Detection"), ""),
ComboBoxItem(tr("Detect Moves Within File"), "-M"),
ComboBoxItem(tr("Detect Moves Between Files"), "-M -C"),
ComboBoxItem(tr("Detect Moves and Copies Between Files"), "-M -C -C")
const QList<ChoiceItem> logChoices = {
ChoiceItem(tr("No Move Detection"), ""),
ChoiceItem(tr("Detect Moves Within File"), "-M"),
ChoiceItem(tr("Detect Moves Between Files"), "-M -C"),
ChoiceItem(tr("Detect Moves and Copies Between Files"), "-M -C -C")
};
mapSetting(addComboBox({}, logChoices),
mapSetting(addChoices(tr("Move detection"), {}, logChoices),
settings.intPointer(GitSettings::blameMoveDetection));
addReloadButton();