aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Tillmanns <[email protected]>2024-02-08 09:00:33 +0100
committerMarcus Tillmanns <[email protected]>2024-02-09 14:07:18 +0000
commit5a643b1c0a33daf8bac64e3c7688af8b80956dd4 (patch)
treed148604920c8eb02e767de978a3549459805c0b7
parent8869fefb72df0223415d69d312d09fd6df5c3451 (diff)
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 <[email protected]> Reviewed-by: hjk <[email protected]> Reviewed-by: <[email protected]>
-rw-r--r--src/plugins/qtsupport/baseqtversion.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/plugins/qtsupport/baseqtversion.cpp b/src/plugins/qtsupport/baseqtversion.cpp
index 23a947c45f2..399efc3a1cd 100644
--- a/src/plugins/qtsupport/baseqtversion.cpp
+++ b/src/plugins/qtsupport/baseqtversion.cpp
@@ -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