diff --git a/src/file/filecontentindexer.h b/src/file/filecontentindexer.h --- a/src/file/filecontentindexer.h +++ b/src/file/filecontentindexer.h @@ -61,8 +61,8 @@ Q_SIGNALS: Q_SCRIPTABLE void startedIndexingFile(const QString& filePath); Q_SCRIPTABLE void finishedIndexingFile(const QString& filePath); + Q_SCRIPTABLE void committedBatch(); - void done(); void newBatchTime(uint time, uint batchSize); private Q_SLOTS: diff --git a/src/file/filecontentindexer.cpp b/src/file/filecontentindexer.cpp --- a/src/file/filecontentindexer.cpp +++ b/src/file/filecontentindexer.cpp @@ -111,7 +111,7 @@ Qt::QueuedConnection); } } - QMetaObject::invokeMethod(this, &FileContentIndexer::done, Qt::QueuedConnection); + QMetaObject::invokeMethod(this, &FileContentIndexer::committedBatch, Qt::QueuedConnection); } void FileContentIndexer::slotStartedIndexingFile(const QString& filePath) diff --git a/src/file/fileindexscheduler.cpp b/src/file/fileindexscheduler.cpp --- a/src/file/fileindexscheduler.cpp +++ b/src/file/fileindexscheduler.cpp @@ -66,7 +66,7 @@ m_contentIndexer = new FileContentIndexer(m_config, &m_provider, m_indexFinishedFiles, this); m_contentIndexer->setAutoDelete(false); - connect(m_contentIndexer, &FileContentIndexer::done, this, + connect(m_contentIndexer, &FileContentIndexer::committedBatch, this, &FileIndexScheduler::runnerFinished); connect(m_contentIndexer, &FileContentIndexer::newBatchTime, &m_timeEstimator, &TimeEstimator::handleNewBatchTime);