diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-09 19:45:27 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-09 19:45:27 +0000 |
commit | f4f8ac034fa04404e2fcd5029ba050c537c07d7a (patch) | |
tree | 0daa81b0533ce203c33d5571dcb842257dba4cd0 /src/numerictypes.h | |
parent | 4488b6112c4e22493ed88c68035b980a5b42228d (diff) | |
download | abakus-f4f8ac034fa04404e2fcd5029ba050c537c07d7a.tar.gz abakus-f4f8ac034fa04404e2fcd5029ba050c537c07d7a.zip |
TQt4 port Abakus
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/abakus@1231045 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/numerictypes.h')
-rw-r--r-- | src/numerictypes.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/numerictypes.h b/src/numerictypes.h index 12880a2..7277aea 100644 --- a/src/numerictypes.h +++ b/src/numerictypes.h @@ -22,9 +22,9 @@ #include <sstream> #include <string> -#include <qstring.h> -#include <qstringlist.h> -#include <qregexp.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqregexp.h> #include "hmath.h" #include "config.h" @@ -158,7 +158,7 @@ public: /// @return Textual representation of the number, adjusted to the user's /// current precision. - QString toString() const; + TQString toString() const; /// @return Our value. T value() const; @@ -209,7 +209,7 @@ inline number<T> operator/(const number<T> &l, const number<T> &r) * @return The number converted to a string, in US Decimal format at this time. * @see number<>::toString() */ -QString convertToString(const mpfr_ptr &number); +TQString convertToString(const mpfr_ptr &number); /** * This is a specialization of the number<> template for the MPFR numeric type. @@ -443,7 +443,7 @@ public: // Note that this can be used dangerously, be careful. value_type value() const { return m_t; } - QString toString() const + TQString toString() const { // Move this to .cpp to avoid recompiling as I fix it. return convertToString(m_t); @@ -507,7 +507,7 @@ inline number<mpfr_ptr> operator/(const number<mpfr_ptr> &l, const number<mpfr_p #else // Defined in numerictypes.cpp for ease of reimplementation. -QString convertToString(const HNumber &num); +TQString convertToString(const HNumber &num); /** * Specialization for internal HMath library, used if MPFR isn't usable. @@ -664,7 +664,7 @@ public: return HMath::raise(m_t, exponent.m_t); } - QString toString() const + TQString toString() const { return convertToString(m_t); } |