comparison view/View.cpp @ 385:c0818f064e66

...
author Chris Cannam
date Mon, 12 May 2008 15:30:11 +0000
parents c1e5af9f2c3c
children f329416bf1a5
comparison
equal deleted inserted replaced
384:c1e5af9f2c3c 385:c0818f064e66
525 SingleColourLayer *scl = dynamic_cast<SingleColourLayer *>(layer); 525 SingleColourLayer *scl = dynamic_cast<SingleColourLayer *>(layer);
526 if (scl) scl->setDefaultColourFor(this); 526 if (scl) scl->setDefaultColourFor(this);
527 527
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]->setMinimum(0); 532 m_progressBars[layer]->setMinimum(0);
532 m_progressBars[layer]->setMaximum(100); 533 m_progressBars[layer]->setMaximum(100);
533 m_progressBars[layer]->setMinimumWidth(80); 534 // m_progressBars[layer]->setMinimumWidth(80);
535 m_progressBars[layer]->setFixedWidth(80);
536 // m_progressBars[layer]->setText(""); //!!!
537 m_progressBars[layer]->setTextVisible(false);
534 538
535 QFont f(m_progressBars[layer]->font()); 539 QFont f(m_progressBars[layer]->font());
536 int fs = Preferences::getInstance()->getViewFontSize(); 540 int fs = Preferences::getInstance()->getViewFontSize();
537 f.setPointSize(std::min(fs, int(ceil(fs * 0.85)))); 541 f.setPointSize(std::min(fs, int(ceil(fs * 0.85))));
538 542