Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Decorations are turned off by default
  • Loading branch information
wonder-sk committed Aug 22, 2011
1 parent 13a3603 commit 7a2a328
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/app/qgsdecorationcopyright.cpp
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsdecorationnortharrow.cpp
Expand Up @@ -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 );
}

Expand Down
10 changes: 2 additions & 8 deletions src/app/qgsdecorationscalebar.cpp
Expand Up @@ -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()
Expand All @@ -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 );
Expand Down

0 comments on commit 7a2a328

Please sign in to comment.