summaryrefslogtreecommitdiff
path: root/src/downloaditem.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-05-27 22:58:44 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-05-27 23:34:32 +0200
commit807e20570cbfef6e258313565598905564f1bb86 (patch)
tree695b3c940bce02305224e5781a7c48b5a6fdab94 /src/downloaditem.cpp
parentRuntime Nepomuk tagging check (diff)
downloadrekonq-807e20570cbfef6e258313565598905564f1bb86.tar.xz
Kitchen sink clean up
- astyle - copyrights - (some) includes
Diffstat (limited to 'src/downloaditem.cpp')
-rw-r--r--src/downloaditem.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/downloaditem.cpp b/src/downloaditem.cpp
index f1f0b9d9..38edbf1e 100644
--- a/src/downloaditem.cpp
+++ b/src/downloaditem.cpp
@@ -59,7 +59,7 @@ DownloadItem::DownloadItem(KIO::CopyJob *job, const QDateTime &d, QObject *paren
, m_job(job)
, m_state(0)
{
- QObject::connect(job, SIGNAL(percent(KJob*,ulong)), this, SLOT(updateProgress(KJob*,ulong)));
+ QObject::connect(job, SIGNAL(percent(KJob*, ulong)), this, SLOT(updateProgress(KJob*, ulong)));
QObject::connect(job, SIGNAL(finished(KJob*)), this, SLOT(onFinished(KJob*)));
QObject::connect(job, SIGNAL(suspended(KJob*)), this, SLOT(onSuspended(KJob*)));
}
@@ -114,10 +114,10 @@ void DownloadItem::setIsKGetDownload()
void DownloadItem::updateProgress(KJob *job, unsigned long value)
{
Q_UNUSED(job);
-
+
if (value > 0 && value < 100)
m_state = Downloading;
-
+
emit downloadProgress(value);
}
@@ -143,10 +143,10 @@ void DownloadItem::onFinished(KJob *job)
void DownloadItem::onSuspended(KJob *job)
{
Q_UNUSED(job);
-
+
m_state = Suspended;
- // TODO:
+ // TODO:
// connect to job->resume() to let rekonq resume it
}