mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Tests for Units Preferences
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9c4b0170bf
commit
a42b05578f
2 changed files with 40 additions and 1 deletions
|
@ -1557,7 +1557,9 @@ int UnitsSettings::verticalSpeedTime() const
|
|||
|
||||
QString UnitsSettings::unitSystem() const
|
||||
{
|
||||
return QString(); /*FIXME: there's no char * units on the prefs. */
|
||||
return prefs.unit_system == METRIC ? QStringLiteral("metric")
|
||||
: prefs.unit_system == IMPERIAL ? QStringLiteral("imperial")
|
||||
: QStringLiteral("personalized");
|
||||
}
|
||||
|
||||
bool UnitsSettings::coordinatesTraditional() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue