From 26c201d7ce1e1fcf64129164cc97120d8cc7cb69 Mon Sep 17 00:00:00 2001 From: harlekin Date: Sat, 20 Dec 2003 00:07:03 +0000 Subject: also add the new files --- (limited to 'noncore/net/mail/statuswidget.cpp') 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 +#include +#include + +#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(); + } +} -- cgit v0.9.0.2