forked from qt-creator/qt-creator
QmlProfiler: Clean up view initialization
As there are only two events views we can handle them separately rather than keeping them in a list. Also, the object names and dock IDs should match. This breaks the settings, but that shouldn't be a big problem. Change-Id: Iac46fd7976d1e747fef4b40cead9a54e830d188f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -43,10 +43,8 @@ FlameGraphView::FlameGraphView(QmlProfilerModelManager *manager, QWidget *parent
|
||||
QmlProfilerEventsView(parent), m_content(new QQuickWidget(this)),
|
||||
m_model(new FlameGraphModel(manager, this))
|
||||
{
|
||||
setWindowTitle(QStringLiteral("Flame Graph"));
|
||||
|
||||
// We cannot change this without breaking the settings.
|
||||
setObjectName(QStringLiteral("QmlProfilerFlamegraph"));
|
||||
setObjectName("QmlProfiler.FlameGraph.Dock");
|
||||
setWindowTitle(tr("Flame Graph"));
|
||||
|
||||
qmlRegisterType<FlameGraph::FlameGraph>("FlameGraph", 1, 0, "FlameGraph");
|
||||
qmlRegisterUncreatableType<FlameGraphModel>("QmlProfilerFlameGraphModel", 1, 0,
|
||||
|
||||
Reference in New Issue
Block a user