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:
@@ -556,7 +556,7 @@ MemcheckTool::MemcheckTool()
|
||||
m_errorView->setObjectName(QLatin1String("Valgrind.MemcheckTool.ErrorView"));
|
||||
m_errorView->setWindowTitle(tr("Memory Issues"));
|
||||
|
||||
auto perspective = new Perspective(tr("Memcheck"));
|
||||
auto perspective = new Perspective(MemcheckPerspectiveId, tr("Memcheck"));
|
||||
perspective->addWindow(m_errorView, Perspective::SplitVertical, nullptr);
|
||||
|
||||
connect(ProjectExplorerPlugin::instance(), &ProjectExplorerPlugin::updateRunActions,
|
||||
@@ -690,7 +690,7 @@ MemcheckTool::MemcheckTool()
|
||||
perspective->addToolbarAction(m_goBack);
|
||||
perspective->addToolbarAction(m_goNext);
|
||||
perspective->addToolbarWidget(filterButton);
|
||||
Debugger::registerPerspective(MemcheckPerspectiveId, perspective);
|
||||
Debugger::registerPerspective(perspective);
|
||||
|
||||
updateFromSettings();
|
||||
maybeActiveRunConfigurationChanged();
|
||||
|
||||
Reference in New Issue
Block a user