QtSupport: Use Utils::DisplayName in BaseQtVersion

Task-number: QTCREATORBUG-16281
Change-Id: Idd697594bfd83d8f26c4cbfe5ff2d9472609836b
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2019-10-14 15:44:00 +02:00
parent 734b9097c7
commit 400eeaea7e
4 changed files with 26 additions and 22 deletions

View File

@@ -435,10 +435,8 @@ static void findSystemQt()
foreach (const FilePath &qmakePath, Utils::filteredUnique(systemQMakes)) {
BaseQtVersion *version
= QtVersionFactory::createQtVersionFromQMakePath(qmakePath, false, QLatin1String("PATH"));
if (version) {
version->setUnexpandedDisplayName(BaseQtVersion::defaultUnexpandedDisplayName(qmakePath, true));
if (version)
m_versions.insert(version->uniqueId(), version);
}
}
}