]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/statusbar/statusbarspaceinfo.cpp
The &-shortcut from another action is not set until the action has been shown at...
[dolphin.git] / src / statusbar / statusbarspaceinfo.cpp
index c9173b8f9ef2feee26d18ca34c8ed2dbda5cbe7b..a601d4367e39e4ae2bc0a04e97249a0220605fd6 100644 (file)
@@ -33,9 +33,6 @@ StatusBarSpaceInfo::StatusBarSpaceInfo(QWidget* parent) :
     m_kBSize(0),
     m_timer(0)
 {
-    setMaximumWidth(200);
-    setMinimumWidth(200); // something to fix on kcapacitybar (ereslibre)
-
     // Use a timer to update the space information. Polling is useful
     // here, as files can be deleted/added outside the scope of Dolphin.
     m_timer = new QTimer(this);
@@ -52,6 +49,11 @@ void StatusBarSpaceInfo::setUrl(const KUrl& url)
     refresh();
 }
 
+KUrl StatusBarSpaceInfo::url() const
+{
+    return m_url;
+}
+
 void StatusBarSpaceInfo::showEvent(QShowEvent* event)
 {
     KCapacityBar::showEvent(event);