CMakeProjectManager: Use the "gear" as project root item icon overlay

Replace and remove the pixel accumulation called "projectexplorer.png".

Fixes: QTCREATORBUG-25397
Change-Id: Idbf5e634bbe98d6eb9cc2cbaafd7f631cac18a83
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Alessandro Portale
2021-02-26 17:31:00 +01:00
parent a0f12f5b98
commit 9fbd1c26b0
4 changed files with 4 additions and 4 deletions

View File

@@ -31,6 +31,7 @@
#include <android/androidconstants.h>
#include <coreplugin/fileiconprovider.h>
#include <ios/iosconstants.h>
#include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/target.h>
#include <utils/qtcassert.h>
@@ -71,7 +72,9 @@ CMakeProjectNode::CMakeProjectNode(const Utils::FilePath &directory) :
ProjectExplorer::ProjectNode(directory)
{
setPriority(Node::DefaultProjectPriority + 1000);
setIcon(QIcon(":/projectexplorer/images/projectexplorer.png")); // TODO: Use proper icon!
static const QIcon productIcon = Core::FileIconProvider::directoryIcon(
ProjectExplorer::Constants::FILEOVERLAY_PRODUCT);
setIcon(productIcon);
setListInProject(false);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 782 B

View File

@@ -8,7 +8,6 @@
<file>images/mode_project@2x.png</file>
<file>images/mode_project_mask.png</file>
<file>images/mode_project_mask@2x.png</file>
<file>images/projectexplorer.png</file>
<file>images/buildhammerhandle.png</file>
<file>images/buildhammerhandle@2x.png</file>
<file>images/buildhammerhead.png</file>

View File

@@ -334,8 +334,6 @@ void IconLister::addProjectExplorerIcons()
{QIcon(":/projectexplorer/images/category_buildrun.png"), "category_buildrun.png", prefix,
""},
{QIcon(":/projectexplorer/images/projectexplorer.png"), "projectexplorer.png", prefix,
""},
{QIcon(":/projectexplorer/images/session.png"), "session.png", prefix,
""},
{QIcon(":/projectexplorer/images/BuildSettings.png"), "BuildSettings.png", prefix,