From 867124ffd8b5b27cec77bd35b3f1f720017e05e9 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Mon, 9 Feb 2015 15:43:18 +0100 Subject: [PATCH] Style fixes. --- src/network-web/downloadmanager.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/network-web/downloadmanager.cpp b/src/network-web/downloadmanager.cpp index 95691863a..149d8c7af 100644 --- a/src/network-web/downloadmanager.cpp +++ b/src/network-web/downloadmanager.cpp @@ -659,8 +659,7 @@ QString DownloadManager::downloadDirectory() { return m_downloadDirectory; } -QString DownloadManager::timeString(double time_remaining) -{ +QString DownloadManager::timeString(double time_remaining) { QString remaining; if (time_remaining > 60) { @@ -676,21 +675,23 @@ QString DownloadManager::timeString(double time_remaining) return remaining; } -QString DownloadManager::dataString(qint64 size) -{ +QString DownloadManager::dataString(qint64 size) { QString unit; double newSize; if (size < 1024) { newSize = size; unit = tr("bytes"); - } else if (size < 1024 * 1024) { + } + else if (size < 1024 * 1024) { newSize = (double)size / (double)1024; unit = tr("kB"); - } else if (size < 1024 * 1024 * 1024) { + } + else if (size < 1024 * 1024 * 1024) { newSize = (double)size / (double)(1024 * 1024); unit = tr("MB"); - } else { + } + else { newSize = (double)size / (double)(1024 * 1024 * 1024); unit = tr("GB"); }