tasks now emit floats rather than integers

Simplifies code for tasks.
This commit is contained in:
itsmattkc
2020-05-19 02:44:38 +10:00
parent b9cd83eff1
commit cb383d760b
10 changed files with 28 additions and 11 deletions
+1 -1
View File
@@ -172,7 +172,7 @@ void RenderTask::Render(TimeRangeList range_to_cache, int divider)
// Signal process
counter++;
emit ProgressChanged(qRound(100.0 * static_cast<double>(counter) / static_cast<double>(nb_frames)));
emit ProgressChanged(static_cast<double>(counter) / static_cast<double>(nb_frames));
j = download_futures.erase(j);
} else {
+2 -2
View File
@@ -135,9 +135,9 @@ signals:
*
* @param p
*
* A value (percentage) between 0 and 100.
* A progress value between 0.0 and 1.0.
*/
void ProgressChanged(int p);
void ProgressChanged(double d);
private:
QString title_;