author | harlekin <harlekin> | 2003-12-20 00:07:03 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-20 00:07:03 (UTC) |
commit | 26c201d7ce1e1fcf64129164cc97120d8cc7cb69 (patch) (side-by-side diff) | |
tree | 708c16e6a840c972ed01c4db2f7466cda5ee6d31 /noncore/net/mail/statuswidget.cpp | |
parent | dc088ad432189b4883f7654ef6b2c1e2f69112cc (diff) | |
download | opie-26c201d7ce1e1fcf64129164cc97120d8cc7cb69.zip opie-26c201d7ce1e1fcf64129164cc97120d8cc7cb69.tar.gz opie-26c201d7ce1e1fcf64129164cc97120d8cc7cb69.tar.bz2 |
also add the new files
Diffstat (limited to 'noncore/net/mail/statuswidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/statuswidget.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/noncore/net/mail/statuswidget.cpp b/noncore/net/mail/statuswidget.cpp new file mode 100644 index 0000000..19cf635 --- a/dev/null +++ b/noncore/net/mail/statuswidget.cpp @@ -0,0 +1,33 @@ +#include <qtimer.h> +#include <qprogressbar.h> +#include <qlabel.h> + +#include "statuswidget.h" + +// the current problem I see is "locking": used exclusive by one sender + + +StatusWidget::StatusWidget( QWidget* parent, const char* name,WFlags fl ) + : StatusWidgetUI( parent, name, fl ) { + + setMaximumHeight( 15 ); + // hide for now since nothing reports decent progress data yet. + statusProgress->hide(); + } + +StatusWidget::~StatusWidget() { +} + +void StatusWidget::setText( const QString& text ) { + show(); + statusText->setText( text ); + QTimer::singleShot( 5000, this, SLOT( hide() ) ); +} + +void StatusWidget::setProgress( int progress ) { + show(); + statusProgress->setProgress( progress ); + if ( progress == 100 ) { + hide(); + } +} |