summaryrefslogtreecommitdiffstats
path: root/kalzium/src/molcalcwidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
commita374efce3a207b39514be3c52264091400ce297e (patch)
tree77bdf654b55826d4f59b53a5621310206bcaead1 /kalzium/src/molcalcwidget.cpp
parentf81a494f3957d5cf38c787973415597941934727 (diff)
downloadtdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz
tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalzium/src/molcalcwidget.cpp')
-rw-r--r--kalzium/src/molcalcwidget.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kalzium/src/molcalcwidget.cpp b/kalzium/src/molcalcwidget.cpp
index 60eb5108..0bcc4f80 100644
--- a/kalzium/src/molcalcwidget.cpp
+++ b/kalzium/src/molcalcwidget.cpp
@@ -41,8 +41,8 @@
#include <tqtooltip.h>
-MolcalcWidget::MolcalcWidget( TQWidget *parent, const char *name )
- : MolcalcWidgetBase( parent, name )
+MolcalcWidget::MolcalcWidget( TQWidget *tqparent, const char *name )
+ : MolcalcWidgetBase( tqparent, name )
{
clear();
}
@@ -82,16 +82,16 @@ void MolcalcWidget::updateUI()
for ( ; it != itEnd; ++it ) {
// Update the resultLabel
str += i18n( "For example: \"1 Carbon\" or \"3 Oxygen\"", "%1 %2\n" )
- .arg( (*it)->count() )
- .arg( (*it)->element()->elname() );
+ .tqarg( (*it)->count() )
+ .tqarg( (*it)->element()->elname() );
complexString
+= i18n( "For example: 1 Seaborgium. Cumulative Mass: 263.119 u (39.25%)",
"%1 %2. Cumulative Mass: %3 u (%4%)\n" )
- .arg( (*it)->count() )
- .arg( (*it)->element()->elname() )
- .arg( (*it)->count() * (*it)->element()->mass() )
- .arg( KalziumUtils::strippedValue( (( (*it)->count() * (*it)->element()->mass() )
+ .tqarg( (*it)->count() )
+ .tqarg( (*it)->element()->elname() )
+ .tqarg( (*it)->count() * (*it)->element()->mass() )
+ .tqarg( KalziumUtils::strippedValue( (( (*it)->count() * (*it)->element()->mass() )
/ m_mass ) * 100 ) );
}
resultLabel->setText( str );
@@ -100,7 +100,7 @@ void MolcalcWidget::updateUI()
resultComposition->setText( compositionString(m_elementMap) );
// The mass
- resultMass->setText( i18n( "Molecular mass: %1 u" ).arg( m_mass ) );
+ resultMass->setText( i18n( "Molecular mass: %1 u" ).tqarg( m_mass ) );
TQToolTip::add( resultMass, complexString );
TQToolTip::add( resultComposition, complexString );
@@ -126,8 +126,8 @@ TQString MolcalcWidget::compositionString( ElementCountMap &_map )
ElementCountMap::Iterator itEnd = _map.end();
for (; it != itEnd; ++it) {
str += i18n( "%1<sub>%2</sub> " )
- .arg( (*it)->element()->symbol() )
- .arg( (*it)->count() );
+ .tqarg( (*it)->element()->symbol() )
+ .tqarg( (*it)->count() );
}
return str;