+void StatusBarSpaceInfo::showEvent(QShowEvent* event)
+{
+ KCapacityBar::showEvent(event);
+ if (!event->spontaneous()) {
+ refresh();
+ m_timer->start(10000);
+ }
+}
+
+void StatusBarSpaceInfo::hideEvent(QHideEvent* event)
+{
+ m_timer->stop();
+ KCapacityBar::hideEvent(event);
+}
+