Skip to content
Snippets Groups Projects
Commit bbc07bd4 authored by Eike Ziller's avatar Eike Ziller Committed by Tobias Hunger
Browse files

iOS: Do not hardcode Qt version in iOS kits


Since Qt installers nowadays (since Qt 5.3) register all Qt patch
releases of the same minor version with the same ID, the Kit will not be
updated (because the Qt 'is the same'), so it should use %{Qt:Version}
instead of hardcoding the version.

Change-Id: Ieb8b766490b3c6297fa11802c6e13724658795d5
Task-number: QTCREATORBUG-15128
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 47654d6d
No related branches found
No related tags found
No related merge requests found
...@@ -300,11 +300,28 @@ void IosConfigurations::updateAutomaticKitList() ...@@ -300,11 +300,28 @@ void IosConfigurations::updateAutomaticKitList()
} }
if (kitExists) { if (kitExists) {
kitAtt->blockNotification(); kitAtt->blockNotification();
// TODO: this is just to fix up broken display names from before
QString baseDisplayName = tr("%1 %2").arg(p.name, qt->unexpandedDisplayName());
QString displayName = baseDisplayName;
for (int iVers = 1; iVers < 100; ++iVers) {
bool unique = true;
foreach (const Kit *k, existingKits) {
if (k == kitAtt)
continue;
if (k->displayName() == displayName) {
unique = false;
break;
}
}
if (unique) break;
displayName = baseDisplayName + QLatin1Char('-') + QString::number(iVers);
}
kitAtt->setUnexpandedDisplayName(displayName);
} else { } else {
qCDebug(kitSetupLog) << "setting up new kit for " << p.name; qCDebug(kitSetupLog) << "setting up new kit for " << p.name;
kitAtt = new Kit; kitAtt = new Kit;
kitAtt->setAutoDetected(true); kitAtt->setAutoDetected(true);
QString baseDisplayName = tr("%1 %2").arg(p.name, qt->displayName()); QString baseDisplayName = tr("%1 %2").arg(p.name, qt->unexpandedDisplayName());
QString displayName = baseDisplayName; QString displayName = baseDisplayName;
for (int iVers = 1; iVers < 100; ++iVers) { for (int iVers = 1; iVers < 100; ++iVers) {
bool unique = true; bool unique = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment