widget to show progress in a QStatusBar. More...
#include <pqProgressWidget.h>
Inherits QWidget.
Public Slots | |
void | setProgress (const QString &message, int value) |
Set the progress. More... | |
void | enableProgress (bool enabled) |
Enabled/disable the progress. More... | |
void | enableAbort (bool enabled) |
Enable/disable the abort button. More... | |
Signals | |
void | abortPressed () |
triggered with the abort button is pressed. More... | |
Public Member Functions | |
pqProgressWidget (QWidget *parent=0) | |
~pqProgressWidget () override | |
QToolButton * | getAbortButton () const |
QToolButton * | abortButton () const |
Provides access to the abort button. More... | |
void | setReadyText (const QString &) |
Set the text to use by default when the progress bar is not enabled which typically corresponds to application not being busy. More... | |
const QString & | readyText () const |
Set the text to use by default when the progress bar is not enabled which typically corresponds to application not being busy. More... | |
void | setBusyText (const QString &) |
Set the text to use by default when the progress bar is enabled which typically corresponds to application being busy. More... | |
const QString & | busyText () const |
Set the text to use by default when the progress bar is enabled which typically corresponds to application being busy. More... | |
Protected Member Functions | |
void | updateUI () |
request Qt to paint the widgets. More... | |
Protected Attributes | |
pqProgressWidgetLabel * | ProgressBar |
QToolButton * | AbortButton |
Properties | |
QString | readyText |
QString | busyText |
widget to show progress in a QStatusBar.
pqProgressWidget is a widget designed to be used in the QStatusBar of the application to show progress for time consuming tasks in the application.
pqProgressWidget is a replacement for QProgressBar. It has the following differences with QProgressBar.
Definition at line 60 of file pqProgressWidget.h.
pqProgressWidget::pqProgressWidget | ( | QWidget * | parent = 0 | ) |
|
override |
|
inline |
Use abortButton
instead.
Definition at line 73 of file pqProgressWidget.h.
|
inline |
Provides access to the abort button.
Definition at line 78 of file pqProgressWidget.h.
void pqProgressWidget::setReadyText | ( | const QString & | ) |
Set the text to use by default when the progress bar is not enabled which typically corresponds to application not being busy.
Default value is empty.
|
inline |
Set the text to use by default when the progress bar is not enabled which typically corresponds to application not being busy.
Default value is empty.
Definition at line 87 of file pqProgressWidget.h.
void pqProgressWidget::setBusyText | ( | const QString & | ) |
Set the text to use by default when the progress bar is enabled which typically corresponds to application being busy.
Default value is "Busy".
|
inline |
Set the text to use by default when the progress bar is enabled which typically corresponds to application being busy.
Default value is "Busy".
Definition at line 97 of file pqProgressWidget.h.
Set the progress.
Progress must be enabled by calling 'enableProgress` otherwise this method will have no effect.
|
slot |
Enabled/disable the progress.
This is different from enabling/disabling the widget itself. This shows/hides the progress part of the widget.
|
slot |
Enable/disable the abort button.
|
signal |
triggered with the abort button is pressed.
|
protected |
request Qt to paint the widgets.
|
protected |
Definition at line 126 of file pqProgressWidget.h.
|
protected |
Definition at line 127 of file pqProgressWidget.h.
|
readwrite |
Definition at line 64 of file pqProgressWidget.h.
|
readwrite |
Definition at line 65 of file pqProgressWidget.h.