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()) {
|
if (d->m_binaryFullPath.isEmpty()) {
|
||||||
d->m_binaryFullPath = Utils::Environment::systemEnvironment().searchInPath(
|
d->m_binaryFullPath = Utils::Environment::systemEnvironment().searchInPath(
|
||||||
stringValue(binaryPathKey), stringValue(pathKey).split(
|
stringValue(binaryPathKey), searchPathList());
|
||||||
Utils::HostOsInfo::pathListSeparator()));
|
|
||||||
}
|
}
|
||||||
return d->m_binaryFullPath;
|
return d->m_binaryFullPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QStringList VcsBaseClientSettings::searchPathList() const
|
||||||
|
{
|
||||||
|
return stringValue(pathKey).split(Utils::HostOsInfo::pathListSeparator());
|
||||||
|
}
|
||||||
|
|
||||||
QString VcsBaseClientSettings::settingsGroup() const
|
QString VcsBaseClientSettings::settingsGroup() const
|
||||||
{
|
{
|
||||||
return d->m_settingsGroup;
|
return d->m_settingsGroup;
|
||||||
|
@@ -83,6 +83,8 @@ public:
|
|||||||
|
|
||||||
QString binaryPath() const;
|
QString binaryPath() const;
|
||||||
|
|
||||||
|
QStringList searchPathList() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
QString settingsGroup() const;
|
QString settingsGroup() const;
|
||||||
void setSettingsGroup(const QString &group);
|
void setSettingsGroup(const QString &group);
|
||||||
|
Reference in New Issue
Block a user