Skip to content
Permalink
Browse files

Rename checkbox

  • Loading branch information
m-kuhn committed Aug 23, 2018
1 parent d24ffbc commit d93d585b4a7c1a0bbf012ad8508fd2a7e5d92e0d
Showing with 5 additions and 5 deletions.
  1. +4 −4 src/app/qgsvectorlayerproperties.cpp
  2. +1 −1 src/ui/qgsvectorlayerpropertiesbase.ui
@@ -425,17 +425,17 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(

if ( mLayer->isSpatial() )
{
mRemoveDuplicateVerticeCheckbox->setEnabled( true );
mRemoveDuplicateNodesCheckbox->setEnabled( true );
mGeometryPrecisionSpinBox->setEnabled( true );

mRemoveDuplicateVerticeCheckbox->setChecked( mLayer->removeDuplicateNodes() );
mRemoveDuplicateNodesCheckbox->setChecked( mLayer->removeDuplicateNodes() );
mGeometryPrecisionSpinBox->setValue( mLayer->geometryPrecision() );

mGeometryPrecisionSpinBox->setSuffix( QStringLiteral( " [%1]" ).arg( QgsUnitTypes::toAbbreviatedString( mLayer->crs().mapUnits() ) ) );
}
else
{
mRemoveDuplicateVerticeCheckbox->setEnabled( false );
mRemoveDuplicateNodesCheckbox->setEnabled( false );
mGeometryPrecisionSpinBox->setEnabled( false );
}

@@ -777,7 +777,7 @@ void QgsVectorLayerProperties::apply()
mVector3DWidget->apply();
#endif

mLayer->setRemoveDuplicateNodes( mRemoveDuplicateVerticeCheckbox->isChecked() );
mLayer->setRemoveDuplicateNodes( mRemoveDuplicateNodesCheckbox->isChecked() );
mLayer->setGeometryPrecision( mGeometryPrecisionSpinBox->value() );

// update symbology
@@ -2372,7 +2372,7 @@ border-radius: 2px;</string>
</widget>
</item>
<item row="0" column="0" colspan="2">
<widget class="QCheckBox" name="mRemoveDuplicateVerticeCheckbox">
<widget class="QCheckBox" name="mRemoveDuplicateNodesCheckbox">
<property name="text">
<string>Remove duplicate nodes</string>
</property>

0 comments on commit d93d585

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