diff options
author | Lorenz Haas <lykurg@gmail.com> | 2015-06-04 17:34:15 +0200 |
---|---|---|
committer | David Schulz <david.schulz@theqtcompany.com> | 2015-06-15 13:45:04 +0000 |
commit | 437c4735d1f40f827f86e17102e5cf24f74717c4 (patch) | |
tree | e6d5299a1b7fba63ef190515e1acbbee59f50d52 | |
parent | 2ce11e0b5a394d10e8db3e41d0fff9d0a5946e1f (diff) | |
download | qt-creator-437c4735d1f40f827f86e17102e5cf24f74717c4.tar.gz |
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>
-rw-r--r-- | src/plugins/beautifier/clangformat/clangformat.cpp | 2 | ||||
-rw-r--r-- | src/plugins/beautifier/clangformat/clangformatconstants.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/beautifier/clangformat/clangformat.cpp b/src/plugins/beautifier/clangformat/clangformat.cpp index fb04d0756e..e277c86a31 100644 --- a/src/plugins/beautifier/clangformat/clangformat.cpp +++ b/src/plugins/beautifier/clangformat/clangformat.cpp @@ -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 diff --git a/src/plugins/beautifier/clangformat/clangformatconstants.h b/src/plugins/beautifier/clangformat/clangformatconstants.h index a1c1f382f6..fb50e6bc00 100644 --- a/src/plugins/beautifier/clangformat/clangformatconstants.h +++ b/src/plugins/beautifier/clangformat/clangformatconstants.h @@ -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"; |