Skip to content
Permalink
Browse files
Use 0.2 as default line width thoughout.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9710 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Nov 26, 2008
1 parent 1be590b commit a8f03587f9bb8224cc10e4ebd635214c04445b0b
@@ -19,6 +19,7 @@

#include "qgscontinuouscolordialog.h"
#include "qgscontinuouscolorrenderer.h"
#include "qgis.h"
#include "qgsfield.h"
#include "qgssymbol.h"
#include "qgsvectordataprovider.h"
@@ -122,7 +123,7 @@ QgsContinuousColorDialog::QgsContinuousColorDialog( QgsVectorLayer * layer )
else
{
cb_polygonOutline->setCheckState( Qt::Checked );
outlinewidthspinbox->setValue( 0.4 );
outlinewidthspinbox->setValue( DEFAULT_LINE_WIDTH );
if ( mVectorLayer->geometryType() != QGis::Polygon )
cb_polygonOutline->setVisible( false );

@@ -151,6 +151,7 @@ const int USER_CRS_START_ID = 100000;
const double MINIMUM_POINT_SIZE = 0.1;
/** Magic number that determines the default point size for point symbols */
const double DEFAULT_POINT_SIZE = 2.0;
const double DEFAULT_LINE_WIDTH = 0.2;

// FIXME: also in qgisinterface.h
#ifndef QGISEXTERN
@@ -53,7 +53,7 @@ QgsSingleSymbolRenderer::QgsSingleSymbolRenderer( QGis::GeometryType type )
sy->setFillStyle( Qt::SolidPattern );
sy->setColor( QColor( 0, 0, 0 ) );
}
sy->setLineWidth( 0.2 );
sy->setLineWidth( DEFAULT_LINE_WIDTH ); //declared in qgis.h
mSymbol = sy;
updateSymbolAttributes();
}
@@ -18,6 +18,7 @@
/* $Id$ */
#include <cmath>

#include "qgis.h"
#include "qgssymbol.h"
#include "qgslogger.h"
#include "qgssymbologyutils.h"
@@ -47,7 +48,9 @@ QgsSymbol::QgsSymbol( QGis::GeometryType t, QString lvalue, QString uvalue, QStr
mCacheUpToDate2( false ),
mRotationClassificationField( -1 ),
mScaleClassificationField( -1 )
{}
{
mPen.setWidth( DEFAULT_LINE_WIDTH );
}


QgsSymbol::QgsSymbol( QGis::GeometryType t, QString lvalue, QString uvalue, QString label, QColor c ) :
@@ -65,7 +68,9 @@ QgsSymbol::QgsSymbol( QGis::GeometryType t, QString lvalue, QString uvalue, QStr
mCacheUpToDate2( false ),
mRotationClassificationField( -1 ),
mScaleClassificationField( -1 )
{}
{
mPen.setWidth( DEFAULT_LINE_WIDTH );
}

QgsSymbol::QgsSymbol()
: mPointSymbolName( "hard:circle" ),
@@ -76,7 +81,9 @@ QgsSymbol::QgsSymbol()
mCacheUpToDate2( false ),
mRotationClassificationField( -1 ),
mScaleClassificationField( -1 )
{}
{
mPen.setWidth( DEFAULT_LINE_WIDTH );
}


QgsSymbol::QgsSymbol( QColor c )
@@ -90,7 +97,9 @@ QgsSymbol::QgsSymbol( QColor c )
mCacheUpToDate2( false ),
mRotationClassificationField( -1 ),
mScaleClassificationField( -1 )
{}
{
mPen.setWidth( DEFAULT_LINE_WIDTH );
}

QgsSymbol::QgsSymbol( const QgsSymbol& s )
{

0 comments on commit a8f0358

Please sign in to comment.