+
+ // refresh() is invoked for each directory change. Usually getting
+ // the size information can be done very fast, so to prevent any
+ // flickering the "Getting size..." indication is only shown if
+ // at least 300 ms have been passed.
+ QTimer::singleShot(300, this, SLOT(showGettingSizeInfo()));
+}
+
+void StatusBarSpaceInfo::showGettingSizeInfo()
+{
+ if (m_gettingSize) {
+ m_text = i18nc("@info:status", "Getting size...");
+ setMinimum(0);
+ setMaximum(0);
+ }