Decorations are turned off by default

This commit is contained in:
Martin Dobias 2011-08-22 20:33:39 +02:00
parent 13a3603cf9
commit 7a2a328fdd
3 changed files with 4 additions and 10 deletions

View File

@ -68,7 +68,7 @@ void QgsDecorationCopyright::projectRead()
QgsProject* prj = QgsProject::instance();
mLabelQString = prj->readEntry( "CopyrightLabel", "/Label", defString );
mPlacementIndex = prj->readNumEntry( "CopyrightLabel", "/Placement", 3 );
mEnable = prj->readBoolEntry( "CopyrightLabel", "/Enabled", true );
mEnable = prj->readBoolEntry( "CopyrightLabel", "/Enabled", false );
mLabelQColor.setNamedColor( prj->readEntry( "CopyrightLabel", "/Color", "#000000" ) ); // default color is black
}

View File

@ -80,7 +80,7 @@ void QgsDecorationNorthArrow::projectRead()
mRotationInt = QgsProject::instance()->readNumEntry( "NorthArrow", "/Rotation", 0 );
mPlacementIndex = QgsProject::instance()->readNumEntry( "NorthArrow", "/Placement", 0 );
mEnable = QgsProject::instance()->readBoolEntry( "NorthArrow", "/Enabled", true );
mEnable = QgsProject::instance()->readBoolEntry( "NorthArrow", "/Enabled", false );
mAutomatic = QgsProject::instance()->readBoolEntry( "NorthArrow", "/Automatic", true );
}

View File

@ -62,11 +62,7 @@ QgsDecorationScaleBar::QgsDecorationScaleBar( QObject* parent )
mStyleLabels << tr( "Tick Down" ) << tr( "Tick Up" )
<< tr( "Bar" ) << tr( "Box" );
mPreferredSize = 30;
mStyleIndex = 0;
mEnabled = true;
mSnapping = true;
mColor = Qt::black;
projectRead();
}
QgsDecorationScaleBar::~QgsDecorationScaleBar()
@ -76,12 +72,10 @@ QgsDecorationScaleBar::~QgsDecorationScaleBar()
void QgsDecorationScaleBar::projectRead()
{
QgsDebugMsg( "+++++++++ scalebar plugin - project read slot called...." );
mPreferredSize = QgsProject::instance()->readNumEntry( "ScaleBar", "/PreferredSize", 30 );
mStyleIndex = QgsProject::instance()->readNumEntry( "ScaleBar", "/Style", 0 );
mPlacementIndex = QgsProject::instance()->readNumEntry( "ScaleBar", "/Placement", 2 );
mEnabled = QgsProject::instance()->readBoolEntry( "ScaleBar", "/Enabled", true );
mEnabled = QgsProject::instance()->readBoolEntry( "ScaleBar", "/Enabled", false );
mSnapping = QgsProject::instance()->readBoolEntry( "ScaleBar", "/Snapping", true );
int myRedInt = QgsProject::instance()->readNumEntry( "ScaleBar", "/ColorRedPart", 0 );
int myGreenInt = QgsProject::instance()->readNumEntry( "ScaleBar", "/ColorGreenPart", 0 );