Skip to content

Commit

Permalink
#9060: Enable degrees as valid DisplayUnit in QgsOptions dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuarte47 committed Jan 14, 2014
1 parent 48cf5b3 commit 47d253e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/qgsoptions.cpp
Expand Up @@ -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 );
Expand Down Expand Up @@ -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 ) );
Expand Down
7 changes: 7 additions & 0 deletions src/ui/qgsoptionsbase.ui
Expand Up @@ -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">
Expand Down

0 comments on commit 47d253e

Please sign in to comment.