Dialog displaying a progress bar and cancel button.
Public Slots | |
void | update (int cur, int total) |
void | cancel () |
Signals | |
void | canceled () |
Public Member Functions | |
ProgressDialog (QWidget *parent, const QString &title, const QString &text, const QString &cancel=QString()) | |
bool | wasCancelled () const |
void | hideForModal (std::function< void()> modal) |
QString | text () const |
void | setText (const QString &text) |
Protected Member Functions | |
virtual void | keyPressEvent (QKeyEvent *event) override |
ProgressDialog::ProgressDialog | ( | QWidget * | parent, |
const QString & | title, | ||
const QString & | text, | ||
const QString & | cancel = QString() |
||
) |
|
slot |
|
signal |
void ProgressDialog::hideForModal | ( | std::function< void()> | modal | ) |
|
overrideprotectedvirtual |
void ProgressDialog::setText | ( | const QString & | text | ) |
QString ProgressDialog::text | ( | ) | const |
|
slot |
bool ProgressDialog::wasCancelled | ( | ) | const |