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

@@ -143,9 +143,9 @@ void QmlProfilerDetailsRewriter::requestDetailsForLocation(int requestId,
if (!d->m_pendingDocs.contains(localFile)) {
if (d->m_pendingDocs.isEmpty())
connect(QmlJS::ModelManagerInterface::instance(),
SIGNAL(documentUpdated(QmlJS::Document::Ptr)),
&QmlJS::ModelManagerInterface::documentUpdated,
this,
SLOT(documentReady(QmlJS::Document::Ptr)));
&QmlProfilerDetailsRewriter::documentReady);
d->m_pendingDocs << localFile;
}
@@ -207,9 +207,9 @@ void QmlProfilerDetailsRewriter::documentReady(QmlJS::Document::Ptr doc)
if (d->m_pendingDocs.isEmpty()) {
disconnect(QmlJS::ModelManagerInterface::instance(),
SIGNAL(documentUpdated(QmlJS::Document::Ptr)),
&QmlJS::ModelManagerInterface::documentUpdated,
this,
SLOT(documentReady(QmlJS::Document::Ptr)));
&QmlProfilerDetailsRewriter::documentReady);
emit eventDetailsChanged();
d->m_filesCache.clear();
}