QtSupport: Mark remote Qt Versions

Adds a postfix " (on ...)" to the default name of qt versions
if they are located on a remote device.

Makes it easier to distinguish Qt Versions

Change-Id: I02208f49d5a1b6b22294b8cc29348455808f342f
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Marcus Tillmanns
2024-02-08 09:00:33 +01:00
parent 8869fefb72
commit 5a643b1c0a

View File

@@ -382,9 +382,14 @@ QString QtVersion::defaultUnexpandedDisplayName() const
}
}
return detectionSource() == "PATH" ?
Tr::tr("Qt %{Qt:Version} in PATH (%2)").arg(location) :
Tr::tr("Qt %{Qt:Version} (%2)").arg(location);
QString result = detectionSource() == "PATH"
? Tr::tr("Qt %{Qt:Version} in PATH (%2)").arg(location)
: Tr::tr("Qt %{Qt:Version} (%2)").arg(location);
if (qmakeFilePath().needsDevice())
result += QString(Tr::tr(" (on %1)")).arg(qmakeFilePath().host().toString());
return result;
}
QSet<Id> QtVersion::availableFeatures() const