summaryrefslogtreecommitdiffstats
path: root/kalzium/src/moleculeparser.h
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.h
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.h')
-rw-r--r--kalzium/src/moleculeparser.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/kalzium/src/moleculeparser.h b/kalzium/src/moleculeparser.h
index c35c71be..45b27436 100644
--- a/kalzium/src/moleculeparser.h
+++ b/kalzium/src/moleculeparser.h
@@ -17,8 +17,8 @@
#include "element.h"
#include "parser.h"
-#include <qmap.h>
-#include <qvaluelist.h>
+#include <tqmap.h>
+#include <tqvaluelist.h>
/**
@@ -64,12 +64,12 @@ class ElementCountMap {
void add(Element *_element, int _count);
void multiply(int _factor);
- typedef QValueList<ElementCount*>::Iterator Iterator;
+ typedef TQValueList<ElementCount*>::Iterator Iterator;
Iterator begin() { return m_map.begin(); }
Iterator end() { return m_map.end(); }
private:
- QValueList<ElementCount*> m_map;
+ TQValueList<ElementCount*> m_map;
};
@@ -80,7 +80,7 @@ class ElementCountMap {
* Usage:
* @code
* MoleculeParser parser;
- * QString chemical_formula = "C2H5OH";
+ * TQString chemical_formula = "C2H5OH";
* double weight;
*
* if (parser.weight(chemical_formula, &weight))
@@ -97,7 +97,7 @@ public:
static const int ELEMENT_TOKEN = 300;
MoleculeParser();
- MoleculeParser( const QString& _str);
+ MoleculeParser( const TQString& _str);
~MoleculeParser();
/**
@@ -106,7 +106,7 @@ public:
*
* @return whether the parsing was successful or not
*/
- bool weight(QString _moleculeString,
+ bool weight(TQString _moleculeString,
double *_resultMass,
ElementCountMap *_resultMap);
@@ -117,9 +117,9 @@ public:
bool parseTerm(double *_resultMass,
ElementCountMap *_resultMap);
- Element *lookupElement( const QString& _name );
+ Element *lookupElement( const TQString& _name );
- QMap<Element*, int> m_elementMap;
+ TQMap<Element*, int> m_elementMap;
//if this booloean is "true" the parser found an error
bool m_error;