diff options
| author | Peter Penz <[email protected]> | 2007-01-26 19:38:32 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-01-26 19:38:32 +0000 |
| commit | 9877bef7c56b07e715d1f7a6dddc8529387b689b (patch) | |
| tree | 5b0f47847ee43bd1af000851c040dddfe823db71 /src/statusbarspaceinfo.cpp | |
| parent | dcc41b4ad4a082301a711612934233ee2c22c5d0 (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.cpp | 8 |
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); } |
