comparison 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
comparison
equal deleted inserted replaced
386:590b899b7e45 387:f329416bf1a5
1383 if (i->first == object) { 1383 if (i->first == object) {
1384 1384
1385 int completion = i->first->getCompletion(this); 1385 int completion = i->first->getCompletion(this);
1386 QString text = i->first->getPropertyContainerName(); 1386 QString text = i->first->getPropertyContainerName();
1387 1387
1388 Model *model = i->first->getModel();
1389 RangeSummarisableTimeValueModel *wfm =
1390 dynamic_cast<RangeSummarisableTimeValueModel *>(model);
1391
1388 if (completion >= 100) { 1392 if (completion >= 100) {
1389 1393
1390 //!!! 1394 //!!!
1391 Model *model = i->first->getModel();
1392 RangeSummarisableTimeValueModel *wfm =
1393 dynamic_cast<RangeSummarisableTimeValueModel *>(model);
1394 if (wfm || 1395 if (wfm ||
1395 (wfm = dynamic_cast<RangeSummarisableTimeValueModel *> 1396 (wfm = dynamic_cast<RangeSummarisableTimeValueModel *>
1396 (model->getSourceModel()))) { 1397 (model->getSourceModel()))) {
1397 completion = wfm->getAlignmentCompletion(); 1398 completion = wfm->getAlignmentCompletion();
1399 std::cerr << "View::checkProgress: Alignment completion = " << completion << std::endl;
1398 if (completion < 100) { 1400 if (completion < 100) {
1399 text = tr("Alignment"); 1401 text = tr("Alignment");
1400 } 1402 }
1401 } 1403 }
1404
1405 } else if (wfm) {
1406 update(); // ensure duration &c gets updated
1402 } 1407 }
1403 1408
1404 if (completion >= 100) { 1409 if (completion >= 100) {
1405 1410
1406 i->second->hide(); 1411 i->second->hide();