summaryrefslogtreecommitdiffstats
path: root/kalzium/src/orbitswidget.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/orbitswidget.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/orbitswidget.cpp')
-rw-r--r--kalzium/src/orbitswidget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kalzium/src/orbitswidget.cpp b/kalzium/src/orbitswidget.cpp
index 06824c0f..35e74bf7 100644
--- a/kalzium/src/orbitswidget.cpp
+++ b/kalzium/src/orbitswidget.cpp
@@ -24,7 +24,7 @@
static TQStringList hulllist;
-OrbitsWidget::OrbitsWidget( TQWidget *parent, const char *name) : TQWidget( parent, name )
+OrbitsWidget::OrbitsWidget( TQWidget *tqparent, const char *name) : TQWidget( tqparent, name )
{
if ( hulllist.count() == 0 )
{
@@ -162,20 +162,20 @@ void OrbitsWidget::getNumberOfOrbits()
int cut = 0;
bool cont = true;
- if ( !o.contains( rxb ) ) //only true for H and He
+ if ( !o.tqcontains( rxb ) ) //only true for H and He
numOfElectrons.append( o.toInt() );
else //every other element
{
while ( cont )
{
- pos = o.find( rxb );
+ pos = o.tqfind( rxb );
cut = o.length()-pos-1;
numOfElectrons.append(o.left( pos ).toInt());
o = o.right( cut );
num++;
- if ( !o.contains( rxb ) )
+ if ( !o.tqcontains( rxb ) )
{
numOfElectrons.append( o.toInt() );
cont = false;