Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 1ce2a10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -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 ) &&
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsoptions.cpp
Expand Up @@ -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" ) );
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayerrenderer.cpp
Expand Up @@ -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" ) )
Expand Down

0 comments on commit 1ce2a10

Please sign in to comment.