Skip to content
Permalink
Browse files

Set default margin units to MM

  • Loading branch information
duncan-r authored and nyalldawson committed Jan 11, 2016
1 parent 3a1d47f commit 4af65e63296707e95ae6541d39076a7a37d9cb6f
@@ -47,7 +47,7 @@ QgsDecorationCopyright::QgsDecorationCopyright( QObject* parent )
, mMarginVertical( 0 )
{
mPlacement = BottomRight;
mMarginUnit = QgsSymbolV2::Pixel;
mMarginUnit = QgsSymbolV2::MM;

setName( "Copyright Label" );
// initialise default values in the gui
@@ -46,7 +46,7 @@ QgsDecorationItem::QgsDecorationItem( QObject* parent )
: QObject( parent )
, mEnabled( false )
, mPlacement( TopLeft )
, mMarginUnit( QgsSymbolV2::Pixel )
, mMarginUnit( QgsSymbolV2::MM )
{
}

@@ -62,7 +62,7 @@ QgsDecorationNorthArrow::QgsDecorationNorthArrow( QObject* parent )
, mMarginVertical( 0 )
{
mPlacement = BottomLeft;
mMarginUnit = QgsSymbolV2::Pixel;
mMarginUnit = QgsSymbolV2::MM;

setName( "North Arrow" );
projectRead();
@@ -55,7 +55,7 @@ QgsDecorationScaleBar::QgsDecorationScaleBar( QObject* parent )
, mMarginVertical( 0 )
{
mPlacement = TopLeft;
mMarginUnit = QgsSymbolV2::Pixel;
mMarginUnit = QgsSymbolV2::MM;
mStyleLabels << tr( "Tick Down" ) << tr( "Tick Up" )
<< tr( "Bar" ) << tr( "Box" );

0 comments on commit 4af65e6

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