forked from qt-creator/qt-creator
Add Reload button to Log and Diff editors
Change-Id: I524f114c2642a793a06c03e18c1eeab019209fd7 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
70e7cf36b4
commit
c75bb148e8
@@ -39,6 +39,7 @@
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/hostosinfo.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/utilsicons.h>
|
||||
|
||||
#include <QSyntaxHighlighter>
|
||||
|
||||
@@ -67,6 +68,7 @@ public:
|
||||
VcsBase::VcsBaseClientSettings &settings = client->settings();
|
||||
FossilClient::SupportedFeatures features = client->supportedFeatures();
|
||||
|
||||
addButton(tr("Reload"), Utils::Icons::RELOAD.icon());
|
||||
if (features.testFlag(FossilClient::DiffIgnoreWhiteSpaceFeature)) {
|
||||
mapSetting(addToggleButton("-w", tr("Ignore All Whitespace")),
|
||||
settings.boolPointer(FossilSettings::diffIgnoreAllWhiteSpaceKey));
|
||||
@@ -113,6 +115,8 @@ public:
|
||||
VcsBase::VcsBaseEditorConfig(toolBar)
|
||||
{
|
||||
QTC_ASSERT(client, return);
|
||||
|
||||
addButton(tr("Reload"), Utils::Icons::RELOAD.icon());
|
||||
}
|
||||
|
||||
};
|
||||
@@ -128,6 +132,7 @@ public:
|
||||
{
|
||||
QTC_ASSERT(client, return);
|
||||
|
||||
addButton(tr("Reload"), Utils::Icons::RELOAD.icon());
|
||||
addLineageComboBox();
|
||||
addVerboseToggleButton();
|
||||
addItemTypeComboBox();
|
||||
|
||||
Reference in New Issue
Block a user