ProjectExplorer: Add a Runnable::setCommandLine()

Change-Id: I9b6a782e143dca8519cdc57171557bd3893df921
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-05-29 19:12:45 +02:00
parent fa38a31644
commit d1fef0ea51
2 changed files with 7 additions and 0 deletions

View File

@@ -1554,4 +1554,10 @@ CommandLine Runnable::commandLine() const
return CommandLine(FilePath::fromString(executable), commandLineArguments); return CommandLine(FilePath::fromString(executable), commandLineArguments);
} }
void Runnable::setCommandLine(const CommandLine &cmdLine)
{
executable = cmdLine.executable().toString();
commandLineArguments = cmdLine.arguments();
}
} // namespace ProjectExplorer } // namespace ProjectExplorer

View File

@@ -74,6 +74,7 @@ public:
Runnable() = default; Runnable() = default;
Utils::CommandLine commandLine() const; Utils::CommandLine commandLine() const;
void setCommandLine(const Utils::CommandLine &cmdLine);
QString executable; QString executable;
QString commandLineArguments; QString commandLineArguments;