forked from qt-creator/qt-creator
VCS: Abstract multi-choice settings in editor config
Change-Id: Iafc089f5ad3796348ab9521b71b31cb645238292 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
9c96a1c4de
commit
f2cd459ec5
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user