forked from qt-creator/qt-creator
Collect Qt Creator debug menu items into common submenu
instead of spreading them over the place. - rename "Logger..." to "Show Logs..." - create "Tools > Debug Qt Creator" menu and put "Show Logs", "Inspect Language Clients" and "Inspect C++ Code Model" there - add missing ellipsis That gets rid of the otherwise not useful "Language Client" submenu, and creates a nicer place for the "Show Logs" item. Change-Id: I2588b4c93327669579979dfbfce37005ada29dab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -63,16 +63,12 @@ bool LanguageClientPlugin::initialize(const QStringList & /*arguments*/, QString
|
||||
[]() { return new StdIOSettings; }});
|
||||
|
||||
//register actions
|
||||
ActionContainer *toolsContainer
|
||||
= ActionManager::actionContainer(Core::Constants::M_TOOLS);
|
||||
toolsContainer->insertGroup(Core::Constants::G_TOOLS_OPTIONS, Constants::G_TOOLS_LANGUAGECLIENT);
|
||||
ActionContainer *container = ActionManager::createMenu("Language Client");
|
||||
container->menu()->setTitle(tr("&Language Client"));
|
||||
toolsContainer->addMenu(container, Constants::G_TOOLS_LANGUAGECLIENT);
|
||||
ActionContainer *toolsDebugContainer = ActionManager::actionContainer(
|
||||
Core::Constants::M_TOOLS_DEBUG);
|
||||
|
||||
auto inspectAction = new QAction(tr("Inspect Language Clients"), this);
|
||||
auto inspectAction = new QAction(tr("Inspect Language Clients..."), this);
|
||||
connect(inspectAction, &QAction::triggered, this, &LanguageClientManager::showInspector);
|
||||
container->addAction(
|
||||
toolsDebugContainer->addAction(
|
||||
ActionManager::registerAction(inspectAction, "LanguageClient.InspectLanguageClients"));
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user