Mercurial > hg > svgui
comparison layer/LayerFactory.cpp @ 585:f4960f8ce798 debug-output
Convert many cerrs to DEBUGs
author | Chris Cannam |
---|---|
date | Mon, 16 May 2011 17:19:25 +0100 |
parents | 1fe7951a61e8 |
children | 4806715f7a19 |
comparison
equal
deleted
inserted
replaced
584:1fe7951a61e8 | 585:f4960f8ce798 |
---|---|
440 | 440 |
441 default: break; | 441 default: break; |
442 } | 442 } |
443 | 443 |
444 if (!layer) { | 444 if (!layer) { |
445 std::cerr << "LayerFactory::createLayer: Unknown layer type " | 445 DEBUG << "LayerFactory::createLayer: Unknown layer type " |
446 << type << std::endl; | 446 << type << endl; |
447 } else { | 447 } else { |
448 // std::cerr << "LayerFactory::createLayer: Setting object name " | 448 // DEBUG << "LayerFactory::createLayer: Setting object name " |
449 // << getLayerPresentationName(type) << " on " << layer << std::endl; | 449 // << getLayerPresentationName(type) << " on " << layer << endl; |
450 layer->setObjectName(getLayerPresentationName(type)); | 450 layer->setObjectName(getLayerPresentationName(type)); |
451 setLayerDefaultProperties(type, layer); | 451 setLayerDefaultProperties(type, layer); |
452 } | 452 } |
453 | 453 |
454 return layer; | 454 return layer; |
455 } | 455 } |
456 | 456 |
457 void | 457 void |
458 LayerFactory::setLayerDefaultProperties(LayerType type, Layer *layer) | 458 LayerFactory::setLayerDefaultProperties(LayerType type, Layer *layer) |
459 { | 459 { |
460 // std::cerr << "LayerFactory::setLayerDefaultProperties: type " << type << " (name \"" << getLayerTypeName(type) << "\")" << std::endl; | 460 // DEBUG << "LayerFactory::setLayerDefaultProperties: type " << type << " (name \"" << getLayerTypeName(type) << "\")" << endl; |
461 | 461 |
462 QSettings settings; | 462 QSettings settings; |
463 settings.beginGroup("LayerDefaults"); | 463 settings.beginGroup("LayerDefaults"); |
464 QString defaults = settings.value(getLayerTypeName(type), "").toString(); | 464 QString defaults = settings.value(getLayerTypeName(type), "").toString(); |
465 if (defaults == "") return; | 465 if (defaults == "") return; |