summaryrefslogtreecommitdiffstats
path: root/kommander/widget/parsenode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/widget/parsenode.cpp')
-rw-r--r--kommander/widget/parsenode.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kommander/widget/parsenode.cpp b/kommander/widget/parsenode.cpp
index d080e114..492c00fb 100644
--- a/kommander/widget/parsenode.cpp
+++ b/kommander/widget/parsenode.cpp
@@ -22,7 +22,7 @@ ParseNode::ParseNode() : m_type(ValueNone), m_context(-1)
{
}
-ParseNode::ParseNode(const QString& s) : m_type(ValueString), m_string(s), m_context(-1)
+ParseNode::ParseNode(const TQString& s) : m_type(ValueString), m_string(s), m_context(-1)
{
}
@@ -38,16 +38,16 @@ ParseNode::ParseNode(double d) : m_type(ValueDouble), m_double(d), m_context(-1)
{
}
-ParseNode::ParseNode(Keyword k) : m_type(ValueKeyword), m_keyword(k), m_string(QString::null), m_context(-1)
+ParseNode::ParseNode(Keyword k) : m_type(ValueKeyword), m_keyword(k), m_string(TQString::null), m_context(-1)
{
}
-ParseNode::ParseNode(Keyword k, const QString& name) : m_type(ValueKeyword), m_keyword(k), m_context(-1)
+ParseNode::ParseNode(Keyword k, const TQString& name) : m_type(ValueKeyword), m_keyword(k), m_context(-1)
{
- m_string = (k == Variable) ? name : QString::null;
+ m_string = (k == Variable) ? name : TQString::null;
}
-ParseNode ParseNode::error(const QString& s)
+ParseNode ParseNode::error(const TQString& s)
{
ParseNode p;
p.m_string = s;
@@ -65,13 +65,13 @@ Keyword ParseNode::keyword() const
return isKeyword() ? m_keyword : Invalid;
}
-QString ParseNode::toString() const
+TQString ParseNode::toString() const
{
switch(type()) {
case ValueString: return m_string;
- case ValueInt: return QString::number(m_int);
- case ValueDouble: return QString::number(m_double);
- default: return QString();
+ case ValueInt: return TQString::number(m_int);
+ case ValueDouble: return TQString::number(m_double);
+ default: return TQString();
}
}
@@ -120,14 +120,14 @@ bool ParseNode::isVariable() const
return type() == ValueKeyword && keyword() == Variable;
}
-QString ParseNode::variableName() const
+TQString ParseNode::variableName() const
{
- return isVariable() ? m_string : QString();
+ return isVariable() ? m_string : TQString();
}
-QString ParseNode::errorMessage() const
+TQString ParseNode::errorMessage() const
{
- return isValid() ? QString() : m_string;
+ return isValid() ? TQString() : m_string;
}
@@ -168,7 +168,7 @@ bool ParseNode::operator==(bool b) const
return toBool() == b;
}
-bool ParseNode::operator==(const QString& s) const
+bool ParseNode::operator==(const TQString& s) const
{
return toString() == s;
}
@@ -215,13 +215,13 @@ void ParseNode::setValue(double d)
m_double = d;
}
-void ParseNode::setValue(const QString& s)
+void ParseNode::setValue(const TQString& s)
{
m_type = ValueString;
m_string = s;
}
-void ParseNode::setVariable(const QString& name)
+void ParseNode::setVariable(const TQString& name)
{
m_type = ValueKeyword;
m_keyword = Variable;