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:
@@ -61,8 +61,7 @@ QmlProfilerViewManager::QmlProfilerViewManager(QObject *parent,
|
||||
|
||||
new QmlProfilerStateWidget(m_profilerState, m_profilerModelManager, m_traceView);
|
||||
|
||||
m_perspective = new Utils::Perspective;
|
||||
m_perspective->setName(tr("QML Profiler"));
|
||||
m_perspective = new Utils::Perspective(Constants::QmlProfilerPerspectiveId, tr("QML Profiler"));
|
||||
|
||||
auto prepareEventsView = [this](QmlProfilerEventsView *view) {
|
||||
connect(view, &QmlProfilerEventsView::typeSelected,
|
||||
@@ -95,7 +94,7 @@ QmlProfilerViewManager::QmlProfilerViewManager(QObject *parent,
|
||||
m_perspective->addWindow(m_statisticsView, Perspective::AddToTab, anchor);
|
||||
m_perspective->addWindow(anchor, Perspective::Raise, nullptr);
|
||||
|
||||
Debugger::registerPerspective(Constants::QmlProfilerPerspectiveId, m_perspective);
|
||||
Debugger::registerPerspective(m_perspective);
|
||||
}
|
||||
|
||||
QmlProfilerViewManager::~QmlProfilerViewManager()
|
||||
|
||||
Reference in New Issue
Block a user