From: Anne-Marie Mahfouf Date: Thu, 17 Feb 2005 20:51:24 +0000 (+0000) Subject: fix #92516 In english, the word kelvin as an SI unit is correctly written with a... X-Git-Tag: v3.80.2~300^2~157 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=96510dad95a35cab560438dc1250be88701a1f48;p=libqmvoc.git fix #92516 In english, the word kelvin as an SI unit is correctly written with a lowercase k BUGS:92516 svn path=/trunk/kdeedu/kalzium/src/element.cpp; revision=390370 --- diff --git a/kalzium/src/element.cpp b/kalzium/src/element.cpp index 85532b4..ace21f1 100644 --- a/kalzium/src/element.cpp +++ b/kalzium/src/element.cpp @@ -117,14 +117,14 @@ const QString Element::adjustUnits( const int type ) val = melting(); switch (Prefs::temperature()) { - case 0: //Kelvin + case 0: //kelvin v = i18n( "%1 K" ).arg( QString::number( val ) ); break; - case 1://Kelvin to Celsius + case 1://kelvin to Celsius val-=273.15; v = i18n( "%1 C" ).arg( QString::number( val ) ); break; - case 2: // Kelvin to Fahrenheit + case 2: // kelvin to Fahrenheit val = val * 1.8 - 459.67; v = i18n( "%1 F" ).arg( QString::number( val ) ); break; diff --git a/kalzium/src/element.h b/kalzium/src/element.h index 57e742b..eaaac30 100644 --- a/kalzium/src/element.h +++ b/kalzium/src/element.h @@ -148,14 +148,14 @@ class Element{ QString parsedOrbits(); /** - * @return the boiling point of the element in Kelvin + * @return the boiling point of the element in kelvin */ double boiling() const { return m_BP; } /** - * @return the melting point of the element in Kelvin + * @return the melting point of the element in kelvin */ double melting() const { return m_MP; @@ -214,7 +214,7 @@ class Element{ /** * adjusts the units for the data. The user can - * eg define if Fahrenheit, Kelvin or Degrees Celsius + * eg define if Fahrenheit, kelvin or Degrees Celsius * should be used for the temperature. This method * takes care of that. * @param val the value which has to be adjusted