diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-10-30 12:35:17 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-11-02 10:12:42 +0000 |
commit | b4e6591188160a29ba87580cbf689051b4ee9aaa (patch) | |
tree | 28da4f9b0f876d3cbb59618c6feda58e48138007 /src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp | |
parent | 4b8a14e10fbb68167aac30e40bbeccf02336ba67 (diff) | |
download | qt-creator-b4e6591188160a29ba87580cbf689051b4ee9aaa.tar.gz |
QmlProfiler: Convert connections to Qt5 style
Change-Id: I1a490add706cd0cfce3f243e4ebc32a8c9a975c7
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp b/src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp index 2730d494fd..bd9c2a2a4b 100644 --- a/src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp @@ -93,16 +93,18 @@ void QmlProfilerViewManager::createViews() this, d->profilerModelManager); d->traceView->setWindowTitle(tr("Timeline")); - connect(d->traceView, SIGNAL(gotoSourceLocation(QString,int,int)), - this, SIGNAL(gotoSourceLocation(QString,int,int))); + connect(d->traceView, &QmlProfilerTraceView::gotoSourceLocation, + this, &QmlProfilerViewManager::gotoSourceLocation); d->eventsView = new QmlProfilerEventsWidget(mw, d->profilerTool, this, d->profilerModelManager); d->eventsView->setWindowTitle(tr("Events")); - connect(d->eventsView, SIGNAL(gotoSourceLocation(QString,int,int)), this, - SIGNAL(gotoSourceLocation(QString,int,int))); - connect(d->eventsView, SIGNAL(typeSelected(int)), d->traceView, SLOT(selectByTypeId(int))); - connect(d->traceView, SIGNAL(typeSelected(int)), d->eventsView, SLOT(selectByTypeId(int))); + connect(d->eventsView, &QmlProfilerEventsWidget::gotoSourceLocation, + this, &QmlProfilerViewManager::gotoSourceLocation); + connect(d->eventsView, &QmlProfilerEventsWidget::typeSelected, + d->traceView, &QmlProfilerTraceView::selectByTypeId); + connect(d->traceView, &QmlProfilerTraceView::typeSelected, + d->eventsView, &QmlProfilerEventsWidget::selectByTypeId); connect(d->profilerModelManager, &QmlProfilerModelManager::visibleFeaturesChanged, d->eventsView, &QmlProfilerEventsWidget::onVisibleFeaturesChanged); |