Skip to content
Permalink
Browse files

Change to using UnitTypes

  • Loading branch information
homann committed Sep 4, 2012
1 parent 3237577 commit 9ac57906f3158857d5a87da96e3a5c9aa3afc94e
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/app/qgsoptions.cpp
@@ -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 );
}
@@ -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";

0 comments on commit 9ac5790

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