#include <kprogress.h>
Public Slots | |
| void | setFormat (const QString &format) |
| void | setTotalSteps (int totalSteps) |
| virtual void | setProgress (int progress) |
| void | setValue (int progress) |
| virtual void | advance (int offset) |
Signals | |
| void | percentageChanged (int) |
Public Methods | |
| KProgress (QWidget *parent=0, const char *name=0, WFlags f=0) | |
| KProgress (int totalSteps, QWidget *parent=0, const char *name=0, WFlags f=0) | |
| ~KProgress () | |
| void | setTextEnabled (bool) |
| int | value () const |
| bool | textEnabled () const |
| QString | format () const |
| void | setRange (int min, int max) |
| int | maxValue () |
Protected Methods | |
| virtual bool | setIndicator (QString &indicator, int progress, int totalSteps) |
A stylized progress bar.
KProgress is derived from QProgressBar, so you can use all the methods from that class. The only real difference is that a signal is emitted on changes to the value and you do not need to subclass KProgress just to change the format of the indicator text.
@sect Details
Definition at line 46 of file kprogress.h.
|
||||||||||||||||
|
Construct a progress bar. |
|
||||||||||||||||||||
|
Construct a progress bar with a total number of steps. The totalSteps is the total number of steps that need to be completed for the operation which this progress bar represents. For example, if the operation is to examine 50 files, this value would be 50. Before examining the first file, call setProgress(0); call setProgress(50) after examining the last file. |
|
|
Destruct the progress bar. |
|
|
Advance the progress bar by This method is provided for convenience and is equivalent with setValue(value()+prog). |
|
|
Retrieve the current format for printing status text.
|
|
|
|
|
|
Emitted when the state of the progress bar changes. |
|
|
Set the format of the text to use to display status. The default format is "p%" (which looks like "42%".)
|
|
||||||||||||||||
|
@reimplemented |
|
|
Set the current value of the progress bar to |
|
||||||||||||
|
|
|
|
If this is set to |
|
|
Set the current total number of steps in the action tat the progress bar is representing. |
|
|
|
|
|
Returns
|
|
|
|
1.2.18