# HG changeset patch # User Chris Cannam # Date 1211272666 0 # Node ID 881470f9ca48e68116668a4b483360a9aa22a94b # Parent f329416bf1a529b678453f69df0a3135b6192853 * Start layer progress bars in "indeterminate" mode diff -r f329416bf1a5 -r 881470f9ca48 view/View.cpp --- a/view/View.cpp Mon May 19 17:23:11 2008 +0000 +++ b/view/View.cpp Tue May 20 08:37:46 2008 +0000 @@ -530,7 +530,8 @@ // m_progressBars[layer] = new LayerProgressBar(this); m_progressBars[layer] = new QProgressBar(this); m_progressBars[layer]->setMinimum(0); - m_progressBars[layer]->setMaximum(100); + m_progressBars[layer]->setMaximum(0); +// m_progressBars[layer]->setMaximum(100); // m_progressBars[layer]->setMinimumWidth(80); m_progressBars[layer]->setFixedWidth(80); // m_progressBars[layer]->setText(""); //!!! @@ -1389,6 +1390,10 @@ RangeSummarisableTimeValueModel *wfm = dynamic_cast(model); + if (completion > 0) { + i->second->setMaximum(100); // was 0, for indeterminate start + } + if (completion >= 100) { //!!!