Move all the things (YES. Move them.)
Also, implemented some basic modlist logic, to be wired up.
This commit is contained in:
parent
77e8066542
commit
253067c782
184 changed files with 414 additions and 345 deletions
13
logic/BaseUpdate.cpp
Normal file
13
logic/BaseUpdate.cpp
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include "BaseUpdate.h"
|
||||
|
||||
BaseUpdate::BaseUpdate ( BaseInstance* inst, QObject* parent ) : Task ( parent )
|
||||
{
|
||||
m_inst = inst;
|
||||
}
|
||||
|
||||
void BaseUpdate::updateDownloadProgress(qint64 current, qint64 total)
|
||||
{
|
||||
// The progress on the current file is current / total
|
||||
float currentDLProgress = (float) current / (float) total;
|
||||
setProgress((int)(currentDLProgress * 100)); // convert to percentage
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue