diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
commit | 0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch) | |
tree | 2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kig/objects/line_imp.cc | |
parent | 83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff) | |
download | tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kig/objects/line_imp.cc')
-rw-r--r-- | kig/objects/line_imp.cc | 8 |
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 ); |