forked from qt-creator/qt-creator
Get rid of QtcProcess::workingDirectory() overload
Adapt all callers' code so that it passes the FilePath instead of QString. As a consequence introduce TemporaryDirectory::masterDirectoryFilePath() and use it where easily possible. Change-Id: I14564949b3b916921e32a2957c84c03d1da43af2 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -113,12 +113,12 @@ bool StdIOClientInterface::start()
|
||||
return true;
|
||||
}
|
||||
|
||||
void StdIOClientInterface::setCommandLine(const Utils::CommandLine &cmd)
|
||||
void StdIOClientInterface::setCommandLine(const CommandLine &cmd)
|
||||
{
|
||||
m_process.setCommand(cmd);
|
||||
}
|
||||
|
||||
void StdIOClientInterface::setWorkingDirectory(const QString &workingDirectory)
|
||||
void StdIOClientInterface::setWorkingDirectory(const FilePath &workingDirectory)
|
||||
{
|
||||
m_process.setWorkingDirectory(workingDirectory);
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ public:
|
||||
|
||||
// These functions only have an effect if they are called before start
|
||||
void setCommandLine(const Utils::CommandLine &cmd);
|
||||
void setWorkingDirectory(const QString &workingDirectory);
|
||||
void setWorkingDirectory(const Utils::FilePath &workingDirectory);
|
||||
|
||||
protected:
|
||||
void sendData(const QByteArray &data) final;
|
||||
|
||||
@@ -743,7 +743,7 @@ BaseClientInterface *StdIOSettings::createInterfaceWithProject(ProjectExplorer::
|
||||
auto interface = new StdIOClientInterface;
|
||||
interface->setCommandLine(command());
|
||||
if (project)
|
||||
interface->setWorkingDirectory(project->projectDirectory().toString());
|
||||
interface->setWorkingDirectory(project->projectDirectory());
|
||||
return interface;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user