CMakePM: Use the cmake logo for actions

Change-Id: Id19c8405e44218ad62da4d60b3d6eb71637033ad
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Cristian Adam
2023-10-04 13:07:23 +02:00
parent 0aa8322206
commit 4875b25e31
2 changed files with 12 additions and 4 deletions

View File

@@ -17,6 +17,7 @@
#include <coreplugin/idocument.h>
#include <projectexplorer/project.h>
#include <projectexplorer/projectexplorericons.h>
#include <projectexplorer/projectnodes.h>
#include <projectexplorer/projecttree.h>
@@ -92,6 +93,7 @@ public:
ActionContainer *menu = ActionManager::createMenu(Constants::CMAKEFORMATTER_MENU_ID);
menu->menu()->setTitle(Tr::tr("CMakeFormatter"));
menu->menu()->setIcon(ProjectExplorer::Icons::CMAKE_LOGO.icon());
menu->setOnAllDisabledBehavior(ActionContainer::Show);
ActionManager::actionContainer(Core::Constants::M_TOOLS)->addMenu(menu);