diff options
Diffstat (limited to 'kommander/widget/parserdata.cpp')
-rw-r--r-- | kommander/widget/parserdata.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kommander/widget/parserdata.cpp b/kommander/widget/parserdata.cpp index f803283e..274d7220 100644 --- a/kommander/widget/parserdata.cpp +++ b/kommander/widget/parserdata.cpp @@ -25,24 +25,24 @@ KeywordGroup ParserData::keywordGroup(Keyword k) const return GroupMisc; } -Keyword ParserData::stringToKeyword(const QString& s) const +Keyword ParserData::stringToKeyword(const TQString& s) const { - QString k = s.lower(); + TQString k = s.lower(); if (m_keywords.contains(k)) return m_keywords[k]; else return Variable; } -QString ParserData::keywordToString(Parse::Keyword k) const +TQString ParserData::keywordToString(Parse::Keyword k) const { - for (QMapConstIterator<QString, Keyword> it = m_keywords.begin(); it != m_keywords.end(); ++it) + for (TQMapConstIterator<TQString, Keyword> it = m_keywords.begin(); it != m_keywords.end(); ++it) if (it.data() == k) return it.key(); - return QString(); + return TQString(); } -bool ParserData::registerFunction(const QString& name, Function f) +bool ParserData::registerFunction(const TQString& name, Function f) { m_functions[name.lower()] = f; return true; @@ -114,12 +114,12 @@ ParserData::ParserData() registerStandardFunctions(); } -bool ParserData::isFunction(const QString& name) const +bool ParserData::isFunction(const TQString& name) const { return m_functions.contains(name.lower()); } -const Function& ParserData::function(const QString& name) const +const Function& ParserData::function(const TQString& name) const { return m_functions[name.lower()]; } |