aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/flamegraphview.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-09-07 14:07:10 +0200
committerUlf Hermann <ulf.hermann@qt.io>2017-09-07 12:48:14 +0000
commit046e4db97ab8caec02b54786b475dd5f1fea34c8 (patch)
tree4aebf3c05b7a7b414552ef766312f2a0e065c311 /src/plugins/qmlprofiler/flamegraphview.cpp
parentc4b50488362ec72bfe053f66ae5cdf6a7417c4f1 (diff)
QmlProfiler: Remove slots declarations and Qt4 connections
The signals from QML are relayed through the respective models, so that we don't have to use Qt4 connections there. Change-Id: I864b49061c1f28acbebfc7378bfe39f96d3cae18 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/flamegraphview.cpp')
-rw-r--r--src/plugins/qmlprofiler/flamegraphview.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/qmlprofiler/flamegraphview.cpp b/src/plugins/qmlprofiler/flamegraphview.cpp
index d26d4747a31..4de7fd1601e 100644
--- a/src/plugins/qmlprofiler/flamegraphview.cpp
+++ b/src/plugins/qmlprofiler/flamegraphview.cpp
@@ -67,10 +67,9 @@ FlameGraphView::FlameGraphView(QmlProfilerModelManager *manager, QWidget *parent
layout->addWidget(m_content);
setLayout(layout);
- connect(m_content->rootObject(), SIGNAL(typeSelected(int)),
- this, SIGNAL(typeSelected(int)));
- connect(m_content->rootObject(), SIGNAL(gotoSourceLocation(QString,int,int)),
- this, SIGNAL(gotoSourceLocation(QString,int,int)));
+ connect(m_model, &FlameGraphModel::typeSelected, this, &FlameGraphView::typeSelected);
+ connect(m_model, &FlameGraphModel::gotoSourceLocation,
+ this, &FlameGraphView::gotoSourceLocation);
}
void FlameGraphView::selectByTypeId(int typeIndex)