Skip to content

Commit c2873ca

Browse files
author
timlinux
committedFeb 24, 2011
Set the use of symbology ng and anti aliasing to default for qgis 1.7
git-svn-id: http://svn.osgeo.org/qgis/trunk@15259 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent cdc9ae7 commit c2873ca

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2375,7 +2375,8 @@ void QgisApp::createOverview()
23752375

23762376
// moved here to set anti aliasing to both map canvas and overview
23772377
QSettings mySettings;
2378-
mMapCanvas->enableAntiAliasing( mySettings.value( "/qgis/enable_anti_aliasing", false ).toBool() );
2378+
// Anti Aliasing enabled by default as of QGIS 1.7
2379+
mMapCanvas->enableAntiAliasing( mySettings.value( "/qgis/enable_anti_aliasing", true ).toBool() );
23792380
mMapCanvas->useImageToRender( mySettings.value( "/qgis/use_qimage_to_render", false ).toBool() );
23802381

23812382
int action = mySettings.value( "/qgis/wheel_action", 0 ).toInt();

‎src/app/qgsoptions.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,12 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WFlags fl ) :
260260
cmbTheme->setCurrentIndex( cmbTheme->findText( settings.value( "/Themes", "default" ).toString() ) );
261261
cmbSize->setCurrentIndex( cmbSize->findText( settings.value( "/IconSize", 24 ).toString() ) );
262262
//set the state of the checkboxes
263-
chkAntiAliasing->setChecked( settings.value( "/qgis/enable_anti_aliasing", false ).toBool() );
263+
//Changed to default to true as of QGIS 1.7
264+
chkAntiAliasing->setChecked( settings.value( "/qgis/enable_anti_aliasing", true ).toBool() );
264265
chkUseRenderCaching->setChecked( settings.value( "/qgis/enable_render_caching", false ).toBool() );
265266

266-
chkUseSymbologyNG->setChecked( settings.value( "/qgis/use_symbology_ng", false ).toBool() );
267+
//Changed to default to true as of QGIS 1.7
268+
chkUseSymbologyNG->setChecked( settings.value( "/qgis/use_symbology_ng", true ).toBool() );
267269

268270
// Slightly awkard here at the settings value is true to use QImage,
269271
// but the checkbox is true to use QPixmap

‎src/core/composer/qgscomposermap.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ void QgsComposerMap::draw( QPainter *painter, const QgsRectangle& extent, const
150150

151151
//set antialiasing if enabled in options
152152
QSettings settings;
153-
if ( settings.value( "/qgis/enable_anti_aliasing", false ).toBool() )
153+
// Changed to enable anti aliased rendering by default as of QGIS 1.7
154+
if ( settings.value( "/qgis/enable_anti_aliasing", true ).toBool() )
154155
{
155156
painter->setRenderHint( QPainter::Antialiasing );
156157
}

‎src/core/qgsmaprenderer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,8 @@ void QgsMapRenderer::render( QPainter* painter )
459459
mypImage->fill( 0 );
460460
ml->setCacheImage( mypImage ); //no need to delete the old one, maplayer does it for you
461461
QPainter * mypPainter = new QPainter( ml->cacheImage() );
462-
if ( mySettings.value( "/qgis/enable_anti_aliasing", false ).toBool() )
462+
// Changed to enable anti aliasing by default in QGIS 1.7
463+
if ( mySettings.value( "/qgis/enable_anti_aliasing", true ).toBool() )
463464
{
464465
mypPainter->setRenderHint( QPainter::Antialiasing );
465466
}

‎src/core/qgsvectorlayer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ QgsVectorLayer::QgsVectorLayer( QString vectorLayerPath,
127127
setCoordinateSystem();
128128

129129
QSettings settings;
130-
if ( settings.value( "/qgis/use_symbology_ng", false ).toBool() && hasGeometryType() )
130+
//Changed to default to true as of QGIS 1.7
131+
if ( settings.value( "/qgis/use_symbology_ng", true ).toBool() && hasGeometryType() )
131132
{
132133
// using symbology-ng!
133134
setUsingRendererV2( true );

0 commit comments

Comments
 (0)
Please sign in to comment.