Logo Search packages:      
Sourcecode: d3lphin version File versions  Download package

ProgressIndicator Class Reference

#include <progressindicator.h>

List of all members.

Detailed Description

Allows to show a progress of synchronous operations. Sample code:
 const int operationsCount = 100;
 ProgressIndicator progressIndicator(i18n("Loading..."),
                                     i18n("Loading finished."),
 for (int i = 0; i < operationsCount; ++i) {
     // do synchronous operation...
The progress indicator takes care to show the progress bar only after a delay of around 500 milliseconds. This means if all operations are executing within 500 milliseconds, no progress bar is shown at all. As soon as the progress bar is shown, the application still may process events, but the the Dolphin main widget is disabled.

Peter Penz <peter.penz@gmx.at>

Definition at line 45 of file progressindicator.h.

Public Member Functions

void execOperation ()
 ProgressIndicator (const QString &progressText, const QString &finishedText, int operationsCount)
 ~ProgressIndicator ()

Private Attributes

QString m_finishedText
int m_operationsCount
int m_operationsIndex
bool m_showProgress
QTime m_startTime

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index