A widget for showing the progress of loading.
More...
#include <loadprogress.h>
|
void | cancel () |
| Raised when the cancel button is pressed.
|
|
A widget for showing the progress of loading.
Contains:
- A cancel button.
- A label showing to describe the current operation.
- An overall progress bar.
- A progress bar for the current item.
The current item progress range
Enumerator |
---|
CurrentItemMax |
Maximum value for the current progress item.
Considered to be 100% done when the current progress is at this value.
|
LoadProgress::LoadProgress |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Constructor.
- Parameters
-
parent | The parent for this widget. |
void LoadProgress::itemName |
( |
const QString & |
name | ) |
|
|
slot |
Sets the name of the current item or operation.
- Parameters
-
name | The item name to display. |
void LoadProgress::itemProgress |
( |
int |
current | ) |
|
|
slot |
Sets the current item progress [0, CurrentItemMax
].
- Parameters
-
current | The current progress, expected in the range [0, CurrentItemMax ]. |
void LoadProgress::loadComplete |
( |
int |
overallCount | ) |
|
|
slot |
To be invoked on completion.
This closes and deletes this dialog.
- Parameters
-
overallCount | The overall number of items loaded. Ignored. |
void LoadProgress::overallProgress |
( |
int |
current, |
|
|
int |
total |
|
) |
| |
|
slot |
Updates the overall item progress bar [0, total
].
- Parameters
-
current | The current progress in the range [0, total ]. |
total | The total target progress. |
The documentation for this class was generated from the following file: