forked from qt-creator/qt-creator
CMakePM: Use the cmake logo for actions
Change-Id: Id19c8405e44218ad62da4d60b3d6eb71637033ad Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
@@ -27,6 +27,7 @@
|
||||
#include <projectexplorer/buildmanager.h>
|
||||
#include <projectexplorer/projectexplorer.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <projectexplorer/projectexplorericons.h>
|
||||
#include <projectexplorer/projectmanager.h>
|
||||
#include <projectexplorer/projecttree.h>
|
||||
#include <projectexplorer/runcontrol.h>
|
||||
@@ -46,14 +47,19 @@ using namespace Utils;
|
||||
namespace CMakeProjectManager::Internal {
|
||||
|
||||
CMakeManager::CMakeManager()
|
||||
: m_runCMakeAction(new QAction(QIcon(), Tr::tr("Run CMake"), this))
|
||||
: m_runCMakeAction(
|
||||
new QAction(ProjectExplorer::Icons::CMAKE_LOGO.icon(), Tr::tr("Run CMake"), this))
|
||||
, m_clearCMakeCacheAction(new QAction(QIcon(), Tr::tr("Clear CMake Configuration"), this))
|
||||
, m_runCMakeActionContextMenu(new QAction(QIcon(), Tr::tr("Run CMake"), this))
|
||||
, m_runCMakeActionContextMenu(
|
||||
new QAction(ProjectExplorer::Icons::CMAKE_LOGO.icon(), Tr::tr("Run CMake"), this))
|
||||
, m_rescanProjectAction(new QAction(QIcon(), Tr::tr("Rescan Project"), this))
|
||||
, m_reloadCMakePresetsAction(
|
||||
new QAction(Utils::Icons::RELOAD.icon(), Tr::tr("Reload CMake Presets"), this))
|
||||
, m_cmakeProfilerAction(new QAction(QIcon(), Tr::tr("CMake Profiler"), this))
|
||||
, m_cmakeDebuggerAction(new QAction(QIcon(), Tr::tr("Start CMake Debugging"), this))
|
||||
, m_cmakeProfilerAction(
|
||||
new QAction(ProjectExplorer::Icons::CMAKE_LOGO.icon(), Tr::tr("CMake Profiler"), this))
|
||||
, m_cmakeDebuggerAction(new QAction(ProjectExplorer::Icons::CMAKE_LOGO.icon(),
|
||||
Tr::tr("Start CMake Debugging"),
|
||||
this))
|
||||
{
|
||||
Core::ActionContainer *mbuild =
|
||||
Core::ActionManager::actionContainer(ProjectExplorer::Constants::M_BUILDPROJECT);
|
||||
|
Reference in New Issue
Block a user