diff view/View.cpp @ 384:c1e5af9f2c3c

...
author Chris Cannam
date Mon, 12 May 2008 12:38:59 +0000
parents 06b5f110c5d2
children c0818f064e66
line wrap: on
line diff
--- a/view/View.cpp	Fri May 09 12:39:02 2008 +0000
+++ b/view/View.cpp	Mon May 12 12:38:59 2008 +0000
@@ -1421,6 +1421,17 @@
     }
 }
 
+int
+View::getProgressBarWidth() const
+{
+    for (ProgressMap::const_iterator i = m_progressBars.begin();
+	 i != m_progressBars.end(); ++i) {
+        if (i->second && i->second->isVisible()) return i->second->width();
+    }
+
+    return 0;
+}
+
 void
 View::setPaintFont(QPainter &paint)
 {