Commit f90e3715 authored by dt's avatar dt
Browse files

Give the correct file type to .qrc files for cmake projects

Fixes a designer integration issue.
Task-Nr: 258315
parent dd408d10
...@@ -981,10 +981,14 @@ void CMakeCbpParser::parseUnit() ...@@ -981,10 +981,14 @@ void CMakeCbpParser::parseUnit()
if (isEndElement()) { if (isEndElement()) {
if (!fileName.endsWith(".rule") && !m_processedUnits.contains(fileName)) { if (!fileName.endsWith(".rule") && !m_processedUnits.contains(fileName)) {
// Now check whether we found a virtual element beneath // Now check whether we found a virtual element beneath
if (m_parsingCmakeUnit) if (m_parsingCmakeUnit) {
m_fileList.append( new ProjectExplorer::FileNode(fileName, ProjectExplorer::SourceType, false));
else
m_cmakeFileList.append( new ProjectExplorer::FileNode(fileName, ProjectExplorer::ProjectFileType, false)); m_cmakeFileList.append( new ProjectExplorer::FileNode(fileName, ProjectExplorer::ProjectFileType, false));
} else {
if (fileName.endsWith(".qrc"))
m_fileList.append( new ProjectExplorer::FileNode(fileName, ProjectExplorer::ResourceType, false));
else
m_fileList.append( new ProjectExplorer::FileNode(fileName, ProjectExplorer::SourceType, false));
}
m_processedUnits.insert(fileName); m_processedUnits.insert(fileName);
} }
return; return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment