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) (side-by-side diff)
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) (show 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 @@
#include <qtimer.h>
-#include <qprogressbar.h>
+#include <q3progressbar.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 )
+StatusWidget::StatusWidget( QWidget* parent, const char* name,Qt::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();
}
}