summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneymoney.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 06:00:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 06:00:29 +0000
commitfecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch)
tree6b8614802f0d01b353bc9ba78aff2090846c198e /kmymoney2/mymoney/mymoneymoney.h
parentdadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff)
downloadkmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.tar.gz
kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.zip
TQt4 port kmymoney
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmymoney2/mymoney/mymoneymoney.h')
-rw-r--r--kmymoney2/mymoney/mymoneymoney.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/kmymoney2/mymoney/mymoneymoney.h b/kmymoney2/mymoney/mymoneymoney.h
index 74235c7..6ff1cae 100644
--- a/kmymoney2/mymoney/mymoneymoney.h
+++ b/kmymoney2/mymoney/mymoneymoney.h
@@ -39,8 +39,8 @@
#endif
// So we can save this object
-#include <qstring.h>
-#include <qdatastream.h>
+#include <tqstring.h>
+#include <tqdatastream.h>
#include <kmymoney/export.h>
#include <kmymoney/mymoneyexception.h>
@@ -98,7 +98,7 @@ public:
// construction
MyMoneyMoney();
MyMoneyMoney( const int iAmount, const signed64 denom = 100 );
- MyMoneyMoney( const QString& pszAmount );
+ MyMoneyMoney( const TQString& pszAmount );
MyMoneyMoney( const signed64 Amount, const signed64 denom = 100 );
MyMoneyMoney( const double dAmount, const signed64 denom = 100 );
#if HAVE_LONG_DOUBLE
@@ -123,20 +123,20 @@ public:
* @param showThousandSeparator should the thousandSeparator symbol be inserted
* (@a true) or not (@a false) (default true)
*/
- QString formatMoney(const QString& currency, const int prec, bool showThousandSeparator = true) const;
+ TQString formatMoney(const TQString& currency, const int prec, bool showThousandSeparator = true) const;
/**
* This is a convenience method. It behaves exactly as the above one, but takes the information
* about currency symbol and precision out of the MyMoneySecurity and MyMoneyAccount objects
* @a acc and @a sec.
*/
- QString formatMoney(const MyMoneyAccount& acc, const MyMoneySecurity& sec, bool showThousandSeparator = true) const;
+ TQString formatMoney(const MyMoneyAccount& acc, const MyMoneySecurity& sec, bool showThousandSeparator = true) const;
/**
* This is a convenience method. It behaves exactly as the above one, but takes the information
* about currency symbol and precision out of the MyMoneySecurity object @a sec.
*/
- QString formatMoney(const MyMoneySecurity& sec, bool showThousandSeparator = true) const;
+ TQString formatMoney(const MyMoneySecurity& sec, bool showThousandSeparator = true) const;
/**
* This is a convenience method. It behaves exactly as the above one, but takes the information
@@ -146,7 +146,7 @@ public:
*
* @note denom is often set to account.fraction(security).
*/
- QString formatMoney(int denom, bool showThousandSeparator = true) const;
+ TQString formatMoney(int denom, bool showThousandSeparator = true) const;
/**
* This method is used to convert the smallest fraction information into
@@ -157,7 +157,7 @@ public:
*/
static int denomToPrec(signed64 fract);
- const QString toString(void) const;
+ const TQString toString(void) const;
const MyMoneyMoney convert(const signed64 denom = 100, const roundingMethod how = RndRound) const;
static signed64 precToDenom(int prec);
double toDouble(void) const;
@@ -177,7 +177,7 @@ public:
// assignment
const MyMoneyMoney& operator=( const MyMoneyMoney& Amount );
- const MyMoneyMoney& operator=( const QString& pszAmount );
+ const MyMoneyMoney& operator=( const TQString& pszAmount );
// comparison
bool operator==( const MyMoneyMoney& Amount ) const;
@@ -187,12 +187,12 @@ public:
bool operator<=( const MyMoneyMoney& Amount ) const;
bool operator>=( const MyMoneyMoney& Amount ) const;
- bool operator==( const QString& pszAmount ) const;
- bool operator!=( const QString& pszAmount ) const;
- bool operator<( const QString& pszAmount ) const;
- bool operator>( const QString& pszAmount ) const;
- bool operator<=( const QString& pszAmount ) const;
- bool operator>=( const QString& pszAmount ) const;
+ bool operator==( const TQString& pszAmount ) const;
+ bool operator!=( const TQString& pszAmount ) const;
+ bool operator<( const TQString& pszAmount ) const;
+ bool operator>( const TQString& pszAmount ) const;
+ bool operator<=( const TQString& pszAmount ) const;
+ bool operator>=( const TQString& pszAmount ) const;
// calculation
MyMoneyMoney operator+( const MyMoneyMoney& Amount ) const;
@@ -230,8 +230,8 @@ private:
signed64 getLcd(const MyMoneyMoney& b) const;
- KMYMONEY_EXPORT friend QDataStream &operator<<(QDataStream &, const MyMoneyMoney &);
- KMYMONEY_EXPORT friend QDataStream &operator>>(QDataStream &, MyMoneyMoney &);
+ KMYMONEY_EXPORT friend TQDataStream &operator<<(TQDataStream &, const MyMoneyMoney &);
+ KMYMONEY_EXPORT friend TQDataStream &operator>>(TQDataStream &, MyMoneyMoney &);
static unsigned char _thousandSeparator;
static unsigned char _decimalSeparator;
@@ -371,7 +371,7 @@ inline const MyMoneyMoney& MyMoneyMoney::operator=(const MyMoneyMoney& Amount)
// Arguments: pszAmount - NULL terminated string that contains amount
//
////////////////////////////////////////////////////////////////////////////////
-inline const MyMoneyMoney& MyMoneyMoney::operator=(const QString& pszAmount)
+inline const MyMoneyMoney& MyMoneyMoney::operator=(const TQString& pszAmount)
{
*this = MyMoneyMoney( pszAmount );
return *this;
@@ -508,7 +508,7 @@ inline bool MyMoneyMoney::operator>=(const MyMoneyMoney& Amount) const
// Arguments: pszAmount - NULL terminated string that contains amount
//
////////////////////////////////////////////////////////////////////////////////
-inline bool MyMoneyMoney::operator==(const QString& pszAmount) const
+inline bool MyMoneyMoney::operator==(const TQString& pszAmount) const
{
MyMoneyMoney Amount( pszAmount );
return ( *this == Amount ) ;
@@ -523,7 +523,7 @@ inline bool MyMoneyMoney::operator==(const QString& pszAmount) const
// Arguments: pszAmount - NULL terminated string that contains amount
//
////////////////////////////////////////////////////////////////////////////////
-inline bool MyMoneyMoney::operator!=(const QString& pszAmount) const
+inline bool MyMoneyMoney::operator!=(const TQString& pszAmount) const
{
MyMoneyMoney Amount( pszAmount );
return ( *this != Amount ) ;