Git: add reload button for 'git blame' and 'git log' windows

Change-Id: I64685e779bed91d41e38bdc1454571dbbcd7f177
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Przemyslaw Gorszkowski
2017-12-05 22:39:27 +01:00
parent 6bb7da79de
commit e25edc5020
3 changed files with 24 additions and 3 deletions

View File

@@ -65,6 +65,7 @@
#include <diffeditor/diffeditorconstants.h>
#include <diffeditor/diffeditorcontroller.h>
#include <diffeditor/diffutils.h>
#include <utils/utilsicons.h>
#include <QAction>
#include <QCoreApplication>
@@ -372,6 +373,8 @@ public:
mapSetting(addToggleButton("-w", tr("Ignore Whitespace"),
tr("Ignore whitespace only changes.")),
settings.boolPointer(GitSettings::ignoreSpaceChangesInBlameKey));
addButton(tr("Reload"), Utils::Icons::RELOAD.icon());
}
};
@@ -402,6 +405,8 @@ public:
QAction *graphButton = addToggleButton(graphArguments, tr("Graph"),
tr("Show textual graph log."));
mapSetting(graphButton, settings.boolPointer(GitSettings::graphLogKey));
addButton(tr("Reload"), Utils::Icons::RELOAD.icon());
}
};