comparison view/View.cpp @ 388:881470f9ca48

* Start layer progress bars in "indeterminate" mode
author Chris Cannam
date Tue, 20 May 2008 08:37:46 +0000
parents f329416bf1a5
children 2ed4e572d0d4
comparison
equal deleted inserted replaced
387:f329416bf1a5 388:881470f9ca48
528 m_layers.push_back(layer); 528 m_layers.push_back(layer);
529 529
530 // m_progressBars[layer] = new LayerProgressBar(this); 530 // m_progressBars[layer] = new LayerProgressBar(this);
531 m_progressBars[layer] = new QProgressBar(this); 531 m_progressBars[layer] = new QProgressBar(this);
532 m_progressBars[layer]->setMinimum(0); 532 m_progressBars[layer]->setMinimum(0);
533 m_progressBars[layer]->setMaximum(100); 533 m_progressBars[layer]->setMaximum(0);
534 // m_progressBars[layer]->setMaximum(100);
534 // m_progressBars[layer]->setMinimumWidth(80); 535 // m_progressBars[layer]->setMinimumWidth(80);
535 m_progressBars[layer]->setFixedWidth(80); 536 m_progressBars[layer]->setFixedWidth(80);
536 // m_progressBars[layer]->setText(""); //!!! 537 // m_progressBars[layer]->setText(""); //!!!
537 m_progressBars[layer]->setTextVisible(false); 538 m_progressBars[layer]->setTextVisible(false);
538 539
1386 QString text = i->first->getPropertyContainerName(); 1387 QString text = i->first->getPropertyContainerName();
1387 1388
1388 Model *model = i->first->getModel(); 1389 Model *model = i->first->getModel();
1389 RangeSummarisableTimeValueModel *wfm = 1390 RangeSummarisableTimeValueModel *wfm =
1390 dynamic_cast<RangeSummarisableTimeValueModel *>(model); 1391 dynamic_cast<RangeSummarisableTimeValueModel *>(model);
1392
1393 if (completion > 0) {
1394 i->second->setMaximum(100); // was 0, for indeterminate start
1395 }
1391 1396
1392 if (completion >= 100) { 1397 if (completion >= 100) {
1393 1398
1394 //!!! 1399 //!!!
1395 if (wfm || 1400 if (wfm ||