enable canvas rotation support by default

This commit is contained in:
Juergen E. Fischer 2015-01-16 16:56:09 +01:00
parent 93e22264c3
commit 204e7104fc
3 changed files with 3 additions and 3 deletions

View File

@ -1726,7 +1726,7 @@ void QgisApp::createStatusBar()
statusBar()->addPermanentWidget( mScaleEdit, 0 );
connect( mScaleEdit, SIGNAL( scaleChanged() ), this, SLOT( userScale() ) );
if ( QSettings().value( "/qgis/canvasRotation", false ).toBool() )
if ( QSettings().value( "/qgis/canvasRotation", true ).toBool() )
{
// add a widget to show/set current rotation
mRotationLabel = new QLabel( QString(), statusBar() );

View File

@ -583,7 +583,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl ) :
cbxCopyWKTGeomFromTable->setChecked( settings.value( "/qgis/copyGeometryAsWKT", true ).toBool() );
leNullValue->setText( settings.value( "qgis/nullValue", "NULL" ).toString() );
cbxIgnoreShapeEncoding->setChecked( settings.value( "/qgis/ignoreShapeEncoding", true ).toBool() );
cbxCanvasRotation->setChecked( settings.value( "/qgis/canvasRotation", false ).toBool() );
cbxCanvasRotation->setChecked( settings.value( "/qgis/canvasRotation", true ).toBool() );
cmbLegendDoubleClickAction->setCurrentIndex( settings.value( "/qgis/legendDoubleClickAction", 0 ).toInt() );

View File

@ -904,7 +904,7 @@ double QgsMapCanvas::rotation() const
void QgsMapCanvas::setRotation( double degrees )
{
if ( !QSettings().value( "/qgis/canvasRotation", false ).toBool() )
if ( !QSettings().value( "/qgis/canvasRotation", true ).toBool() )
return;
double current = rotation();