X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/2e6450da1cc62c0c8ad6f868becf0fa4a1f32022..681d8bb6c:/src/statusbar/dolphinstatusbar.cpp diff --git a/src/statusbar/dolphinstatusbar.cpp b/src/statusbar/dolphinstatusbar.cpp index 16683309d..41c787eaa 100644 --- a/src/statusbar/dolphinstatusbar.cpp +++ b/src/statusbar/dolphinstatusbar.cpp @@ -20,27 +20,23 @@ #include "dolphinstatusbar.h" #include "dolphin_generalsettings.h" +#include "statusbarspaceinfo.h" +#include "views/dolphinview.h" +#include "views/zoomlevelinfo.h" -#include #include #include -#include - -#include "statusbarspaceinfo.h" #include #include -#include +#include +#include +#include #include -#include -#include -#include #include #include -#include - -#include -#include +#include +#include namespace { const int ResetToDefaultTimeout = 1000; @@ -135,6 +131,15 @@ DolphinStatusBar::DolphinStatusBar(QWidget* parent) : topLayout->addWidget(m_progressBar); setExtensionsVisible(true); + setWhatsThis(xi18nc("@info:whatsthis Statusbar", "This is " + "the Statusbar. It contains three elements " + "by default (left to right):A text field" + " that displays the size of selected items. If only " + "one item is selected the name and type is shown as well." + "A zoom slider that allows you " + "to adjust the size of the icons in the view." + "Space information about the " + "current storage device.")); } DolphinStatusBar::~DolphinStatusBar() @@ -151,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; @@ -256,6 +261,11 @@ void DolphinStatusBar::readSettings() setExtensionsVisible(true); } +void DolphinStatusBar::updateSpaceInfo() +{ + m_spaceInfo->update(); +} + void DolphinStatusBar::contextMenuEvent(QContextMenuEvent* event) { Q_UNUSED(event);