Set default margin units to MM

This commit is contained in:
Duncan Runnacles 2016-01-11 14:52:20 +00:00 committed by Nyall Dawson
parent 3a1d47fef7
commit 4af65e6329
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -46,7 +46,7 @@ QgsDecorationItem::QgsDecorationItem( QObject* parent )
: QObject( parent )
, mEnabled( false )
, mPlacement( TopLeft )
, mMarginUnit( QgsSymbolV2::Pixel )
, mMarginUnit( QgsSymbolV2::MM )
{
}

View File

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

View File

@ -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" );