summaryrefslogtreecommitdiffabout
path: root/kmicromail/statuswidget.cpp
authorMichael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
committer Michael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
commita08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff)
tree8ee90d686081c52e7c69b5ce946e9b1a7d690001 /kmicromail/statuswidget.cpp
parent11edc920afe4f274c0964436633aa632c8288a40 (diff)
downloadkdepimpi-p1.zip
kdepimpi-p1.tar.gz
kdepimpi-p1.tar.bz2
initial public commit of qt4 portp1
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}