Skip to content
Permalink
Browse files

Set better default drop shadow parameters

  • Loading branch information
dakcarto committed Apr 18, 2013
1 parent cf6eabf commit bf0e8c516ff14eb70f164fe38f2a8ad2bd06b35e
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/core/qgspallabeling.cpp
@@ -281,13 +281,13 @@ QgsPalLayerSettings::QgsPalLayerSettings()
shadowDraw = false;
shadowUnder = ShadowLowest;
shadowOffsetAngle = 135;
shadowOffsetDist = 0.0;
shadowOffsetDist = 1.0;
shadowOffsetUnits = MM;
shadowOffsetGlobal = true;
shadowRadius = 0.0;
shadowRadius = 1.5;
shadowRadiusUnits = MM;
shadowRadiusAlphaOnly = false;
shadowTransparency = 0;
shadowTransparency = 30;
shadowScale = 100;
shadowColor = Qt::black;
shadowBlendMode = QPainter::CompositionMode_Multiply;
@@ -689,13 +689,13 @@ void QgsPalLayerSettings::readFromLayer( QgsVectorLayer* layer )
shadowDraw = layer->customProperty( "labeling/shadowDraw", QVariant( false ) ).toBool();
shadowUnder = ( ShadowType )layer->customProperty( "labeling/shadowUnder", QVariant( ShadowLowest ) ).toUInt();//ShadowLowest;
shadowOffsetAngle = layer->customProperty( "labeling/shadowOffsetAngle", QVariant( 135 ) ).toInt();
shadowOffsetDist = layer->customProperty( "labeling/shadowOffsetDist", QVariant( 0.0 ) ).toDouble();
shadowOffsetDist = layer->customProperty( "labeling/shadowOffsetDist", QVariant( 1.0 ) ).toDouble();
shadowOffsetUnits = ( SizeUnit )layer->customProperty( "labeling/shadowOffsetUnits", QVariant( MM ) ).toUInt();
shadowOffsetGlobal = layer->customProperty( "labeling/shadowOffsetGlobal", QVariant( true ) ).toBool();
shadowRadius = layer->customProperty( "labeling/shadowRadius", QVariant( 0.0 ) ).toDouble();
shadowRadius = layer->customProperty( "labeling/shadowRadius", QVariant( 1.5 ) ).toDouble();
shadowRadiusUnits = ( SizeUnit )layer->customProperty( "labeling/shadowRadiusUnits", QVariant( MM ) ).toUInt();
shadowRadiusAlphaOnly = layer->customProperty( "labeling/shadowRadiusAlphaOnly", QVariant( false ) ).toBool();
shadowTransparency = layer->customProperty( "labeling/shadowTransparency", QVariant( 0 ) ).toInt();
shadowTransparency = layer->customProperty( "labeling/shadowTransparency", QVariant( 30 ) ).toInt();
shadowScale = layer->customProperty( "labeling/shadowScale", QVariant( 100 ) ).toInt();
shadowColor = _readColor( layer, "labeling/shadowColor", Qt::black, false );
shadowBlendMode = QgsMapRenderer::getCompositionMode(

0 comments on commit bf0e8c5

Please sign in to comment.
You can’t perform that action at this time.