Explorar el Código

only show degrees fahrenheit if measurement system is imperial us system

Maldela hace 9 años
padre
commit
1667dc4665
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/src/guibase.cpp

+ 1 - 1
lib/src/guibase.cpp

@@ -49,7 +49,7 @@ GUIBase::GUIBase(QObject *parent) : QObject(parent),
 
     QLocale locale = QLocale::system();
     QLocale::MeasurementSystem system = locale.measurementSystem();
-    m_unit = (system == QLocale::MetricSystem) ? 0 : 2;
+    m_unit = (system != QLocale::ImperialUSSystem) ? 0 : 2;
 
     qmlRegisterType<Loader>();
     qmlRegisterType<Hwmon>();