[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeedu/kalzium/src
From:       Carsten Niehaus <cniehaus () gmx ! de>
Date:       2005-01-19 12:53:30
Message-ID: 20050119125330.3CC811B976 () office ! kde ! org
[Download RAW message or body]

CVS commit by cniehaus: 

respect the energie-unit in HEAD as well


  M +11 -2     element.cpp   1.11


--- kdeedu/kalzium/src/element.cpp  #1.10:1.11
@@ -99,8 +99,17 @@ const QString Element::adjustUnits( cons
                 else 
                 {
+                        if ( Prefs::energies() == 0 )
+                        {
+                                val*=96.6;
+                                v = QString::number( val );
+                                v.append( "kj/mol" );
+                        }
+                        else // use electronvolt
+                        {
                         v = QString::number( val );
                         v.append( "eV" );
                 }
         }
+        }
         else if ( type == BOILINGPOINT || type == MELTINGPOINT ) // convert a temperature
         {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic