summaryrefslogtreecommitdiffstats
path: root/src/node.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.cpp')
-rw-r--r--src/node.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/node.cpp b/src/node.cpp
index 0686f1d..556bde3 100644
--- a/src/node.cpp
+++ b/src/node.cpp
@@ -62,9 +62,9 @@ void UnaryFunction::applyMap(NodeFunctor &fn) const
fn(this);
}
-QString UnaryFunction::infixString() const
+TQString UnaryFunction::infixString() const
{
- return QString("%1(%2)").arg(name(), operand()->infixString());
+ return TQString("%1(%2)").tqarg(name(), operand()->infixString());
}
BuiltinFunction::BuiltinFunction(const char *name, Node *operand) :
@@ -208,9 +208,9 @@ void DerivativeFunction::applyMap(NodeFunctor &fn) const
fn(this);
}
-QString DerivativeFunction::infixString() const
+TQString DerivativeFunction::infixString() const
{
- return QString("deriv(%1, %2)").arg(m_operand->infixString(), m_where->infixString());
+ return TQString("deriv(%1, %2)").tqarg(m_operand->infixString(), m_where->infixString());
}
UnaryOperator::UnaryOperator(Type type, Node *operand)
@@ -230,12 +230,12 @@ void UnaryOperator::applyMap(NodeFunctor &fn) const
fn(this);
}
-QString UnaryOperator::infixString() const
+TQString UnaryOperator::infixString() const
{
if(dynamic_cast<BinaryOperator *>(operand()))
- return QString("-(%1)").arg(operand()->infixString());
+ return TQString("-(%1)").tqarg(operand()->infixString());
- return QString("-%1").arg(operand()->infixString());
+ return TQString("-%1").tqarg(operand()->infixString());
}
Abakus::number_t UnaryOperator::derivative() const
@@ -283,9 +283,9 @@ void BinaryOperator::applyMap(NodeFunctor &fn) const
fn(this);
}
-QString BinaryOperator::infixString() const
+TQString BinaryOperator::infixString() const
{
- QString op;
+ TQString op;
switch(type()) {
case Addition:
@@ -312,10 +312,10 @@ QString BinaryOperator::infixString() const
op = "Error";
}
- QString left = QString(isSimpleNode(leftNode()) ? "%1" : "(%1)").arg(leftNode()->infixString());
- QString right = QString(isSimpleNode(rightNode()) ? "%1" : "(%1)").arg(rightNode()->infixString());
+ TQString left = TQString(isSimpleNode(leftNode()) ? "%1" : "(%1)").tqarg(leftNode()->infixString());
+ TQString right = TQString(isSimpleNode(rightNode()) ? "%1" : "(%1)").tqarg(rightNode()->infixString());
- return QString("%1 %2 %3").arg(left, op, right);
+ return TQString("%1 %2 %3").tqarg(left, op, right);
}
Abakus::number_t BinaryOperator::derivative() const
@@ -411,7 +411,7 @@ void Identifier::applyMap(NodeFunctor &fn) const
fn(this);
}
-QString NumericValue::infixString() const
+TQString NumericValue::infixString() const
{
return value().toString();
}