forked from qt-creator/qt-creator
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:
@@ -74,6 +74,8 @@ namespace Utils {
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
CommandLine::CommandLine() = default;
|
||||||
|
|
||||||
CommandLine::CommandLine(const QString &executable)
|
CommandLine::CommandLine(const QString &executable)
|
||||||
: m_executable(FilePath::fromString(executable))
|
: m_executable(FilePath::fromString(executable))
|
||||||
{}
|
{}
|
||||||
|
@@ -130,7 +130,7 @@ class QTCREATOR_UTILS_EXPORT CommandLine
|
|||||||
public:
|
public:
|
||||||
enum RawType { Raw };
|
enum RawType { Raw };
|
||||||
|
|
||||||
CommandLine() {}
|
CommandLine();
|
||||||
explicit CommandLine(const QString &executable);
|
explicit CommandLine(const QString &executable);
|
||||||
explicit CommandLine(const FilePath &executable);
|
explicit CommandLine(const FilePath &executable);
|
||||||
CommandLine(const QString &exe, const QStringList &args);
|
CommandLine(const QString &exe, const QStringList &args);
|
||||||
@@ -300,3 +300,4 @@ template<> struct hash<Utils::FilePath>
|
|||||||
} // namespace std
|
} // namespace std
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(Utils::FilePath)
|
Q_DECLARE_METATYPE(Utils::FilePath)
|
||||||
|
Q_DECLARE_METATYPE(Utils::CommandLine)
|
||||||
|
Reference in New Issue
Block a user