Utils: Use more FilePath in TerminalCommand

Change-Id: Ide9a09f61f3b2c10378d90a4a907e1e37d7407df
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
hjk
2023-02-07 17:19:01 +01:00
parent 49561eaeb8
commit 85bed557f3
5 changed files with 22 additions and 18 deletions

View File

@@ -5,6 +5,8 @@
#include "utils_global.h"
#include "filepath.h"
#include <QMetaType>
#include <QVector>
@@ -20,13 +22,13 @@ class QTCREATOR_UTILS_EXPORT TerminalCommand
{
public:
TerminalCommand() = default;
TerminalCommand(const QString &command, const QString &openArgs,
TerminalCommand(const FilePath &command, const QString &openArgs,
const QString &executeArgs, bool needsQuotes = false);
bool operator==(const TerminalCommand &other) const;
bool operator<(const TerminalCommand &other) const;
QString command;
Utils::FilePath command;
QString openArgs;
QString executeArgs;
bool needsQuotes = false;