┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/statusbar/statusbarspaceinfo.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-04-03 08:48:35 +0000
committerPeter Penz <[email protected]>2010-04-03 08:48:35 +0000
commit7ae94915f72857ed4825ef6b78e4753896be28f9 (patch)
tree2359b214d6dff9584ffce0bab32e45c5ca142937 /src/statusbar/statusbarspaceinfo.cpp
parent2dc23d4e6dc8a3b5d9e4f816fe9ddab13f957cc6 (diff)
Cleanup of statusbar widgets:
- Provide proper size hints instead of hiding extensions on small widths - Provide context menu, which allows to enable/disable the zoom level extension and the space info extension. Also copying the status bar text is possible (useful e. g. for error messages). BUG: 188980 svn path=/trunk/KDE/kdebase/apps/; revision=1110498
Diffstat (limited to 'src/statusbar/statusbarspaceinfo.cpp')
-rw-r--r--src/statusbar/statusbarspaceinfo.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/statusbar/statusbarspaceinfo.cpp b/src/statusbar/statusbarspaceinfo.cpp
index c9173b8f9..a601d4367 100644
--- a/src/statusbar/statusbarspaceinfo.cpp
+++ b/src/statusbar/statusbarspaceinfo.cpp
@@ -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);