summaryrefslogtreecommitdiffstats
path: root/kommander/widget/parsenode.h
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/widget/parsenode.h')
-rw-r--r--kommander/widget/parsenode.h22
1 files changed, 11 insertions, 11 deletions
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 <qstring.h>
+#include <tqstring.h>
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;
};