#include "dolphinstatusbar.h"
#include "dolphin_generalsettings.h"
+#include "statusbarspaceinfo.h"
+#include "views/dolphinview.h"
+#include "views/zoomlevelinfo.h"
-#include <QIcon>
#include <KLocalizedString>
#include <KSqueezedTextLabel>
-#include <QMenu>
-
-#include "statusbarspaceinfo.h"
#include <QApplication>
#include <QHBoxLayout>
-#include <QLabel>
+#include <QHelpEvent>
+#include <QIcon>
+#include <QMenu>
#include <QProgressBar>
-#include <QToolButton>
-#include <QTime>
-#include <QTimer>
#include <QSlider>
#include <QTextDocument>
-#include <QHelpEvent>
-
-#include <views/dolphinview.h>
-#include <views/zoomlevelinfo.h>
+#include <QTimer>
+#include <QToolButton>
namespace {
const int ResetToDefaultTimeout = 1000;
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()
if (text.isEmpty()) {
// Assure that the previous set text won't get
- // cleared immediatelly.
+ // cleared immediately.
m_resetToDefaultTextTimer->start();
} else {
m_text = text;
setExtensionsVisible(true);
}
+void DolphinStatusBar::updateSpaceInfo()
+{
+ m_spaceInfo->update();
+}
+
void DolphinStatusBar::contextMenuEvent(QContextMenuEvent* event)
{
Q_UNUSED(event);