Mercurial > hg > svcore
comparison base/View.cpp @ 134:53dfcd7db419
* Restore progress updates to spectrogram
author | Chris Cannam |
---|---|
date | Wed, 05 Jul 2006 16:15:22 +0000 |
parents | e388730429b5 |
children | a35098a9c814 |
comparison
equal
deleted
inserted
replaced
133:b18b07474e11 | 134:53dfcd7db419 |
---|---|
29 | 29 |
30 #include <iostream> | 30 #include <iostream> |
31 #include <cassert> | 31 #include <cassert> |
32 #include <math.h> | 32 #include <math.h> |
33 | 33 |
34 //#define DEBUG_VIEW_WIDGET_PAINT 1 | 34 #define DEBUG_VIEW_WIDGET_PAINT 1 |
35 | 35 |
36 using std::cerr; | 36 using std::cerr; |
37 using std::endl; | 37 using std::endl; |
38 | 38 |
39 View::View(QWidget *w, bool showProgress) : | 39 View::View(QWidget *w, bool showProgress) : |
1054 for (ProgressMap::const_iterator i = m_progressBars.begin(); | 1054 for (ProgressMap::const_iterator i = m_progressBars.begin(); |
1055 i != m_progressBars.end(); ++i) { | 1055 i != m_progressBars.end(); ++i) { |
1056 | 1056 |
1057 if (i->first == object) { | 1057 if (i->first == object) { |
1058 | 1058 |
1059 int completion = i->first->getCompletion(); | 1059 int completion = i->first->getCompletion(this); |
1060 | 1060 |
1061 if (completion >= 100) { | 1061 if (completion >= 100) { |
1062 | 1062 |
1063 i->second->hide(); | 1063 i->second->hide(); |
1064 | 1064 |