Skip to content
Permalink
Browse files

#9060: Enable degrees as valid DisplayUnit in QgsOptions dialog

  • Loading branch information
ahuarte47 committed Jan 14, 2014
1 parent 48cf5b3 commit 47d253e0a8ce5810a258c65647e684bf2099f399
Showing with 15 additions and 0 deletions.
  1. +8 −0 src/app/qgsoptions.cpp
  2. +7 −0 src/ui/qgsoptionsbase.ui
@@ -458,6 +458,10 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WFlags fl ) :
{
radNautical->setChecked( true );
}
else if ( myDisplayUnits == QGis::Degrees )
{
radDegrees->setChecked( true );
}
else
{
radMeters->setChecked( true );
@@ -1194,6 +1198,10 @@ void QgsOptions::saveOptions()
{
settings.setValue( "/qgis/measure/displayunits", QGis::toLiteral( QGis::NauticalMiles ) );
}
else if ( radDegrees->isChecked() )
{
settings.setValue( "/qgis/measure/displayunits", QGis::toLiteral( QGis::Degrees ) );
}
else
{
settings.setValue( "/qgis/measure/displayunits", QGis::toLiteral( QGis::Meters ) );
@@ -2758,6 +2758,13 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
</item>
<item row="5" column="4">
<widget class="QRadioButton" name="radDegrees">
<property name="text">
<string>Degrees</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="mAngleUnitsLabel">
<property name="text">

0 comments on commit 47d253e

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