┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinstatusbar.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-04-09 19:12:54 +0000
committerPeter Penz <[email protected]>2007-04-09 19:12:54 +0000
commitc8a4f1fd8d3c9b50e51b7234123b3fbe0b979552 (patch)
treec8e29897fa7457cd31ffb51666c7e3cb8a5a2fea /src/dolphinstatusbar.cpp
parent30161a7b3fe76578f43a61381c98a5ae475ed52a (diff)
adapt Dolphin to kdelibs coding style (http://techbase.kde.org/Policies/Kdelibs_Coding_Style) by using:
astyle --indent=spaces=4 --brackets=linux \ --indent-labels --pad=oper --unpad=paren \ --one-line=keep-statements --convert-tabs \ --indent-preprocessor \ `find -type f -name '*.cpp'` `find -type f -name '*.h'` svn path=/trunk/KDE/kdebase/apps/; revision=651981
Diffstat (limited to 'src/dolphinstatusbar.cpp')
-rw-r--r--src/dolphinstatusbar.cpp25
1 files changed, 10 insertions, 15 deletions
diff --git a/src/dolphinstatusbar.cpp b/src/dolphinstatusbar.cpp
index f908a24cd..1f6859a8f 100644
--- a/src/dolphinstatusbar.cpp
+++ b/src/dolphinstatusbar.cpp
@@ -31,11 +31,11 @@
#include <kvbox.h>
DolphinStatusBar::DolphinStatusBar(DolphinView* parent) :
- KHBox(parent),
- m_messageLabel(0),
- m_spaceInfo(0),
- m_progressBar(0),
- m_progress(100)
+ KHBox(parent),
+ m_messageLabel(0),
+ m_spaceInfo(0),
+ m_progressBar(0),
+ m_progress(100)
{
setSpacing(4);
@@ -65,8 +65,7 @@ DolphinStatusBar::DolphinStatusBar(DolphinView* parent) :
DolphinStatusBar::~DolphinStatusBar()
-{
-}
+{}
void DolphinStatusBar::setMessage(const QString& msg,
Type type)
@@ -105,8 +104,7 @@ void DolphinStatusBar::setProgress(int percent)
{
if (percent < 0) {
percent = 0;
- }
- else if (percent > 100) {
+ } else if (percent > 100) {
percent = 100;
}
@@ -126,8 +124,7 @@ void DolphinStatusBar::setProgress(int percent)
const QString msg(m_messageLabel->text());
if ((percent == 0) && !msg.isEmpty()) {
setMessage(QString(), Default);
- }
- else if ((percent == 100) && (msg != defaultText)) {
+ } else if ((percent == 100) && (msg != defaultText)) {
setMessage(defaultText, Default);
}
}
@@ -163,8 +160,7 @@ void DolphinStatusBar::updateProgressInfo()
m_progressText->show();
m_progressBar->show();
}
- }
- else {
+ } else {
// hide the progress information and show the space information
m_progressText->hide();
m_progressBar->hide();
@@ -191,8 +187,7 @@ void DolphinStatusBar::showSpaceInfo()
if (isProgressBarVisible || (widthGap > 0)) {
m_spaceInfo->hide();
}
- }
- else if (widthGap + m_spaceInfo->width() <= 0) {
+ } else if (widthGap + m_spaceInfo->width() <= 0) {
m_spaceInfo->show();
}
}