Mercurial > hg > svgui
comparison layer/LayerFactory.cpp @ 587:4806715f7a19
Seems to be a bad idea to use plain DEBUG symbol on OS/X (system wants it)
author | Chris Cannam |
---|---|
date | Tue, 14 Jun 2011 15:27:05 +0100 |
parents | f4960f8ce798 |
children | e7352a4c0a05 1a0dfcbffaf1 |
comparison
equal
deleted
inserted
replaced
586:1ae54a29e59e | 587:4806715f7a19 |
---|---|
440 | 440 |
441 default: break; | 441 default: break; |
442 } | 442 } |
443 | 443 |
444 if (!layer) { | 444 if (!layer) { |
445 DEBUG << "LayerFactory::createLayer: Unknown layer type " | 445 SVDEBUG << "LayerFactory::createLayer: Unknown layer type " |
446 << type << endl; | 446 << type << endl; |
447 } else { | 447 } else { |
448 // DEBUG << "LayerFactory::createLayer: Setting object name " | 448 // SVDEBUG << "LayerFactory::createLayer: Setting object name " |
449 // << getLayerPresentationName(type) << " on " << layer << 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 |
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 // DEBUG << "LayerFactory::setLayerDefaultProperties: type " << type << " (name \"" << getLayerTypeName(type) << "\")" << endl; | 460 // SVDEBUG << "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; |