From 9877bef7c56b07e715d1f7a6dddc8529387b689b Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 26 Jan 2007 19:38:32 +0000 Subject: 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 --- src/statusbarspaceinfo.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/statusbarspaceinfo.cpp') 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); } -- cgit v1.3