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:
Lorenz Haas
2015-06-04 17:34:15 +02:00
committed by David Schulz
parent 2ce11e0b5a
commit 437c4735d1
2 changed files with 2 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ ClangFormat::~ClangFormat()
bool ClangFormat::initialize()
{
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);
Core::Command *cmd

View File

@@ -35,6 +35,7 @@ namespace Beautifier {
namespace Constants {
namespace ClangFormat {
const char DISPLAY_NAME[] = "ClangFormat";
const char ACTION_FORMATFILE[] = "ClangFormat.FormatFile";
const char ACTION_FORMATSELECTED[] = "ClangFormat.FormatSelectedText";
const char MENU_ID[] = "ClangFormat.Menu";