diff options
author | Andrew <forkk@forkk.net> | 2013-03-08 13:56:26 -0600 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-03-08 13:56:26 -0600 |
commit | 2d6e785e4ee8a8b837fe84f83972ec23a09564af (patch) | |
tree | 6afdac6e06f1ba8ae5c29f62b5a4a9bc1b696b12 /libmultimc/src/task.cpp | |
parent | 69040f923b0344de214d6f1fc4553d223df7d2d6 (diff) | |
download | MultiMC-2d6e785e4ee8a8b837fe84f83972ec23a09564af.tar MultiMC-2d6e785e4ee8a8b837fe84f83972ec23a09564af.tar.gz MultiMC-2d6e785e4ee8a8b837fe84f83972ec23a09564af.tar.lz MultiMC-2d6e785e4ee8a8b837fe84f83972ec23a09564af.tar.xz MultiMC-2d6e785e4ee8a8b837fe84f83972ec23a09564af.zip |
Implemented version lists.
Diffstat (limited to 'libmultimc/src/task.cpp')
-rw-r--r-- | libmultimc/src/task.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libmultimc/src/task.cpp b/libmultimc/src/task.cpp index d581a1dd..3e30827b 100644 --- a/libmultimc/src/task.cpp +++ b/libmultimc/src/task.cpp @@ -37,6 +37,11 @@ int Task::getProgress() const return progress; } +void Task::calcProgress(int parts, int whole) +{ + setProgress((int)((((float)parts) / ((float)whole))*100)); // Not sure if C++ or LISP... +} + void Task::setProgress(int progress) { this->progress = progress; |