In file ../ui/kprogress.h:

class KProgress : public QFrame, public QRangeControl

KProgress -- progress indicator widget for KDE

Inheritance:


public members:

enumOrientation
Possible values for orientation
enumBarStyle
Possible values for bar style
KProgress (QWidget *parent=0, const char *name=0)
Construct a default KProgress bar.
KProgress ( Orientation , QWidget *parent=0, const char *name=0)
Construct a KProgress bar with an orientation.
KProgress (int minValue, int maxValue, int value, Orientation , QWidget *parent=0, const char *name=0)
Construct a KProgress bar with minimum, maximum and initial value.
~KProgress ()
Destructor
void setBarStyle ( BarStyle style)
Set the progress bar style.
void setBarColor (const QColor &)
Set the color of the progress bar.
void setBarPixmap (const QPixmap &)
Set a pixmap to be shown in the progress bar.
void setOrientation ( Orientation )
Set the orientation of the progress bar.
void setTextEnabled (bool)
Who knows what this does?
BarStyle barStyle () const
Retrieve the bar style.
const QColor &barColor () const
Retrieve the bar color.
const QPixmap *barPixmap () const
Retrieve the bar pixmap.
Orientation orientation () const
Retrieve the orientation.
bool textEnabled () const
Who knows what this does?

Documentation

KProgress is derived from QFrame and QRangeControl, so you can use all the methods from those classes. The only difference is that setValue(int) is now made a slot, so you can connect stuff to it. None of the constructors take line step and page step as arguments, so by default they're set to 1 and 10 respectively. The Blocked style ignores the textEnabled() setting and displays no text, since it looks truly ugly and there are other reasons. Signal percentageChanged(int) is emmitted whenever the value changes so you can setup a different widget to display percentage and connect the signal to it.
enum Orientation
Possible values for orientation

enum BarStyle
Possible values for bar style. Solid means one continuous progress bar, Blocked means a progress bar made up of several blocks.

KProgress (QWidget *parent=0, const char *name=0)
Construct a default KProgress bar. Orientation is horizontal.

KProgress ( Orientation , QWidget *parent=0, const char *name=0)
Construct a KProgress bar with an orientation.

KProgress (int minValue, int maxValue, int value, Orientation , QWidget *parent=0, const char *name=0)
Construct a KProgress bar with minimum, maximum and initial value.

~KProgress ()
Destructor

void setBarStyle ( BarStyle style)
Set the progress bar style. Allowed values are Solid and Blocked.

void setBarColor (const QColor &)
Set the color of the progress bar.

void setBarPixmap (const QPixmap &)
Set a pixmap to be shown in the progress bar.

void setOrientation ( Orientation )
Set the orientation of the progress bar. Allowed values are Horizonzal and Vertical.

void setTextEnabled (bool)
Who knows what this does? Please mail mailto:mda@stardivision.de

BarStyle barStyle () const
Retrieve the bar style.

const QColor & barColor () const
Retrieve the bar color.

const QPixmap * barPixmap () const
Retrieve the bar pixmap.

Orientation orientation () const
Retrieve the orientation.

bool textEnabled () const
Who knows what this does?


this class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling