forked from qt-creator/qt-creator
Beautifier: Add DISPLAY_NAME constant to ClangFormat
All ohter tools have this constant thus ClangFormat should have it too. Change-Id: I23b032e86291f2490d56ff937d70510bf2f41377 Reviewed-by: Jochen Becher <jochen_becher@gmx.de> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
committed by
David Schulz
parent
2ce11e0b5a
commit
437c4735d1
@@ -72,7 +72,7 @@ ClangFormat::~ClangFormat()
|
|||||||
bool ClangFormat::initialize()
|
bool ClangFormat::initialize()
|
||||||
{
|
{
|
||||||
Core::ActionContainer *menu = Core::ActionManager::createMenu(Constants::ClangFormat::MENU_ID);
|
Core::ActionContainer *menu = Core::ActionManager::createMenu(Constants::ClangFormat::MENU_ID);
|
||||||
menu->menu()->setTitle(QLatin1String("ClangFormat"));
|
menu->menu()->setTitle(QLatin1String(Constants::ClangFormat::DISPLAY_NAME));
|
||||||
|
|
||||||
m_formatFile = new QAction(BeautifierPlugin::msgFormatCurrentFile(), this);
|
m_formatFile = new QAction(BeautifierPlugin::msgFormatCurrentFile(), this);
|
||||||
Core::Command *cmd
|
Core::Command *cmd
|
||||||
|
@@ -35,6 +35,7 @@ namespace Beautifier {
|
|||||||
namespace Constants {
|
namespace Constants {
|
||||||
namespace ClangFormat {
|
namespace ClangFormat {
|
||||||
|
|
||||||
|
const char DISPLAY_NAME[] = "ClangFormat";
|
||||||
const char ACTION_FORMATFILE[] = "ClangFormat.FormatFile";
|
const char ACTION_FORMATFILE[] = "ClangFormat.FormatFile";
|
||||||
const char ACTION_FORMATSELECTED[] = "ClangFormat.FormatSelectedText";
|
const char ACTION_FORMATSELECTED[] = "ClangFormat.FormatSelectedText";
|
||||||
const char MENU_ID[] = "ClangFormat.Menu";
|
const char MENU_ID[] = "ClangFormat.Menu";
|
||||||
|
Reference in New Issue
Block a user