forked from qt-creator/qt-creator
Rename QtSupport::BaseQtVersion to QtVersion
... and the Utils::QtVersion enum to Utils::QtMajorVersion to avoid conflicts. Change-Id: Ib688c67388272b7204a91444155f60b8c18a56bd Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -183,7 +183,7 @@ static void printKits(const QSet<Kit *> &kits)
|
||||
}
|
||||
|
||||
static void setupKit(Kit *kit, Utils::Id pDeviceType, const ToolChainPair& toolChains,
|
||||
const QVariant &debuggerId, const Utils::FilePath &sdkPath, BaseQtVersion *qtVersion)
|
||||
const QVariant &debuggerId, const Utils::FilePath &sdkPath, QtVersion *qtVersion)
|
||||
{
|
||||
DeviceTypeKitAspect::setDeviceTypeId(kit, pDeviceType);
|
||||
if (toolChains.first)
|
||||
@@ -251,7 +251,7 @@ void IosConfigurations::updateAutomaticKitList()
|
||||
// target -> tool chain
|
||||
const auto targetToolChainHash = findToolChains(platforms);
|
||||
|
||||
const auto qtVersions = Utils::toSet(QtVersionManager::versions([](const BaseQtVersion *v) {
|
||||
const auto qtVersions = Utils::toSet(QtVersionManager::versions([](const QtVersion *v) {
|
||||
return v->isValid() && v->type() == Constants::IOSQT;
|
||||
}));
|
||||
|
||||
@@ -284,7 +284,7 @@ void IosConfigurations::updateAutomaticKitList()
|
||||
continue;
|
||||
}
|
||||
|
||||
for (BaseQtVersion *qtVersion : qtVersions) {
|
||||
for (QtVersion *qtVersion : qtVersions) {
|
||||
qCDebug(kitSetupLog) << " - Qt version:" << qtVersion->displayName();
|
||||
Kit *kit = Utils::findOrDefault(existingKits, [&pDeviceType, &platformToolchains, &qtVersion](const Kit *kit) {
|
||||
// we do not compare the sdk (thus automatically upgrading it in place if a
|
||||
|
||||
@@ -44,7 +44,7 @@ IosQtVersion::IosQtVersion() = default;
|
||||
|
||||
bool IosQtVersion::isValid() const
|
||||
{
|
||||
if (!BaseQtVersion::isValid())
|
||||
if (!QtVersion::isValid())
|
||||
return false;
|
||||
if (qtAbis().isEmpty())
|
||||
return false;
|
||||
@@ -53,7 +53,7 @@ bool IosQtVersion::isValid() const
|
||||
|
||||
QString IosQtVersion::invalidReason() const
|
||||
{
|
||||
QString tmp = BaseQtVersion::invalidReason();
|
||||
QString tmp = QtVersion::invalidReason();
|
||||
if (tmp.isEmpty() && qtAbis().isEmpty())
|
||||
return tr("Failed to detect the ABIs used by the Qt version.");
|
||||
return tmp;
|
||||
@@ -61,7 +61,7 @@ QString IosQtVersion::invalidReason() const
|
||||
|
||||
Abis IosQtVersion::detectQtAbis() const
|
||||
{
|
||||
Abis abis = BaseQtVersion::detectQtAbis();
|
||||
Abis abis = QtVersion::detectQtAbis();
|
||||
for (int i = 0; i < abis.count(); ++i) {
|
||||
abis[i] = Abi(abis.at(i).architecture(),
|
||||
abis.at(i).os(),
|
||||
@@ -80,7 +80,7 @@ QString IosQtVersion::description() const
|
||||
|
||||
QSet<Utils::Id> IosQtVersion::availableFeatures() const
|
||||
{
|
||||
QSet<Utils::Id> features = QtSupport::BaseQtVersion::availableFeatures();
|
||||
QSet<Utils::Id> features = QtSupport::QtVersion::availableFeatures();
|
||||
features.insert(QtSupport::Constants::FEATURE_MOBILE);
|
||||
features.remove(QtSupport::Constants::FEATURE_QT_CONSOLE);
|
||||
features.remove(QtSupport::Constants::FEATURE_QT_WEBKIT);
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
namespace Ios {
|
||||
namespace Internal {
|
||||
|
||||
class IosQtVersion : public QtSupport::BaseQtVersion
|
||||
class IosQtVersion : public QtSupport::QtVersion
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(Ios::Internal::IosQtVersion)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user