ModelEditor: Make compilable with Qt 6

QMulti{Hash,}::insertMulti() is the same as QMultiHash::insert(), but
will be gone in Qt 6.

Task-number: QTCREATORBUG-24098
Change-Id: I4673a338e26a52e913e4fd17cb931e4de041227d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2020-08-10 14:41:39 +02:00
parent bf00fd93a2
commit b7738aaf29

View File

@@ -240,7 +240,7 @@ void UpdateIncludeDependenciesVisitor::collectElementPaths(const ProjectExplorer
QFileInfo fileInfo = fileNode->filePath().toFileInfo();
QString nodePath = fileInfo.path();
QStringList elementsPath = qmt::NameController::buildElementsPath(nodePath, false);
filePathsMap->insertMulti(elementName, Node(fileNode->filePath().toString(), elementsPath));
filePathsMap->insert(elementName, Node(fileNode->filePath().toString(), elementsPath));
}
foreach (const ProjectExplorer::FolderNode *subNode, folderNode->folderNodes())
collectElementPaths(subNode, filePathsMap);