mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-05 04:46:57 +03:00
Implemented version lists.
This commit is contained in:
parent
69040f923b
commit
2d6e785e4e
16 changed files with 955 additions and 28 deletions
|
|
@ -34,6 +34,15 @@ public:
|
|||
QString getStatus() const;
|
||||
int getProgress() const;
|
||||
|
||||
/*!
|
||||
* \brief Calculates and sets the task's progress based on the number of parts completed out of the total number to complete.
|
||||
* This is essentially just shorthand for setProgress((parts / whole) * 100);
|
||||
* \param parts The parts out of the whole completed. This parameter should
|
||||
* be less than whole. If it is greater than whole, progress is set to 100.
|
||||
* \param whole The total number of things that need to be completed.
|
||||
*/
|
||||
void calcProgress(int parts, int whole);
|
||||
|
||||
public slots:
|
||||
void setStatus(const QString& status);
|
||||
void setProgress(int progress);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue