forked from qt-creator/qt-creator
Replace QtSupport::QtVersionNumber with QVersionNumber
Task-number: QTCREATORBUG-27786 Change-Id: I71a44709c264829f629c9dfce702076eda297a77 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -245,7 +245,7 @@ void QmlProjectRunConfiguration::createQtVersionAspect()
|
||||
m_qtversionAspect->addOption(tr("Qt 5"));
|
||||
m_qtversionAspect->addOption(tr("Qt 6"));
|
||||
|
||||
const int valueForVersion = version->qtVersion().majorVersion == 6 ? 1 : 0;
|
||||
const int valueForVersion = version->qtVersion().majorVersion() == 6 ? 1 : 0;
|
||||
|
||||
m_qtversionAspect->setValue(valueForVersion);
|
||||
|
||||
@@ -260,7 +260,7 @@ void QmlProjectRunConfiguration::createQtVersionAspect()
|
||||
|
||||
const QList<Kit *> kits = Utils::filtered(KitManager::kits(), [&](const Kit *k) {
|
||||
QtSupport::QtVersion *version = QtSupport::QtKitAspect::qtVersion(k);
|
||||
return (version && version->qtVersion().majorVersion == preferedQtVersion)
|
||||
return (version && version->qtVersion().majorVersion() == preferedQtVersion)
|
||||
&& DeviceTypeKitAspect::deviceTypeId(k)
|
||||
== ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user