libplasma
Plasma::ProgressBar Class Reference
#include <progressbar.h>

Detailed Description
Definition at line 29 of file progressbar.h.
Public Slots | |
| void | reset () |
| void | setRange (int minimum, int maximum) |
| void | setMinimum (int minimum) |
| void | setMaximum (int maximum) |
| void | setValue (int value) |
Signals | |
| void | valueChanged (int value) |
Public Member Functions | |
| ProgressBar (Widget *parent) | |
| virtual | ~ProgressBar () |
| Qt::Alignment | alignment () const |
| QString | format () const |
| bool | invertedAppearance () |
| bool | isTextVisible () const |
| int | maximum () const |
| int | minimum () const |
| void | setAlignment (Qt::Alignment alignment) |
| void | setFormat (const QString &format) |
| void | setInvertedAppearance (bool invert) |
| void | setTextVisible (bool visible) |
| QString | text () const |
| int | value () const |
| void | paintWidget (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
| QSizeF | sizeHint () const |
Properties | |
| QString | format |
| Qt::Alignment | alignment |
| bool | invertedAppearance |
| bool | textVisible |
| int | maximum |
| int | minimum |
| int | value |
Constructor & Destructor Documentation
| Plasma::ProgressBar::ProgressBar | ( | Widget * | parent | ) |
| Plasma::ProgressBar::~ProgressBar | ( | ) | [virtual] |
Member Function Documentation
| Qt::Alignment Plasma::ProgressBar::alignment | ( | ) | const |
- Returns:
- alignment of the progressbar
| QString Plasma::ProgressBar::format | ( | ) | const |
- Returns:
- the format for the shown text
| bool Plasma::ProgressBar::invertedAppearance | ( | ) |
| bool Plasma::ProgressBar::isTextVisible | ( | ) | const |
| int Plasma::ProgressBar::maximum | ( | ) | const |
| int Plasma::ProgressBar::minimum | ( | ) | const |
| void Plasma::ProgressBar::setAlignment | ( | Qt::Alignment | alignment | ) |
Changes the alignment of Plasma::ProgressBar.
p - is replaced by the percentage completed v - is replaced by the current value m - is replaced by the total number of steps
- Parameters:
-
alignment the alignment for the progressbar.
Definition at line 77 of file progressbar.cpp.
| void Plasma::ProgressBar::setFormat | ( | const QString & | format | ) |
Sets the format for the shown text in Plasma::ProgressBar; the format for the shown text in Plasma:ProgressBar.
Definition at line 90 of file progressbar.cpp.
| void Plasma::ProgressBar::setInvertedAppearance | ( | bool | invert | ) |
Inverts the appearance of Plasma::ProgressBar.
- Parameters:
-
invert true inverts the appearance
Definition at line 104 of file progressbar.cpp.
| void Plasma::ProgressBar::setTextVisible | ( | bool | visible | ) |
Change the text to be visible or not.
- Parameters:
-
visible if true then visible
Definition at line 121 of file progressbar.cpp.
| QString Plasma::ProgressBar::text | ( | ) | const |
| int Plasma::ProgressBar::value | ( | ) | const |
- Returns:
- the actual value of the progress
| void Plasma::ProgressBar::paintWidget | ( | QPainter * | painter, | |
| const QStyleOptionGraphicsItem * | option, | |||
| QWidget * | widget = 0 | |||
| ) | [virtual] |
Paints the widget.
- Parameters:
-
painter the QPainter to use to paint. option the style option used to give specific info on the item being dawn. widget the parent QWidget (most likely the Corona)
Reimplemented from Plasma::Widget.
Definition at line 192 of file progressbar.cpp.
| QSizeF Plasma::ProgressBar::sizeHint | ( | ) | const [virtual] |
Returns the recommended size for this widget.
Note that this size is not necessarily only the size for the widget, but might also include margins etc.
- Returns:
- recommended size for this Plasma::Widget.
Reimplemented from Plasma::Widget.
Definition at line 212 of file progressbar.cpp.
| void Plasma::ProgressBar::reset | ( | ) | [slot] |
Definition at line 136 of file progressbar.cpp.
| void Plasma::ProgressBar::setRange | ( | int | minimum, | |
| int | maximum | |||
| ) | [slot] |
Definition at line 142 of file progressbar.cpp.
| void Plasma::ProgressBar::setMinimum | ( | int | minimum | ) | [slot] |
Definition at line 152 of file progressbar.cpp.
| void Plasma::ProgressBar::setMaximum | ( | int | maximum | ) | [slot] |
Definition at line 157 of file progressbar.cpp.
| void Plasma::ProgressBar::setValue | ( | int | value | ) | [slot] |
Definition at line 172 of file progressbar.cpp.
| void Plasma::ProgressBar::valueChanged | ( | int | value | ) | [signal] |
Property Documentation
QString Plasma::ProgressBar::format [read, write] |
Definition at line 32 of file progressbar.h.
Qt::Alignment Plasma::ProgressBar::alignment [read, write] |
Definition at line 33 of file progressbar.h.
bool Plasma::ProgressBar::invertedAppearance [read, write] |
Definition at line 34 of file progressbar.h.
bool Plasma::ProgressBar::textVisible [read, write] |
Definition at line 35 of file progressbar.h.
int Plasma::ProgressBar::maximum [read, write] |
Definition at line 36 of file progressbar.h.
int Plasma::ProgressBar::minimum [read, write] |
Definition at line 37 of file progressbar.h.
int Plasma::ProgressBar::value [read, write] |
Definition at line 38 of file progressbar.h.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference