From d8762de95349dc6edaa34db9bf699b367c1af6b1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kalzium/src/element.cpp | 4 ++-- kalzium/src/eqchemview.cpp | 4 ++-- kalzium/src/kalziumutils.cpp | 2 +- kalzium/src/orbitswidget.cpp | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'kalzium/src') diff --git a/kalzium/src/element.cpp b/kalzium/src/element.cpp index 687f0ad8..f85023c0 100644 --- a/kalzium/src/element.cpp +++ b/kalzium/src/element.cpp @@ -68,8 +68,8 @@ TQString Element::parsedOrbits( bool canBeEmpty ) TQString orbits = m_orbits; TQRegExp rxs("([a-z])([0-9]+)"); TQRegExp rxb("([a-z]{2}) ",false); - orbits.tqreplace(rxs,"\\1\\2"); //superscript around electron number - orbits.tqreplace(rxb,"\\1 "); //bold around element symbols + orbits.replace(rxs,"\\1\\2"); //superscript around electron number + orbits.replace(rxb,"\\1 "); //bold around element symbols return orbits; } diff --git a/kalzium/src/eqchemview.cpp b/kalzium/src/eqchemview.cpp index 00cf1af4..4b5f6baf 100644 --- a/kalzium/src/eqchemview.cpp +++ b/kalzium/src/eqchemview.cpp @@ -89,8 +89,8 @@ void eqchemView::clear() void eqchemView::compute() { TQString equation( m_eqedit->text() ); - equation.tqreplace("+", "+"); - equation.tqreplace("->", " -> "); + equation.replace("+", "+"); + equation.replace("->", " -> "); equation.append(" "); equation.prepend(" "); diff --git a/kalzium/src/kalziumutils.cpp b/kalzium/src/kalziumutils.cpp index f7ed9d09..38dd9786 100644 --- a/kalzium/src/kalziumutils.cpp +++ b/kalzium/src/kalziumutils.cpp @@ -38,7 +38,7 @@ int KalziumUtils::maxSize( const TQString& string, const TQRect& rect, TQFont fo r = p->boundingRect( TQRect(), TQt::AlignAuto, string ); r.moveBy( rect.left(), rect.top() ); - if ( rect.tqcontains( r ) ) + if ( rect.contains( r ) ) goodSizeFound = true; else size--; diff --git a/kalzium/src/orbitswidget.cpp b/kalzium/src/orbitswidget.cpp index 35e74bf7..a3811958 100644 --- a/kalzium/src/orbitswidget.cpp +++ b/kalzium/src/orbitswidget.cpp @@ -162,20 +162,20 @@ void OrbitsWidget::getNumberOfOrbits() int cut = 0; bool cont = true; - if ( !o.tqcontains( rxb ) ) //only true for H and He + if ( !o.contains( rxb ) ) //only true for H and He numOfElectrons.append( o.toInt() ); else //every other element { while ( cont ) { - pos = o.tqfind( rxb ); + pos = o.find( rxb ); cut = o.length()-pos-1; numOfElectrons.append(o.left( pos ).toInt()); o = o.right( cut ); num++; - if ( !o.tqcontains( rxb ) ) + if ( !o.contains( rxb ) ) { numOfElectrons.append( o.toInt() ); cont = false; -- cgit v1.2.1