author | alwin <alwin> | 2005-03-07 23:12:51 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-03-07 23:12:51 (UTC) |
commit | 2ba21de3fce9ca9fe9a70474a1927f0106d1d7ce (patch) (unidiff) | |
tree | d0ff8c035e34a83fbc935c8f3f6ab926ed432559 /noncore/net/mail/statuswidget.cpp | |
parent | a1fab1e1abd009a6a64c7ea3957bdb5587f4be81 (diff) | |
download | opie-2ba21de3fce9ca9fe9a70474a1927f0106d1d7ce.zip opie-2ba21de3fce9ca9fe9a70474a1927f0106d1d7ce.tar.gz opie-2ba21de3fce9ca9fe9a70474a1927f0106d1d7ce.tar.bz2 |
beauty
hopefull some speedups
obsolete stuff removed
fixed a crasher
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, 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 @@ | |||
1 | #include <qtimer.h> | ||
2 | #include <qprogressbar.h> | ||
3 | #include <qlabel.h> | ||
4 | |||
5 | #include "statuswidget.h" | ||
6 | |||
7 | // the current problem I see is "locking": used exclusive by one sender | ||
8 | |||
9 | |||
10 | StatusWidget::StatusWidget( QWidget* parent, const char* name,WFlags fl ) | ||
11 | : StatusWidgetUI( parent, name, fl ) { | ||
12 | |||
13 | setMaximumHeight( 15 ); | ||
14 | // hide for now since nothing reports decent progress data yet. | ||
15 | statusProgress->hide(); | ||
16 | } | ||
17 | |||
18 | StatusWidget::~StatusWidget() { | ||
19 | } | ||
20 | |||
21 | void StatusWidget::setText( const QString& text ) { | ||
22 | show(); | ||
23 | statusText->setText( text ); | ||
24 | QTimer::singleShot( 5000, this, SLOT( hide() ) ); | ||
25 | } | ||
26 | |||
27 | void StatusWidget::setProgress( int progress ) { | ||
28 | show(); | ||
29 | statusProgress->setProgress( progress ); | ||
30 | if ( progress == 100 ) { | ||
31 | hide(); | ||
32 | } | ||
33 | } | ||