Skip to content
Permalink
Browse files

Show only selected features vertices by default (#3821)

* Show only selected features vertices by default

* Show only selected features vertices by default

* Show only selected features vertices by default
  • Loading branch information
DelazJ authored and m-kuhn committed Dec 1, 2016
1 parent b59fc04 commit 1ce2a102bbd26e3364211a91d8251a2414797510
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/app/qgisapp.cpp
  2. +1 −1 src/app/qgsoptions.cpp
  3. +1 −1 src/core/qgsvectorlayerrenderer.cpp
@@ -7915,7 +7915,7 @@ bool QgisApp::toggleEditing( QgsMapLayer *layer, bool allowCancel )

QSettings settings;
QString markerType = settings.value( QStringLiteral( "/qgis/digitizing/marker_style" ), "Cross" ).toString();
bool markSelectedOnly = settings.value( QStringLiteral( "/qgis/digitizing/marker_only_for_selected" ), false ).toBool();
bool markSelectedOnly = settings.value( QStringLiteral( "/qgis/digitizing/marker_only_for_selected" ), true ).toBool();

// redraw only if markers will be drawn
if (( !markSelectedOnly || vlayer->selectedFeatureCount() > 0 ) &&
@@ -881,7 +881,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl )
mSearchRadiusVertexEditComboBox->setCurrentIndex( index );

//vertex marker
mMarkersOnlyForSelectedCheckBox->setChecked( mSettings->value( QStringLiteral( "/qgis/digitizing/marker_only_for_selected" ), false ).toBool() );
mMarkersOnlyForSelectedCheckBox->setChecked( mSettings->value( QStringLiteral( "/qgis/digitizing/marker_only_for_selected" ), true ).toBool() );

mMarkerStyleComboBox->addItem( tr( "Semi transparent circle" ) );
mMarkerStyleComboBox->addItem( tr( "Cross" ) );
@@ -71,7 +71,7 @@ QgsVectorLayerRenderer::QgsVectorLayerRenderer( QgsVectorLayer* layer, QgsRender
mSimplifyGeometry = layer->simplifyDrawingCanbeApplied( mContext, QgsVectorSimplifyMethod::GeometrySimplification );

QSettings settings;
mVertexMarkerOnlyForSelection = settings.value( QStringLiteral( "/qgis/digitizing/marker_only_for_selected" ), false ).toBool();
mVertexMarkerOnlyForSelection = settings.value( QStringLiteral( "/qgis/digitizing/marker_only_for_selected" ), true ).toBool();

QString markerTypeString = settings.value( QStringLiteral( "/qgis/digitizing/marker_style" ), "Cross" ).toString();
if ( markerTypeString == QLatin1String( "Cross" ) )

0 comments on commit 1ce2a10

Please sign in to comment.
You can’t perform that action at this time.