Avogadro::QtGui::TimedProgressDialog#

class TimedProgressDialog : public QProgressDialog#

A progress dialog with a time remaining label.

<avogadro/qtgui/timedprogressdialog.h>

Author

Geoff Hutchison

Public Functions

TimedProgressDialog(QWidget *parent)#
TimedProgressDialog(const QString &labelText = QString(), const QString &cancelButtonText = QString(), int minimum = 0, int maximum = 100, QWidget *parent = nullptr)#
void show()#

show the progress dialog and start the timer

void restartTimer()#

restart the elapsed timer, discarding any time measured so far

Useful when a job spends an unknown amount of time setting up before it can report determinate progress: restarting once the real work begins keeps that setup time out of the estimate.

inline void setLabelText(const QString &labelText)#

set the default label text

Public Slots

void setValue(int value)#

set the value of the progress dialog and update the time remaining