diff view/View.cpp @ 387:f329416bf1a5

* Permit holding Shift while dragging an instant or other edited thing, to override the initial drag resistance (for #1928943 sticky time instants) * better handling of updates during progressive decode load * ready() signal from model (used by vect)
author Chris Cannam
date Mon, 19 May 2008 17:23:11 +0000
parents c0818f064e66
children 881470f9ca48
line wrap: on
line diff
--- a/view/View.cpp	Fri May 16 13:27:07 2008 +0000
+++ b/view/View.cpp	Mon May 19 17:23:11 2008 +0000
@@ -1385,20 +1385,25 @@
 	    int completion = i->first->getCompletion(this);
             QString text = i->first->getPropertyContainerName();
 
+            Model *model = i->first->getModel();
+            RangeSummarisableTimeValueModel *wfm = 
+                dynamic_cast<RangeSummarisableTimeValueModel *>(model);
+
             if (completion >= 100) {
 
                 //!!!
-                Model *model = i->first->getModel();
-                RangeSummarisableTimeValueModel *wfm = 
-                    dynamic_cast<RangeSummarisableTimeValueModel *>(model);
                 if (wfm ||
                     (wfm = dynamic_cast<RangeSummarisableTimeValueModel *>
                      (model->getSourceModel()))) {
                     completion = wfm->getAlignmentCompletion();
+                    std::cerr << "View::checkProgress: Alignment completion = " << completion << std::endl;
                     if (completion < 100) {
                         text = tr("Alignment");
                     }
                 }
+
+            } else if (wfm) {
+                update(); // ensure duration &c gets updated
             }
 
 	    if (completion >= 100) {