┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinstatusbar.h
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/dolphinstatusbar.h
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/dolphinstatusbar.h')
-rw-r--r--src/dolphinstatusbar.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/dolphinstatusbar.h b/src/dolphinstatusbar.h
index 445419c3f..e98e9e512 100644
--- a/src/dolphinstatusbar.h
+++ b/src/dolphinstatusbar.h
@@ -110,15 +110,26 @@ public:
void setDefaultText(const QString& text);
const QString& defaultText() const { return m_defaultText; }
+protected:
+ /** @see QWidget::resizeEvent() */
+ virtual void resizeEvent(QResizeEvent* event);
+
private slots:
void updateProgressInfo();
/**
* Is invoked, when the URL of the DolphinView, where the
* statusbar belongs too, has been changed. The space information
- * is updated.
+ * content is updated.
+ */
+ void updateSpaceInfoContent(const KUrl& url);
+
+ /**
+ * Shows the space information if there is enough room to show it
+ * without the need to clip the status bar text. If the progress
+ * bar is shown, the space information won't be shown.
*/
- void updateSpaceInfo(const KUrl& url);
+ void showSpaceInfo();
private:
StatusBarMessageLabel* m_messageLabel;