# HG changeset patch # User Chris Cannam # Date 1152116122 0 # Node ID 53dfcd7db41992880e41ad78dd6c3baebbab8acd # Parent b18b07474e11e141c671cc094f1c88173b00ae77 * Restore progress updates to spectrogram diff -r b18b07474e11 -r 53dfcd7db419 base/Layer.h --- 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); diff -r b18b07474e11 -r 53dfcd7db419 base/View.cpp --- 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 #include -//#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) {