QmlJS[|Editor|Tools]: Use Qt5-style connects

The heavy lifting was done by clazy.

Change-Id: I56550546b341d486d321329e9a90b9369d56af40
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
This commit is contained in:
Orgad Shaneh
2016-06-27 22:25:11 +03:00
committed by Orgad Shaneh
parent 090c106929
commit 7609e56ee3
32 changed files with 143 additions and 166 deletions

View File

@@ -52,15 +52,14 @@ QmlTaskManager::QmlTaskManager(QObject *parent) :
m_updatingSemantic(false)
{
// displaying results incrementally leads to flickering
// connect(&m_messageCollector, SIGNAL(resultsReadyAt(int,int)),
// SLOT(displayResults(int,int)));
connect(&m_messageCollector, SIGNAL(finished()),
SLOT(displayAllResults()));
// connect(&m_messageCollector, &QFutureWatcherBase::resultsReadyAt,
// this, &QmlTaskManager::displayResults);
connect(&m_messageCollector, &QFutureWatcherBase::finished,
this, &QmlTaskManager::displayAllResults);
m_updateDelay.setInterval(500);
m_updateDelay.setSingleShot(true);
connect(&m_updateDelay, SIGNAL(timeout()),
SLOT(updateMessagesNow()));
connect(&m_updateDelay, &QTimer::timeout, this, [this] { updateMessagesNow(); });
}
static QList<Task> convertToTasks(const QList<DiagnosticMessage> &messages, const FileName &fileName, Core::Id category)