forked from qt-creator/qt-creator
Vcs: Register settings aspects more directly
Change-Id: I8049f71456b8e8573a2dcfce68a14fb12545865b Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -33,72 +33,57 @@ FossilSettings::FossilSettings()
|
||||
setDisplayName(Tr::tr("Fossil"));
|
||||
setCategory(VcsBase::Constants::VCS_SETTINGS_CATEGORY);
|
||||
|
||||
registerAspect(&binaryPath);
|
||||
binaryPath.setExpectedKind(PathChooser::ExistingCommand);
|
||||
binaryPath.setDefaultValue(Constants::FOSSILDEFAULT);
|
||||
binaryPath.setDisplayName(Tr::tr("Fossil Command"));
|
||||
binaryPath.setHistoryCompleter("Fossil.Command.History");
|
||||
binaryPath.setLabelText(Tr::tr("Command:"));
|
||||
|
||||
registerAspect(&defaultRepoPath);
|
||||
defaultRepoPath.setSettingsKey("defaultRepoPath");
|
||||
defaultRepoPath.setExpectedKind(PathChooser::Directory);
|
||||
defaultRepoPath.setDisplayName(Tr::tr("Fossil Repositories"));
|
||||
defaultRepoPath.setLabelText(Tr::tr("Default path:"));
|
||||
defaultRepoPath.setToolTip(Tr::tr("Directory to store local repositories by default."));
|
||||
|
||||
registerAspect(&userName);
|
||||
userName.setDisplayStyle(StringAspect::LineEditDisplay);
|
||||
userName.setLabelText(Tr::tr("Default user:"));
|
||||
userName.setToolTip(Tr::tr("Existing user to become an author of changes made to the repository."));
|
||||
|
||||
registerAspect(&sslIdentityFile);
|
||||
sslIdentityFile.setSettingsKey("sslIdentityFile");
|
||||
sslIdentityFile.setExpectedKind(PathChooser::File);
|
||||
sslIdentityFile.setDisplayName(Tr::tr("SSL/TLS Identity Key"));
|
||||
sslIdentityFile.setLabelText(Tr::tr("SSL/TLS identity:"));
|
||||
sslIdentityFile.setToolTip(Tr::tr("SSL/TLS client identity key to use if requested by the server."));
|
||||
|
||||
registerAspect(&diffIgnoreAllWhiteSpace);
|
||||
diffIgnoreAllWhiteSpace.setSettingsKey("diffIgnoreAllWhiteSpace");
|
||||
|
||||
registerAspect(&diffStripTrailingCR);
|
||||
diffStripTrailingCR.setSettingsKey("diffStripTrailingCR");
|
||||
|
||||
registerAspect(&annotateShowCommitters);
|
||||
annotateShowCommitters.setSettingsKey("annotateShowCommitters");
|
||||
|
||||
registerAspect(&annotateListVersions);
|
||||
annotateListVersions.setSettingsKey("annotateListVersions");
|
||||
|
||||
registerAspect(&timelineWidth);
|
||||
timelineWidth.setSettingsKey("timelineWidth");
|
||||
timelineWidth.setLabelText(Tr::tr("Log width:"));
|
||||
timelineWidth.setToolTip(Tr::tr("The width of log entry line (>20). "
|
||||
"Choose 0 to see a single line per entry."));
|
||||
|
||||
registerAspect(&timelineLineageFilter);
|
||||
timelineLineageFilter.setSettingsKey("timelineLineageFilter");
|
||||
|
||||
registerAspect(&timelineVerbose);
|
||||
timelineVerbose.setSettingsKey("timelineVerbose");
|
||||
|
||||
registerAspect(&timelineItemType);
|
||||
timelineItemType.setDefaultValue("all");
|
||||
timelineItemType.setSettingsKey("timelineItemType");
|
||||
|
||||
registerAspect(&disableAutosync);
|
||||
disableAutosync.setSettingsKey("disableAutosync");
|
||||
disableAutosync.setDefaultValue(true);
|
||||
disableAutosync.setLabelText(Tr::tr("Disable auto-sync"));
|
||||
disableAutosync.setToolTip(Tr::tr("Disable automatic pull prior to commit or update and "
|
||||
"automatic push after commit or tag or branch creation."));
|
||||
|
||||
registerAspect(&timeout);
|
||||
timeout.setLabelText(Tr::tr("Timeout:"));
|
||||
timeout.setSuffix(Tr::tr("s"));
|
||||
|
||||
registerAspect(&logCount);
|
||||
logCount.setLabelText(Tr::tr("Log count:"));
|
||||
logCount.setToolTip(Tr::tr("The number of recent commit log entries to show. "
|
||||
"Choose 0 to see all entries."));
|
||||
|
||||
Reference in New Issue
Block a user