Mercurial > hg > svcore
changeset 134:53dfcd7db419
* Restore progress updates to spectrogram
author | Chris Cannam |
---|---|
date | Wed, 05 Jul 2006 16:15:22 +0000 |
parents | b18b07474e11 |
children | fb8422cf4326 |
files | base/Layer.h base/View.cpp |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/base/Layer.h Mon Jul 03 15:00:32 2006 +0000 +++ b/base/Layer.h Wed Jul 05 16:15:22 2006 +0000 @@ -186,7 +186,7 @@ * isReady(int *) call. The widget may choose to show a progress * meter if it finds that this returns < 100 at any given moment. */ - virtual int getCompletion() const { return 100; } + virtual int getCompletion(View *) const { return 100; } virtual void setObjectName(const QString &name);
--- a/base/View.cpp Mon Jul 03 15:00:32 2006 +0000 +++ b/base/View.cpp Wed Jul 05 16:15:22 2006 +0000 @@ -31,7 +31,7 @@ #include <cassert> #include <math.h> -//#define DEBUG_VIEW_WIDGET_PAINT 1 +#define DEBUG_VIEW_WIDGET_PAINT 1 using std::cerr; using std::endl; @@ -1056,7 +1056,7 @@ if (i->first == object) { - int completion = i->first->getCompletion(); + int completion = i->first->getCompletion(this); if (completion >= 100) {