Diffstat (limited to 'noncore/net/mail/statuswidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/statuswidget.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/noncore/net/mail/statuswidget.cpp b/noncore/net/mail/statuswidget.cpp deleted file mode 100644 index 19cf635..0000000 --- a/noncore/net/mail/statuswidget.cpp +++ b/dev/null @@ -1,33 +0,0 @@ -#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(); - } -} |