forked from qt-creator/qt-creator
VcsBaseClientSettings: Add method to retrieve VCS client search path
Change-Id: I7aff223cdbc108fc51554a5f53f8c5efb3856864 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -357,12 +357,16 @@ QString VcsBaseClientSettings::binaryPath() const
|
||||
{
|
||||
if (d->m_binaryFullPath.isEmpty()) {
|
||||
d->m_binaryFullPath = Utils::Environment::systemEnvironment().searchInPath(
|
||||
stringValue(binaryPathKey), stringValue(pathKey).split(
|
||||
Utils::HostOsInfo::pathListSeparator()));
|
||||
stringValue(binaryPathKey), searchPathList());
|
||||
}
|
||||
return d->m_binaryFullPath;
|
||||
}
|
||||
|
||||
QStringList VcsBaseClientSettings::searchPathList() const
|
||||
{
|
||||
return stringValue(pathKey).split(Utils::HostOsInfo::pathListSeparator());
|
||||
}
|
||||
|
||||
QString VcsBaseClientSettings::settingsGroup() const
|
||||
{
|
||||
return d->m_settingsGroup;
|
||||
|
@@ -83,6 +83,8 @@ public:
|
||||
|
||||
QString binaryPath() const;
|
||||
|
||||
QStringList searchPathList() const;
|
||||
|
||||
protected:
|
||||
QString settingsGroup() const;
|
||||
void setSettingsGroup(const QString &group);
|
||||
|
Reference in New Issue
Block a user