summaryrefslogtreecommitdiffabout
path: root/kmicromail/statuswidget.cpp
Unidiff
Diffstat (limited to 'kmicromail/statuswidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/statuswidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kmicromail/statuswidget.cpp b/kmicromail/statuswidget.cpp
index 19cf635..6da6f54 100644
--- a/kmicromail/statuswidget.cpp
+++ b/kmicromail/statuswidget.cpp
@@ -1,33 +1,33 @@
1#include <qtimer.h> 1#include <qtimer.h>
2#include <qprogressbar.h> 2#include <q3progressbar.h>
3#include <qlabel.h> 3#include <qlabel.h>
4 4
5#include "statuswidget.h" 5#include "statuswidget.h"
6 6
7// the current problem I see is "locking": used exclusive by one sender 7// the current problem I see is "locking": used exclusive by one sender
8 8
9 9
10StatusWidget::StatusWidget( QWidget* parent, const char* name,WFlags fl ) 10StatusWidget::StatusWidget( QWidget* parent, const char* name,Qt::WFlags fl )
11 : StatusWidgetUI( parent, name, fl ) { 11 : StatusWidgetUI( parent, name, fl ) {
12 12
13 setMaximumHeight( 15 ); 13 setMaximumHeight( 15 );
14 // hide for now since nothing reports decent progress data yet. 14 // hide for now since nothing reports decent progress data yet.
15 statusProgress->hide(); 15 statusProgress->hide();
16 } 16 }
17 17
18StatusWidget::~StatusWidget() { 18StatusWidget::~StatusWidget() {
19} 19}
20 20
21void StatusWidget::setText( const QString& text ) { 21void StatusWidget::setText( const QString& text ) {
22 show(); 22 show();
23 statusText->setText( text ); 23 statusText->setText( text );
24 QTimer::singleShot( 5000, this, SLOT( hide() ) ); 24 QTimer::singleShot( 5000, this, SLOT( hide() ) );
25} 25}
26 26
27void StatusWidget::setProgress( int progress ) { 27void StatusWidget::setProgress( int progress ) {
28 show(); 28 show();
29 statusProgress->setProgress( progress ); 29 statusProgress->setProgress( progress );
30 if ( progress == 100 ) { 30 if ( progress == 100 ) {
31 hide(); 31 hide();
32 } 32 }
33} 33}