forked from qt-creator/qt-creator
Debugger: Tighten Perspective interface
Pass id in constructor, so it can be const. Change-Id: Id33fe19c4416109af8aa05a3ed0a09918eeb5cdf Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -269,7 +269,7 @@ ClangTidyClazyTool::ClangTidyClazyTool()
|
||||
const QString toolTip = tr("Clang-Tidy and Clazy use a customized Clang executable from the "
|
||||
"Clang project to search for errors and warnings.");
|
||||
|
||||
auto perspective = new Perspective(tr("Clang-Tidy and Clazy"));
|
||||
auto perspective = new Perspective(ClangTidyClazyPerspectiveId, tr("Clang-Tidy and Clazy"));
|
||||
perspective->addWindow(m_diagnosticView, Perspective::SplitVertical, nullptr);
|
||||
|
||||
action = new QAction(tr("Clang-Tidy and Clazy..."), this);
|
||||
@@ -289,7 +289,7 @@ ClangTidyClazyTool::ClangTidyClazyTool()
|
||||
perspective->addToolbarWidget(m_filterLineEdit);
|
||||
perspective->addToolbarWidget(m_applyFixitsButton);
|
||||
|
||||
Debugger::registerPerspective(ClangTidyClazyPerspectiveId, perspective);
|
||||
Debugger::registerPerspective(perspective);
|
||||
|
||||
updateRunActions();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user