summaryrefslogtreecommitdiffstats
path: root/kalzium/src/moleculeparser.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
commit0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch)
tree2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kalzium/src/moleculeparser.cpp
parent83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff)
downloadtdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz
tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalzium/src/moleculeparser.cpp')
-rw-r--r--kalzium/src/moleculeparser.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kalzium/src/moleculeparser.cpp b/kalzium/src/moleculeparser.cpp
index 183f9769..6780e65e 100644
--- a/kalzium/src/moleculeparser.cpp
+++ b/kalzium/src/moleculeparser.cpp
@@ -39,8 +39,8 @@ ElementCountMap::~ElementCountMap()
ElementCount *
ElementCountMap::search(Element *_element)
{
- QValueList<ElementCount *>::ConstIterator it = m_map.constBegin();
- const QValueList<ElementCount *>::ConstIterator itEnd = m_map.constEnd();
+ TQValueList<ElementCount *>::ConstIterator it = m_map.constBegin();
+ const TQValueList<ElementCount *>::ConstIterator itEnd = m_map.constEnd();
for (; it != itEnd; ++it) {
if ((*it)->element() == _element)
@@ -54,8 +54,8 @@ ElementCountMap::search(Element *_element)
void
ElementCountMap::add(ElementCountMap &_map)
{
- QValueList<ElementCount *>::ConstIterator it = _map.m_map.constBegin();
- const QValueList<ElementCount *>::ConstIterator itEnd = _map.m_map.constEnd();
+ TQValueList<ElementCount *>::ConstIterator it = _map.m_map.constBegin();
+ const TQValueList<ElementCount *>::ConstIterator itEnd = _map.m_map.constEnd();
// Step throught _map and for each element, add it to the current one.
for (; it != itEnd; ++it) {
@@ -99,7 +99,7 @@ MoleculeParser::MoleculeParser()
}
-MoleculeParser::MoleculeParser(const QString& _str)
+MoleculeParser::MoleculeParser(const TQString& _str)
: Parser(_str)
{
}
@@ -120,7 +120,7 @@ MoleculeParser::~MoleculeParser()
// This method also acts as the main loop.
bool
-MoleculeParser::weight(QString _moleculeString,
+MoleculeParser::weight(TQString _moleculeString,
double *_resultMass,
ElementCountMap *_resultMap)
{
@@ -242,7 +242,7 @@ MoleculeParser::parseTerm(double *_resultMass,
int
MoleculeParser::getNextToken()
{
- QString elementName;
+ TQString elementName;
#if 0
kdDebug() << "getNextToken(): Next character = "
@@ -280,7 +280,7 @@ MoleculeParser::getNextToken()
Element *
-MoleculeParser::lookupElement( const QString& _name )
+MoleculeParser::lookupElement( const TQString& _name )
{
EList elementList = KalziumDataObject::instance()->ElementList;