┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/statusbarspaceinfo.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-01-26 19:38:32 +0000
committerPeter Penz <[email protected]>2007-01-26 19:38:32 +0000
commit9877bef7c56b07e715d1f7a6dddc8529387b689b (patch)
tree5b0f47847ee43bd1af000851c040dddfe823db71 /src/statusbarspaceinfo.cpp
parentdcc41b4ad4a082301a711612934233ee2c22c5d0 (diff)
Further optimizations for the status bar: hide the space information if the status bar text does not fit into the remaining width.
svn path=/trunk/playground/utils/dolphin/; revision=627486
Diffstat (limited to 'src/statusbarspaceinfo.cpp')
-rw-r--r--src/statusbarspaceinfo.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/statusbarspaceinfo.cpp b/src/statusbarspaceinfo.cpp
index bccda6e68..fca7bdd0b 100644
--- a/src/statusbarspaceinfo.cpp
+++ b/src/statusbarspaceinfo.cpp
@@ -132,13 +132,9 @@ void StatusBarSpaceInfo::slotFoundMountPoint(const unsigned long& kBSize,
update();
}
-void StatusBarSpaceInfo::slotDone()
+void StatusBarSpaceInfo::showResult()
{
m_gettingSize = false;
- if ((m_kBSize > 0) && (m_kBAvailable > 0)) {
- show();
- }
-
update();
}
@@ -160,7 +156,7 @@ void StatusBarSpaceInfo::refresh()
const unsigned long&,
const QString& )));
connect(job, SIGNAL(done()),
- this, SLOT(slotDone()));
+ this, SLOT(showResult()));
job->readDF(mountPoint);
}