Minor preparation for Qt6

Change-Id: Id47e7a7ed28dffd12403f2fec72370a8068ad0c0
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Christian Stenger
2020-07-21 09:48:14 +02:00
parent 0c984b3f84
commit 65b3d9028f
2 changed files with 3 additions and 4 deletions

View File

@@ -86,15 +86,14 @@ public:
ProfileTreeItem * const newRoot = new ProfileTreeItem(QString(), QString());
QHash<QStringList, ProfileTreeItem *> itemMap;
const QStringList output = QbsProfileManager::runQbsConfig(
QbsProfileManager::QbsConfigOp::Get, "profiles").split('\n', QString::SkipEmptyParts);
QbsProfileManager::QbsConfigOp::Get, "profiles").split('\n', Qt::SkipEmptyParts);
for (QString line : output) {
line = line.trimmed();
line = line.mid(QString("profiles.").length());
const int colonIndex = line.indexOf(':');
if (colonIndex == -1)
continue;
const QStringList key = line.left(colonIndex).trimmed()
.split('.', QString::SkipEmptyParts);
const QStringList key = line.left(colonIndex).trimmed().split('.', Qt::SkipEmptyParts);
const QString value = line.mid(colonIndex + 1).trimmed();
QStringList partialKey;
ProfileTreeItem *parent = newRoot;

View File

@@ -87,7 +87,7 @@ SystemPreprocessor::SystemPreprocessor(bool verbose)
= Utils::Environment::systemEnvironment().searchInPath(key);
if (!executablePath.isEmpty()) {
m_compiler = key;
m_compilerArguments = m_knownCompilers[key].split(QLatin1Char(' '), QString::SkipEmptyParts);
m_compilerArguments = m_knownCompilers[key].split(QLatin1Char(' '), Qt::SkipEmptyParts);
m_compilerArguments
<< QDir::toNativeSeparators(QLatin1String(PATH_PREPROCESSOR_CONFIG));
break;