summaryrefslogtreecommitdiffstats
path: root/kig/objects/line_imp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kig/objects/line_imp.cc')
-rw-r--r--kig/objects/line_imp.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/kig/objects/line_imp.cc b/kig/objects/line_imp.cc
index 6f3c6002..a49078a1 100644
--- a/kig/objects/line_imp.cc
+++ b/kig/objects/line_imp.cc
@@ -174,7 +174,7 @@ double AbstractLineImp::slope() const
return diff.y / diff.x;
}
-const QString AbstractLineImp::equationString() const
+const TQString AbstractLineImp::equationString() const
{
Coordinate p = mdata.a;
Coordinate q = mdata.b;
@@ -182,9 +182,9 @@ const QString AbstractLineImp::equationString() const
double m = ( q.y - p.y ) / ( q.x - p.x );
double r = - ( q.y - p.y ) * p.x / ( q.x - p.x ) + p.y;
- QString ret = QString::fromUtf8( "y = %1x " ) +
- QString::fromUtf8( r > 0 ? "+" : "-" ) +
- QString::fromUtf8( " %2" );
+ TQString ret = TQString::fromUtf8( "y = %1x " ) +
+ TQString::fromUtf8( r > 0 ? "+" : "-" ) +
+ TQString::fromUtf8( " %2" );
ret = ret.arg( m, 0, 'g', 3 );
ret = ret.arg( abs( r ), 0, 'g', 3 );