diff --git a/src/file/filecontentindexer.h b/src/file/filecontentindexer.h --- a/src/file/filecontentindexer.h +++ b/src/file/filecontentindexer.h @@ -61,9 +61,9 @@ Q_SIGNALS: Q_SCRIPTABLE void startedIndexingFile(const QString& filePath); Q_SCRIPTABLE void finishedIndexingFile(const QString& filePath); + Q_SCRIPTABLE void committedBatch(uint time, uint batchSize); void done(); - void newBatchTime(uint time, uint batchSize); private Q_SLOTS: void monitorClosed(const QString& service); diff --git a/src/file/filecontentindexer.cpp b/src/file/filecontentindexer.cpp --- a/src/file/filecontentindexer.cpp +++ b/src/file/filecontentindexer.cpp @@ -107,7 +107,7 @@ } else { auto elapsed = timer.elapsed(); QMetaObject::invokeMethod(this, - [this, elapsed, batchSize] { newBatchTime(elapsed, batchSize); }, + [this, elapsed, batchSize] { committedBatch(elapsed, batchSize); }, Qt::QueuedConnection); } } diff --git a/src/file/fileindexscheduler.cpp b/src/file/fileindexscheduler.cpp --- a/src/file/fileindexscheduler.cpp +++ b/src/file/fileindexscheduler.cpp @@ -68,7 +68,7 @@ m_contentIndexer->setAutoDelete(false); connect(m_contentIndexer, &FileContentIndexer::done, this, &FileIndexScheduler::runnerFinished); - connect(m_contentIndexer, &FileContentIndexer::newBatchTime, &m_timeEstimator, + connect(m_contentIndexer, &FileContentIndexer::committedBatch, &m_timeEstimator, &TimeEstimator::handleNewBatchTime); QDBusConnection::sessionBus().registerObject(QStringLiteral("/scheduler"),