BUGS:92516
svn path=/trunk/kdeedu/kalzium/src/element.cpp; revision=390370
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;
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;
/**
* 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