Mercurial > hg > svgui
changeset 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 |
files | view/View.cpp |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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<RangeSummarisableTimeValueModel *>(model); + if (completion > 0) { + i->second->setMaximum(100); // was 0, for indeterminate start + } + if (completion >= 100) { //!!!