summaryrefslogtreecommitdiffstats
path: root/filecopier.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Improve FileCopierArno2018-02-011-18/+24
| | | | | | | | | | | | | | | | This endeavor started out quite innocently: fix the connect syntax in ProgressDialog, but it quickly became much more. Vom Höxchen aufs Stöxchen :) First I thought it would be nice to add a total count to the ProgressDialog. Then I realized that I had QElapsedTimer::restart() totally wrong. It returns the ms *since the last restart*! It doesn't reset to zero, so fix that. While testing that I noticed that the download speed was quite below average, so change the buffer size and only check if we were cancelled when the timer elapsed. But that wasn't it. Eventually I dug into my firewall rules and routings to get it right.
* Add a summary to ProgressDialogArno2016-12-061-0/+12
| | | | | Show how many files we have, and display the transfer rate in Megabytes per second. Can't believe that it worked right from the start :)
* Add destination to ProgressDialogArno2016-12-061-1/+1
| | | | Elide the text if necessary. Only show the destination directory.
* Actually use Copy Files to...Arno2016-12-031-0/+66
Create a FileCopier and show a custom, non-modal progress dialog when we're copying files. Turns out that a QProgressDialog always shows when it's created. This is by design, so I had to implement one that fits my needs. Also, a buffer size of 32K (as used in MKVMerger) is way too small to max out the available bandwidth, so I set it to an (arbitrary) value of 16MB.