summaryrefslogtreecommitdiff
path: root/noncore/apps/oxygen/calcdlgui.cpp
Unidiff
Diffstat (limited to 'noncore/apps/oxygen/calcdlgui.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/oxygen/calcdlgui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/oxygen/calcdlgui.cpp b/noncore/apps/oxygen/calcdlgui.cpp
index ca3a9f2..f8dfde5 100644
--- a/noncore/apps/oxygen/calcdlgui.cpp
+++ b/noncore/apps/oxygen/calcdlgui.cpp
@@ -36,25 +36,25 @@ void calcDlgUI::calc()
36 if ( compound.isEmpty() ) { 36 if ( compound.isEmpty() ) {
37 clear(); 37 clear();
38 return; 38 return;
39 } 39 }
40 QString errors( kmolcalc->readFormula( compound ) ); 40 QString errors( kmolcalc->readFormula( compound ) );
41 QString mw, ea; 41 QString mw, ea;
42 double weight = kmolcalc->getWeight(); 42 double weight = kmolcalc->getWeight();
43 if ( errors == "OK" ) { 43 if ( errors == "OK" ) {
44 mw.setNum( weight ); 44 mw.setNum( weight );
45 ea = kmolcalc->getEmpFormula() + " :\n" + kmolcalc->getEA(); 45 ea = kmolcalc->getEmpFormula() + " :\n" + kmolcalc->getEA();
46 } else { 46 } else {
47 mw = "???"; 47 mw = "???";
48 ea = tr( "ERROR: \n" ) + errors + "\n"; 48 ea = tr( "ERROR: \n" ).arg( errors )+ "\n";
49 } 49 }
50 result->setText( mw ); 50 result->setText( mw );
51 anal_display->setText( ea ); 51 anal_display->setText( ea );
52} 52}
53 53
54/** 54/**
55 * * Clear all text entry / result fields. 55 * * Clear all text entry / result fields.
56 * */ 56 * */
57void calcDlgUI::clear() 57void calcDlgUI::clear()
58{ 58{
59 formula->clear(); 59 formula->clear();
60 result->clear(); 60 result->clear();