forked from qt-creator/qt-creator
Android: keep manual Qt version names in the autodected kit name
With in 19154bf0e7
, When having
an offial Qt for Android and a manual Qt for Android with the name
version, the kit will have the same name, avoid that
by keeping the exact name of the manual versions.
Change-Id: I280a286f99cbc17185a5309c8825381e03ea7ff6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -1422,8 +1422,12 @@ void AndroidConfigurations::updateAutomaticKitList()
|
||||
QStringList abis = static_cast<const AndroidQtVersion *>(qt)->androidAbis();
|
||||
Debugger::DebuggerKitAspect::setDebugger(k, findOrRegisterDebugger(tc, abis, QtKitAspect::qtVersion(k)));
|
||||
k->makeSticky();
|
||||
k->setUnexpandedDisplayName(tr("Android Qt %1 Clang %2")
|
||||
.arg(qt->qtVersionString())
|
||||
|
||||
QString versionStr = QLatin1String("Qt %{Qt:Version}");
|
||||
if (!qt->isAutodetected())
|
||||
versionStr = QLatin1String("%1").arg(qt->displayName());
|
||||
k->setUnexpandedDisplayName(tr("Android %1 Clang %2")
|
||||
.arg(versionStr)
|
||||
.arg(containsAllAbis(abis) ? "Multi-Abi" : abis.join(",")));
|
||||
k->setValueSilently(Constants::ANDROID_KIT_NDK, currentConfig().ndkLocation(qt).toString());
|
||||
k->setValueSilently(Constants::ANDROID_KIT_SDK, currentConfig().sdkLocation().toString());
|
||||
|
Reference in New Issue
Block a user