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:
@@ -68,7 +68,7 @@ struct DirectoryData
|
||||
Utils::FilePath canonicalQmakeBinary;
|
||||
QtProjectImporter::QtVersionData qtVersionData;
|
||||
QString parsedSpec;
|
||||
BaseQtVersion::QmakeBuildConfigs buildConfig;
|
||||
QtVersion::QmakeBuildConfigs buildConfig;
|
||||
QString additionalArguments;
|
||||
QMakeStepConfig config;
|
||||
QMakeStepConfig::OsType osType;
|
||||
@@ -146,7 +146,7 @@ QList<void *> QmakeProjectImporter::examineDirectory(const FilePath &importPath,
|
||||
qCDebug(logs) << " QMake:" << data->canonicalQmakeBinary;
|
||||
|
||||
data->qtVersionData = QtProjectImporter::findOrCreateQtVersion(data->canonicalQmakeBinary);
|
||||
BaseQtVersion *version = data->qtVersionData.qt;
|
||||
QtVersion *version = data->qtVersionData.qt;
|
||||
bool isTemporaryVersion = data->qtVersionData.isTemporary;
|
||||
|
||||
QTC_ASSERT(version, continue);
|
||||
@@ -188,7 +188,7 @@ bool QmakeProjectImporter::matchKit(void *directoryData, const Kit *k) const
|
||||
auto *data = static_cast<DirectoryData *>(directoryData);
|
||||
const QLoggingCategory &logs = MakeFileParse::logging();
|
||||
|
||||
BaseQtVersion *kitVersion = QtKitAspect::qtVersion(k);
|
||||
QtVersion *kitVersion = QtKitAspect::qtVersion(k);
|
||||
QString kitSpec = QmakeKitAspect::mkspec(k);
|
||||
ToolChain *tc = ToolChainKitAspect::cxxToolChain(k);
|
||||
if (kitSpec.isEmpty() && kitVersion)
|
||||
@@ -218,7 +218,7 @@ const QList<BuildInfo> QmakeProjectImporter::buildInfoList(void *directoryData)
|
||||
|
||||
// create info:
|
||||
BuildInfo info;
|
||||
if (data->buildConfig & BaseQtVersion::DebugBuild) {
|
||||
if (data->buildConfig & QtVersion::DebugBuild) {
|
||||
info.buildType = BuildConfiguration::Debug;
|
||||
info.displayName = QCoreApplication::translate("QmakeProjectManager::Internal::QmakeProjectImporter", "Debug");
|
||||
} else {
|
||||
@@ -241,7 +241,7 @@ void QmakeProjectImporter::deleteDirectoryData(void *directoryData) const
|
||||
delete static_cast<DirectoryData *>(directoryData);
|
||||
}
|
||||
|
||||
static const Toolchains preferredToolChains(BaseQtVersion *qtVersion, const QString &ms)
|
||||
static const Toolchains preferredToolChains(QtVersion *qtVersion, const QString &ms)
|
||||
{
|
||||
const QString spec = ms.isEmpty() ? qtVersion->mkspec() : ms;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user