forked from qt-creator/qt-creator
CMakePM: Do not use "edit-copy" icon for source folders
This "edit-copy" icon used for source folders is very confusing. The linked bug report has screenshots comparing Qt Creator and Xcode. Xcode just uses consistently a folder icon for all nodes that are actually folders. This change will make Qt Creator also display a folder icon for the source folders. Task-number: QTCREATORBUG-30012 Change-Id: Ibfcc4f55e779ed368edd30bfbc711bd81a4aa499 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/icon.h>
|
||||
#include <utils/fsengine/fileiconprovider.h>
|
||||
#include <utils/mimeconstants.h>
|
||||
#include <utils/mimeutils.h>
|
||||
#include <utils/qtcprocess.h>
|
||||
@@ -627,7 +628,7 @@ static FolderNode *createSourceGroupNode(const QString &sourceGroupName,
|
||||
if (!existingNode) {
|
||||
auto node = createCMakeVFolder(sourceDirectory, Node::DefaultFolderPriority + 5, p);
|
||||
node->setListInProject(false);
|
||||
node->setIcon([] { return Icon::fromTheme("edit-copy"); });
|
||||
node->setIcon([] { return FileIconProvider::icon(QFileIconProvider::Folder); });
|
||||
|
||||
existingNode = node.get();
|
||||
|
||||
|
Reference in New Issue
Block a user