AddJob: Count number of entries to be added
ClosedPublic

Authored by rthomsen on Aug 10 2016, 6:03 PM.

Details

Summary

Count the total number of entries to be added using QDirIterator. We can then use the number to display a correct string in statusbar when adding files. Also pass the number to AddFiles() so interfaces/plugins can use it for showing progress in %.

Test Plan

Add a directory with many subfolders/files. The correct number of entries being added should now be displayed in statusbar.

Diff Detail

Repository
R36 Ark
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
rthomsen updated this revision to Diff 5813.Aug 10 2016, 6:03 PM
rthomsen retitled this revision from to AddJob: Count number of entries to be added.
rthomsen updated this object.
rthomsen edited the test plan for this revision. (Show Details)
rthomsen added a reviewer: elvisangelaccio.
rthomsen set the repository for this revision to R36 Ark.
rthomsen added a project: Ark.
Restricted Application added a subscriber: kde-utils-devel. · View Herald TranscriptAug 10 2016, 6:03 PM
elvisangelaccio accepted this revision.Aug 11 2016, 12:59 PM
elvisangelaccio edited edge metadata.
This revision is now accepted and ready to land.Aug 11 2016, 12:59 PM
This revision was automatically updated to reflect the committed changes.