]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/statusbar/dolphinstatusbar.cpp
Fix wrong window titles
[dolphin.git] / src / statusbar / dolphinstatusbar.cpp
index 34916830eaa666e92ebb8125d72c5f929f7e7c7f..41c787eaa83fb1599364c9ab3500fa34b28cd708 100644 (file)
@@ -131,6 +131,15 @@ DolphinStatusBar::DolphinStatusBar(QWidget* parent) :
     topLayout->addWidget(m_progressBar);
 
     setExtensionsVisible(true);
+    setWhatsThis(xi18nc("@info:whatsthis Statusbar", "<para>This is "
+        "the <emphasis>Statusbar</emphasis>. It contains three elements "
+        "by default (left to right):<list><item>A <emphasis>text field"
+        "</emphasis> that displays the size of selected items. If only "
+        "one item is selected the name and type is shown as well.</item>"
+        "<item>A <emphasis>zoom slider</emphasis> that allows you "
+        "to adjust the size of the icons in the view.</item>"
+        "<item><emphasis>Space information</emphasis> about the "
+        "current storage device.</item></list></para>"));
 }
 
 DolphinStatusBar::~DolphinStatusBar()
@@ -147,7 +156,7 @@ void DolphinStatusBar::setText(const QString& text)
 
     if (text.isEmpty()) {
         // Assure that the previous set text won't get
-        // cleared immediatelly.
+        // cleared immediately.
         m_resetToDefaultTextTimer->start();
     } else {
         m_text = text;
@@ -252,6 +261,11 @@ void DolphinStatusBar::readSettings()
     setExtensionsVisible(true);
 }
 
+void DolphinStatusBar::updateSpaceInfo()
+{
+    m_spaceInfo->update();
+}
+
 void DolphinStatusBar::contextMenuEvent(QContextMenuEvent* event)
 {
     Q_UNUSED(event);