Skip to content

Commit 638dcd4

Browse files
author
wonder
committed
Use cross by default as editing vertex marker: semi-transparent circle markers take way too long time to render.
Also make the markers smaller by default for better readability. git-svn-id: http://svn.osgeo.org/qgis/trunk@12558 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent fbaa7e8 commit 638dcd4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/qgsoptions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WFlags fl ) :
265265
mMarkerStyleComboBox->addItem( tr( "Cross" ) );
266266
mMarkerStyleComboBox->addItem( tr( "None" ) );
267267

268-
QString markerStyle = settings.value( "/qgis/digitizing/marker_style", "SemiTransparentCircle" ).toString();
268+
QString markerStyle = settings.value( "/qgis/digitizing/marker_style", "Cross" ).toString();
269269
if ( markerStyle == "SemiTransparentCircle" )
270270
{
271271
mMarkerStyleComboBox->setCurrentIndex( mMarkerStyleComboBox->findText( tr( "Semi transparent circle" ) ) );
@@ -278,7 +278,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WFlags fl ) :
278278
{
279279
mMarkerStyleComboBox->setCurrentIndex( mMarkerStyleComboBox->findText( tr( "None" ) ) );
280280
}
281-
mMarkerSizeSpinBox->setValue( settings.value( "/qgis/digitizing/marker_size", 7 ).toInt() );
281+
mMarkerSizeSpinBox->setValue( settings.value( "/qgis/digitizing/marker_size", 3 ).toInt() );
282282

283283
chkDisableAttributeValuesDlg->setChecked( settings.value( "/qgis/digitizing/disable_enter_attribute_values_dialog", false ).toBool() );
284284

src/core/qgsvectorlayer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3812,7 +3812,7 @@ int QgsVectorLayer::boundingBoxFromPointList( const QList<QgsPoint>& list, doubl
38123812
QgsVectorLayer::VertexMarkerType QgsVectorLayer::currentVertexMarkerType()
38133813
{
38143814
QSettings settings;
3815-
QString markerTypeString = settings.value( "/qgis/digitizing/marker_style", "SemiTransparentCircle" ).toString();
3815+
QString markerTypeString = settings.value( "/qgis/digitizing/marker_style", "Cross" ).toString();
38163816
if ( markerTypeString == "Cross" )
38173817
{
38183818
return QgsVectorLayer::Cross;
@@ -3830,7 +3830,7 @@ QgsVectorLayer::VertexMarkerType QgsVectorLayer::currentVertexMarkerType()
38303830
int QgsVectorLayer::currentVertexMarkerSize()
38313831
{
38323832
QSettings settings;
3833-
return settings.value( "/qgis/digitizing/marker_size", 7 ).toInt();
3833+
return settings.value( "/qgis/digitizing/marker_size", 3 ).toInt();
38343834
}
38353835

38363836
void QgsVectorLayer::drawFeature( QgsRenderContext &renderContext,

0 commit comments

Comments
 (0)