forked from qt-creator/qt-creator
QmlProfiler: Convert connections to Qt5 style
Change-Id: I1a490add706cd0cfce3f243e4ebc32a8c9a975c7 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user