QtSupport: Use FilePath for several BaseQtVersion members

uicCommand(), designerCommand(), linguistCommand(), qscxmlcCommand(),
qmlsceneCommand(), qmlplugindumpCommand().

No change in functionality intented.

Change-Id: I43121de559019f96c2c1ff3b423974dddfc37124
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-06-29 19:26:12 +02:00
parent c0a44be27b
commit 6f5d78a297
7 changed files with 65 additions and 66 deletions

View File

@@ -43,6 +43,7 @@
#include <QTcpServer>
using namespace ProjectExplorer;
using namespace Utils;
enum { debug = 0 };
@@ -65,14 +66,14 @@ static inline QString msgAppNotFound(const QString &id)
static QString linguistBinary(const QtSupport::BaseQtVersion *qtVersion)
{
if (qtVersion)
return qtVersion->linguistCommand();
return qtVersion->linguistCommand().toString();
return QLatin1String(Utils::HostOsInfo::isMacHost() ? "Linguist" : "linguist");
}
static QString designerBinary(const QtSupport::BaseQtVersion *qtVersion)
{
if (qtVersion)
return qtVersion->designerCommand();
return qtVersion->designerCommand().toString();
return QLatin1String(Utils::HostOsInfo::isMacHost() ? "Designer" : "designer");
}