summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneyprice.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/mymoneyprice.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/mymoneyprice.h')
-rw-r--r--kmymoney2/mymoney/mymoneyprice.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/kmymoney2/mymoney/mymoneyprice.h b/kmymoney2/mymoney/mymoneyprice.h
index faf6454..9c4f1c0 100644
--- a/kmymoney2/mymoney/mymoneyprice.h
+++ b/kmymoney2/mymoney/mymoneyprice.h
@@ -30,11 +30,11 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qstring.h>
-#include <qdatetime.h>
-#include <qpair.h>
-#include <qmap.h>
-#include <qdom.h>
+#include <tqstring.h>
+#include <tqdatetime.h>
+#include <tqpair.h>
+#include <tqmap.h>
+#include <tqdom.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -71,8 +71,8 @@ class KMYMONEY_EXPORT MyMoneyPrice
{
public:
MyMoneyPrice();
- MyMoneyPrice(const QString& from, const QString& to, const QDomElement& node);
- MyMoneyPrice(const QString& from, const QString& to, const QDate& date, const MyMoneyMoney& rate, const QString& source = QString());
+ MyMoneyPrice(const TQString& from, const TQString& to, const TQDomElement& node);
+ MyMoneyPrice(const TQString& from, const TQString& to, const TQDate& date, const MyMoneyMoney& rate, const TQString& source = TQString());
virtual ~MyMoneyPrice();
/**
@@ -96,7 +96,7 @@ public:
*
* @code
*
- * MyMoneyPrice price("ADF", "GBP", QDate(2005,9,20), MyMoneyMoney(1,3), "User");
+ * MyMoneyPrice price("ADF", "GBP", TQDate(2005,9,20), MyMoneyMoney(1,3), "User");
* MyMoneyMoney valADF, valGBP(100,1);
*
* valADF = valGBP * price.rate("ADF");
@@ -107,12 +107,12 @@ public:
* @p 3/1 even though the price information kept with the object was @p 1/3, but based on the other
* conversion direction (from ADF to GBP).
*/
- const MyMoneyMoney rate(const QString& id) const;
+ const MyMoneyMoney rate(const TQString& id) const;
- const QDate& date(void) const { return m_date; };
- const QString& source(void) const { return m_source; };
- const QString& from(void) const { return m_fromSecurity; };
- const QString& to(void) const { return m_toSecurity; };
+ const TQDate& date(void) const { return m_date; };
+ const TQString& source(void) const { return m_source; };
+ const TQString& from(void) const { return m_fromSecurity; };
+ const TQString& to(void) const { return m_toSecurity; };
/**
* Check whether the object is valid or not. A MyMoneyPrice object
@@ -139,20 +139,20 @@ public:
* @retval true This object references object with id @p id.
* @retval false This object does not reference the object with id @p id.
*/
- bool hasReferenceTo(const QString& id) const;
+ bool hasReferenceTo(const TQString& id) const;
private:
- QString m_fromSecurity;
- QString m_toSecurity;
- QDate m_date;
+ TQString m_fromSecurity;
+ TQString m_toSecurity;
+ TQDate m_date;
MyMoneyMoney m_rate;
MyMoneyMoney m_invRate;
- QString m_source;
+ TQString m_source;
};
-typedef QPair<QString, QString> MyMoneySecurityPair;
-typedef QMap<QDate, MyMoneyPrice> MyMoneyPriceEntries;
-typedef QMap<MyMoneySecurityPair, MyMoneyPriceEntries> MyMoneyPriceList;
+typedef TQPair<TQString, TQString> MyMoneySecurityPair;
+typedef TQMap<TQDate, MyMoneyPrice> MyMoneyPriceEntries;
+typedef TQMap<MyMoneySecurityPair, MyMoneyPriceEntries> MyMoneyPriceList;
#endif