diff view/View.cpp @ 326:4f4f38a11cd2

* Factor out uses of "Sonic Visualiser" in "common" code to applicationName() * Add ability to show work title + artist in top-left of pane (thinking of Vect but may be useful in SV in future) * A few other generalisations useful for Vect
author Chris Cannam
date Fri, 09 Nov 2007 17:46:58 +0000
parents 973a0272b712
children b6df8b44b98d
line wrap: on
line diff
--- a/view/View.cpp	Wed Nov 07 16:52:52 2007 +0000
+++ b/view/View.cpp	Fri Nov 09 17:46:58 2007 +0000
@@ -802,7 +802,7 @@
 void
 View::modelCompletionChanged()
 {
-    std::cerr << "View(" << this << ")::modelCompletionChanged()" << std::endl;
+//    std::cerr << "View(" << this << ")::modelCompletionChanged()" << std::endl;
 
     QObject *obj = sender();
     checkProgress(obj);
@@ -811,7 +811,7 @@
 void
 View::modelAlignmentCompletionChanged()
 {
-    std::cerr << "View(" << this << ")::modelAlignmentCompletionChanged()" << std::endl;
+//    std::cerr << "View(" << this << ")::modelAlignmentCompletionChanged()" << std::endl;
 
     QObject *obj = sender();
     checkProgress(obj);
@@ -1354,7 +1354,9 @@
                 Model *model = i->first->getModel();
                 RangeSummarisableTimeValueModel *wfm = 
                     dynamic_cast<RangeSummarisableTimeValueModel *>(model);
-                if (wfm) {
+                if (wfm ||
+                    dynamic_cast<RangeSummarisableTimeValueModel *>
+                    (model->getSourceModel())) {
                     completion = wfm->getAlignmentCompletion();
                     if (completion < 100) {
                         text = tr("Alignment");