forked from qt-creator/qt-creator
Clang: Tests: Fix setFuture/connect order for QFutureWatacher
Change-Id: Iab177c17049451cb41ec8df16f9d47006b873e6a Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -34,9 +34,9 @@ namespace ClangBackEnd {
|
|||||||
ChunksReportedMonitor::ChunksReportedMonitor(const QFuture<TextEditor::HighlightingResult> &future)
|
ChunksReportedMonitor::ChunksReportedMonitor(const QFuture<TextEditor::HighlightingResult> &future)
|
||||||
: m_future(future)
|
: m_future(future)
|
||||||
{
|
{
|
||||||
m_futureWatcher.setFuture(future);
|
|
||||||
connect(&m_futureWatcher, &QFutureWatcher<TextEditor::HighlightingResult>::resultsReadyAt,
|
connect(&m_futureWatcher, &QFutureWatcher<TextEditor::HighlightingResult>::resultsReadyAt,
|
||||||
this, &ChunksReportedMonitor::onResultsReadyAt);
|
this, &ChunksReportedMonitor::onResultsReadyAt);
|
||||||
|
m_futureWatcher.setFuture(future);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ChunksReportedMonitor::waitUntilFinished(int timeoutInMs)
|
bool ChunksReportedMonitor::waitUntilFinished(int timeoutInMs)
|
||||||
|
Reference in New Issue
Block a user