forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user