forked from qt-creator/qt-creator
QmakeProjectManager: Also consider the "Forms" virtual folder
... for the "Hide Sources and Headers" setting. A .ui file usually corresponds to a source (and possibly a header) file, and the user very likely wants the option applied to it as well. Fixes: QTCREATORBUG-27482 Change-Id: I8652d8a9e7686239bcaef8f90d070c794fd5f993 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -179,7 +179,8 @@ static void createTree(QmakeBuildSystem *buildSystem,
|
|||||||
vfolder->setIcon(fileTypes.at(i).icon);
|
vfolder->setIcon(fileTypes.at(i).icon);
|
||||||
vfolder->setDisplayName(fileTypes.at(i).typeName);
|
vfolder->setDisplayName(fileTypes.at(i).typeName);
|
||||||
vfolder->setAddFileFilter(fileTypes.at(i).addFileFilter);
|
vfolder->setAddFileFilter(fileTypes.at(i).addFileFilter);
|
||||||
vfolder->setIsSourcesOrHeaders(type == FileType::Source || type == FileType::Header);
|
vfolder->setIsSourcesOrHeaders(type == FileType::Source || type == FileType::Header
|
||||||
|
|| type == FileType::Form);
|
||||||
|
|
||||||
if (type == FileType::Resource) {
|
if (type == FileType::Resource) {
|
||||||
for (const auto &file : newFilePaths) {
|
for (const auto &file : newFilePaths) {
|
||||||
|
Reference in New Issue
Block a user