Diffusion Baloo 60766d57999c

[QML Monitor] Show remaining time as soon as possible

Authored by bruns on Apr 18 2020, 6:43 PM.

Description

[QML Monitor] Show remaining time as soon as possible

Summary:
The update timer was started when the content indexing started. If a large
file is encountered during the first second, the estimate could stay
at "Estimating" for a considerable amount of time.

If baloo_file has already indexed some files, an estimate is available
immediately. Replace the QElapsedTimer with a QDeadlineTimer and
initialize it to expired, so the first file triggers an estimate update.

Test Plan:
make sure baloo_has indexed enough files for an estimate (5 batches)
touch a big file -> estimate is shown immediately

Reviewers: Baloo, ngraham

Reviewed By: Baloo, ngraham

Subscribers: apol, kde-frameworks-devel

Tags: Frameworks, Baloo

Differential Revision: https://phabricator.kde.org/D28956

Details

Committed
brunsApr 25 2020, 3:27 PM
Reviewer
Baloo
Differential Revision
D28956: [QML Monitor] Show remaining time as soon as possible
Parents
R293:af260fbdd2e5: [FileContentIndexer] Fix state update and signal order
Branches
Unknown
Tags
Unknown