diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
commit | 5f5ee2367157176ed223b86343eb0a9e4022e020 (patch) | |
tree | 6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kcalc/knumber/tests/knumbertest.cpp | |
parent | 4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff) | |
download | tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcalc/knumber/tests/knumbertest.cpp')
-rw-r--r-- | kcalc/knumber/tests/knumbertest.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kcalc/knumber/tests/knumbertest.cpp b/kcalc/knumber/tests/knumbertest.cpp index 814410e..e34d94d 100644 --- a/kcalc/knumber/tests/knumbertest.cpp +++ b/kcalc/knumber/tests/knumbertest.cpp @@ -6,29 +6,29 @@ #include <stdio.h> #include <iostream> -#include <qstring.h> +#include <tqstring.h> #include "knumbertest.h" -QString const numtypeToString(KNumber::NumType arg) +TQString const numtypeToString(KNumber::NumType arg) { switch(arg) { case KNumber::SpecialType: - return QString("Special"); + return TQString("Special"); case KNumber::IntegerType: - return QString("Integer"); + return TQString("Integer"); case KNumber::FractionType: - return QString("Fraction"); + return TQString("Fraction"); case KNumber::FloatType: - return QString("Float"); + return TQString("Float"); default: - return QString("Unknown:") + QString::number(static_cast<int>(arg)); + return TQString("Unknown:") + TQString::number(static_cast<int>(arg)); } } -void checkResult(QString const &string, KNumber const & result, - QString const & desired_string, KNumber::NumType desired) +void checkResult(TQString const &string, KNumber const & result, + TQString const & desired_string, KNumber::NumType desired) { std::cout << "Testing result of: " << string.ascii() << " should give " << desired_string.ascii() << " and gives " << @@ -47,7 +47,7 @@ void checkResult(QString const &string, KNumber const & result, exit(1); } -void checkTruth(QString const &string, bool computation, +void checkTruth(TQString const &string, bool computation, bool desired_result) { std::cout << "Testing truth of: " << string.ascii() << @@ -64,7 +64,7 @@ void checkTruth(QString const &string, bool computation, } -void checkType(QString const &string, KNumber::NumType test_arg, +void checkType(TQString const &string, KNumber::NumType test_arg, KNumber::NumType desired) { std::cout << "Testing type of: " << string.ascii() << " should give " << |