forked from qt-creator/qt-creator
CMake: Do not treat "Source Files" source file group special
The idea was to make the project tree a bit simpler by removing the auto-generated "Source Files" group that CMake adds. But this left out "Header Files", which is also auto-generated by CMake and might surprise users. So let's remove this special case again. Change-Id: If87bf9f89e1ff0be855c2e9b915d64d77d51d2be Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -362,7 +362,7 @@ QVector<FolderNode *> addSourceGroups(ProjectNode *targetRoot,
|
||||
targetRoot); // Only one source group, so do not bother to display any:-)
|
||||
} else {
|
||||
for (const QString &sg : td.sourceGroups) {
|
||||
if (sg.isEmpty() || sg == "Source Files") {
|
||||
if (sg.isEmpty()) {
|
||||
sourceGroupNodes.append(targetRoot);
|
||||
} else {
|
||||
auto sgNode = createCMakeVFolder(sourceDirectory,
|
||||
|
||||
Reference in New Issue
Block a user