From b7738aaf294b4d6080b098d618a2aa72d72dfcfd Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 10 Aug 2020 14:41:39 +0200 Subject: [PATCH] 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 --- src/plugins/modeleditor/componentviewcontroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/modeleditor/componentviewcontroller.cpp b/src/plugins/modeleditor/componentviewcontroller.cpp index bb1d3c387fa..e35f2c1cb8c 100644 --- a/src/plugins/modeleditor/componentviewcontroller.cpp +++ b/src/plugins/modeleditor/componentviewcontroller.cpp @@ -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);