]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/statusbar/statusbarspaceinfo.cpp
Respect Shift- and Control-key for the rubberband selection
[dolphin.git] / src / statusbar / statusbarspaceinfo.cpp
index c9173b8f9ef2feee26d18ca34c8ed2dbda5cbe7b..a25fa3a3e2222cc8ee09a034339ace8de1f3b383 100644 (file)
@@ -22,8 +22,8 @@
 
 #include <KDiskFreeSpaceInfo>
 #include <kmountpoint.h>
-#include <klocale.h>
-#include <kio/job.h>
+#include <KLocale>
+#include <KIO/Job>
 
 #include <QTimer>
 #include <QKeyEvent>
@@ -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);