forked from qt-creator/qt-creator
ProjectExplorer: Use Utils::CommandLine in ProjectExplorer::Runnable
Change-Id: Id965f1f9047dcbc3ea5c9ddaa550d12668cf8ae6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -149,9 +149,19 @@ public:
|
||||
QString toUserOutput() const;
|
||||
|
||||
FilePath executable() const { return m_executable; }
|
||||
void setExecutable(const FilePath &executable) { m_executable = executable; }
|
||||
|
||||
QString arguments() const { return m_arguments; }
|
||||
void setArguments(const QString &args) { m_arguments = args; }
|
||||
|
||||
QStringList splitArguments(OsType osType = HostOsInfo::hostOs()) const;
|
||||
|
||||
bool isEmpty() const { return m_executable.isEmpty(); }
|
||||
|
||||
friend bool operator==(const CommandLine &first, const CommandLine &second) {
|
||||
return first.m_executable == second.m_executable && first.m_arguments == second.m_arguments;
|
||||
}
|
||||
|
||||
private:
|
||||
FilePath m_executable;
|
||||
QString m_arguments;
|
||||
|
||||
Reference in New Issue
Block a user