QmlProfiler: Convert connections to Qt5 style

Change-Id: I1a490add706cd0cfce3f243e4ebc32a8c9a975c7
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-10-30 12:35:17 +01:00
parent 4b8a14e10f
commit b4e6591188
15 changed files with 176 additions and 158 deletions

View File

@@ -87,8 +87,8 @@ QmlProfilerTraceClient::QmlProfilerTraceClient(QmlDebugConnection *client, quint
, d(new QmlProfilerTraceClientPrivate(this, client))
{
d->requestedFeatures = features;
connect(&d->engineControl, SIGNAL(engineAboutToBeAdded(int,QString)),
this, SLOT(sendRecordingStatus(int)));
connect(&d->engineControl, &QmlEngineControlClient::engineAboutToBeAdded,
this, &QmlProfilerTraceClient::sendRecordingStatus);
}
QmlProfilerTraceClient::~QmlProfilerTraceClient()
@@ -116,9 +116,9 @@ void QmlProfilerTraceClient::clearData()
emit cleared();
}
void QmlProfilerTraceClient::sendRecordingStatus(int engineId)
void QmlProfilerTraceClient::sendRecordingStatus()
{
d->sendRecordingStatus(engineId);
d->sendRecordingStatus(-1);
}
bool QmlProfilerTraceClient::isEnabled() const