Skip to content

Commit

Permalink
Change to using UnitTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
homann committed Sep 4, 2012
1 parent 3237577 commit 9ac5790
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/qgsoptions.cpp
Expand Up @@ -298,8 +298,8 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WFlags fl ) :
}

// Set the units for measuring
QString myUnitsTxt = settings.value( "/qgis/measure/displayunits", "meters" ).toString();
if ( myUnitsTxt == "feet" )
QString myUnitsTxt = QGis::fromLiteral( settings.value( "/qgis/measure/displayunits", QGis::toLiteral( QGis::Meters ) ).toString() );
if ( myUnitsTxt == QGis::Feet )
{
radFeet->setChecked( true );
}
Expand Down Expand Up @@ -944,11 +944,11 @@ void QgsOptions::saveOptions()

if ( radFeet->isChecked() )
{
settings.setValue( "/qgis/measure/displayunits", "feet" );
settings.setValue( "/qgis/measure/displayunits", QGis::toLiteral( QGis::Feet ) );
}
else
{
settings.setValue( "/qgis/measure/displayunits", "meters" );
settings.setValue( "/qgis/measure/displayunits", QGis::toLiteral( QGis::Feet ) );
}

QString angleUnitString = "degrees";
Expand Down

0 comments on commit 9ac5790

Please sign in to comment.