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

Fixes a designer integration issue.
Task-Nr: 258315
This commit is contained in:
dt
2009-07-27 12:20:16 +02:00
parent dd408d10e6
commit f90e37152a

View File

@@ -981,10 +981,14 @@ void CMakeCbpParser::parseUnit()
if (isEndElement()) {
if (!fileName.endsWith(".rule") && !m_processedUnits.contains(fileName)) {
// Now check whether we found a virtual element beneath
if (m_parsingCmakeUnit)
m_fileList.append( new ProjectExplorer::FileNode(fileName, ProjectExplorer::SourceType, false));
else
if (m_parsingCmakeUnit) {
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);
}
return;