Utils: Register CommandLine

Needed e.g. in VCS support.

Change-Id: I3a9d64526bc0bf60a77ab154408dfec94cc6ba75
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2019-07-31 09:19:23 +02:00
parent 25c7d7884c
commit a460fa3152
2 changed files with 4 additions and 1 deletions

View File

@@ -74,6 +74,8 @@ namespace Utils {
*/
CommandLine::CommandLine() = default;
CommandLine::CommandLine(const QString &executable)
: m_executable(FilePath::fromString(executable))
{}

View File

@@ -130,7 +130,7 @@ class QTCREATOR_UTILS_EXPORT CommandLine
public:
enum RawType { Raw };
CommandLine() {}
CommandLine();
explicit CommandLine(const QString &executable);
explicit CommandLine(const FilePath &executable);
CommandLine(const QString &exe, const QStringList &args);
@@ -300,3 +300,4 @@ template<> struct hash<Utils::FilePath>
} // namespace std
Q_DECLARE_METATYPE(Utils::FilePath)
Q_DECLARE_METATYPE(Utils::CommandLine)