summaryrefslogtreecommitdiffstats
path: root/src/hmath.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-09 19:45:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-09 19:45:27 +0000
commitf4f8ac034fa04404e2fcd5029ba050c537c07d7a (patch)
tree0daa81b0533ce203c33d5571dcb842257dba4cd0 /src/hmath.cpp
parent4488b6112c4e22493ed88c68035b980a5b42228d (diff)
downloadabakus-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/hmath.cpp')
-rw-r--r--src/hmath.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hmath.cpp b/src/hmath.cpp
index 1c4dfa3..736b241 100644
--- a/src/hmath.cpp
+++ b/src/hmath.cpp
@@ -31,7 +31,7 @@
#include <string.h>
#include <stdio.h>
-#include <qstring.h>
+#include <tqstring.h>
// internal number of decimal digits
#define HMATH_MAX_PREC 150
@@ -224,7 +224,7 @@ static bc_num h_div( bc_num n1, bc_num n2 )
return r;
}
-// find 10 raise to num
+// tqfind 10 raise to num
// e.g.: when num is 5, it results 100000
static bc_num h_raise10( int n )
{
@@ -692,10 +692,10 @@ char* HMath::formatGeneral( const HNumber& hn, int prec )
return str;
}
-QString HMath::formatGenString( const HNumber &n, int prec )
+TQString HMath::formatGenString( const HNumber &n, int prec )
{
char *foo = formatGeneral(n, prec);
- QString s(foo);
+ TQString s(foo);
free(foo);
return s;