forked from qt-creator/qt-creator
ProjectExplorer: Add a Runnable::setCommandLine()
Change-Id: I9b6a782e143dca8519cdc57171557bd3893df921 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -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
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user