class StatusbarProgress

IO progress widget for embedding in a statusbar. More...

Full nameKIO::StatusbarProgress
Definition#include <statusbarprogress.h>
InheritsKIO::ProgressBase
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Protected Types

Protected Methods

Protected Members


Detailed Description

This is a special IO progress widget.

Similarly to DefaultProgress, it's purpose is to show a progress of the IO operation.

Instead of creating a separate window, this is only a widget that can be easily embedded in a statusbar.

Usage of StatusbarProgress is little different. This dialog will be a part of some application.


 // create a dialog
 StatusbarProgress *statusProgress;
 statusProgress = new StatusbarProgress( statusBar() );
 statusBar()->insertWidget( statusProgress, statusProgress->width() , 0 );
 ...
 // create job and connect it to the progress
 CopyJob* job = KIO::copy(...);
 statusProgress->setJob( job );
 ...

 StatusbarProgress ( QWidget* parent, bool button = true )

StatusbarProgress ()

void  setJob ( KIO::Job *job )

Reimplemented from ProgressBase.

void  slotClean ()

[virtual slot]

Reimplemented from ProgressBase.

void  slotTotalSize ( KIO::Job*, unsigned long size )

[virtual slot]

Reimplemented from ProgressBase.

void  slotPercent ( KIO::Job*, unsigned long percent )

[virtual slot]

Reimplemented from ProgressBase.

void  slotSpeed ( KIO::Job*, unsigned long bytes_per_second )

[virtual slot]

Reimplemented from ProgressBase.

KProgress* m_pProgressBar

[protected]

QLabel* m_pLabel

[protected]

QPushButton* m_pButton

[protected]

unsigned long m_iTotalSize

[protected]

enum Mode {None, Label, Progress }

[protected]

uint mode

[protected]

bool m_bShowButton

[protected]

void  setMode ()

[protected]

bool  eventFilter ( QObject *, QEvent * )

[protected virtual]

QBoxLayout * box

[protected]

QWidgetStack * stack

[protected]