comparison view/View.cpp @ 292:24fc90078754

* Add QuickTime file reader class -- totally untested, shouldn't even compile
author Chris Cannam
date Mon, 06 Aug 2007 14:37:59 +0000
parents cd2492c5fe45
children ea37c229a578
comparison
equal deleted inserted replaced
291:3801289761a1 292:24fc90078754
434 434
435 bool 435 bool
436 View::hasLightBackground() const 436 View::hasLightBackground() const
437 { 437 {
438 bool darkPalette = false; 438 bool darkPalette = false;
439 439 if (m_manager) darkPalette = m_manager->getGlobalDarkBackground();
440 QColor windowBg = palette().color(QPalette::Window);
441 if (windowBg.red() + windowBg.green() + windowBg.blue() < 384) {
442 darkPalette = true;
443 }
444 440
445 Layer::ColourSignificance maxSignificance = Layer::ColourAbsent; 441 Layer::ColourSignificance maxSignificance = Layer::ColourAbsent;
446 bool mostSignificantHasDarkBackground = false; 442 bool mostSignificantHasDarkBackground = false;
447 443
448 for (LayerList::const_iterator i = m_layers.begin(); 444 for (LayerList::const_iterator i = m_layers.begin();