D28956: [QML Monitor] Show remaining time as soon as possible

Stefan BrĂ¼ns noreply at phabricator.kde.org
Sat Apr 18 19:48:34 BST 2020


bruns created this revision.
bruns added reviewers: Baloo, ngraham.
Herald added projects: Frameworks, Baloo.
Herald added a subscriber: kde-frameworks-devel.
bruns requested review of this revision.

REVISION 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

REPOSITORY
  R293 Baloo

BRANCH
  submit

REVISION DETAIL
  https://phabricator.kde.org/D28956

AFFECTED FILES
  src/qml/experimental/monitor.cpp
  src/qml/experimental/monitor.h

To: bruns, #baloo, ngraham
Cc: kde-frameworks-devel, hurikhan77, lots0logs, LeGast00n, cblack, fbampaloukas, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200418/2543d910/attachment.html>


More information about the Kde-frameworks-devel mailing list