From dc6b8e72fed2586239e3514819238c520636c9d9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:54:04 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kommander/widget/parsenode.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kommander/widget/parsenode.h') diff --git a/kommander/widget/parsenode.h b/kommander/widget/parsenode.h index aa657d35..42ffbf71 100644 --- a/kommander/widget/parsenode.h +++ b/kommander/widget/parsenode.h @@ -17,7 +17,7 @@ #ifndef _HAVE_PARSENODE_H_ #define _HAVE_PARSENODE_H_ -#include +#include namespace Parse { @@ -40,7 +40,7 @@ public: /* Default constructor */ ParseNode(); /* Create node from string */ - ParseNode(const QString& s); + ParseNode(const TQString& s); /* Create node from integer */ ParseNode(int i); /* Create node from integer */ @@ -50,16 +50,16 @@ public: /* Create node from keyword */ ParseNode(Parse::Keyword k); /* Create node from keyword and variable name */ - ParseNode(Parse::Keyword k, const QString& s); + ParseNode(Parse::Keyword k, const TQString& s); /* Create error node with optional error message */ - static ParseNode error(const QString& s); + static ParseNode error(const TQString& s); /* Return current type */ Parse::ValueType type() const; /* Return current keyword if appropriate */ Parse::Keyword keyword() const; /* Cast value to string */ - QString toString() const; + TQString toString() const; /* Cast value to integer */ int toInt() const; /* Cast value to double */ @@ -75,9 +75,9 @@ public: /* Check if current value is a variable */ bool isVariable() const; /* Return the name of variable */ - QString variableName() const; + TQString variableName() const; /* Return error message if applicable */ - QString errorMessage() const; + TQString errorMessage() const; /* Calculate common type for two nodes */ Parse::ValueType commonType(const ParseNode& p) const; /* Find common type and compare values */ @@ -85,7 +85,7 @@ public: /* Various comparing functions */ bool operator==(int i) const; bool operator==(bool b) const; - bool operator==(const QString& s) const; + bool operator==(const TQString& s) const; bool operator==(const ParseNode& p) const; bool operator!=(const ParseNode& p) const; bool operator>=(const ParseNode& p) const; @@ -97,9 +97,9 @@ public: /* set value as double */ void setValue(double d); /* set value as string */ - void setValue(const QString& s); + void setValue(const TQString& s); /* set value as variable */ - void setVariable(const QString& name); + void setVariable(const TQString& name); /* check if it is correct value */ bool isValue() const; /* for setting some context information, f. e. for bug reporting */ @@ -114,7 +114,7 @@ private: double m_double; Parse::Keyword m_keyword; }; - QString m_string; + TQString m_string; int m_context; }; -- cgit v1.2.3