summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneyprice.cpp
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.cpp
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.cpp')
-rw-r--r--kmymoney2/mymoney/mymoneyprice.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kmymoney2/mymoney/mymoneyprice.cpp b/kmymoney2/mymoney/mymoneyprice.cpp
index b674776..df43221 100644
--- a/kmymoney2/mymoney/mymoneyprice.cpp
+++ b/kmymoney2/mymoney/mymoneyprice.cpp
@@ -37,11 +37,11 @@
#include "mymoneyexception.h"
MyMoneyPrice::MyMoneyPrice() :
- m_date(QDate())
+ m_date(TQDate())
{
}
-MyMoneyPrice::MyMoneyPrice(const QString& from, const QString& to, const QDomElement& node)
+MyMoneyPrice::MyMoneyPrice(const TQString& from, const TQString& to, const TQDomElement& node)
{
if("PRICE" != node.tagName())
throw new MYMONEYEXCEPTION("Node was not PRICE");
@@ -49,7 +49,7 @@ MyMoneyPrice::MyMoneyPrice(const QString& from, const QString& to, const QDomEle
m_fromSecurity = from;
m_toSecurity = to;
- m_date = QDate::fromString(node.attribute("date"), Qt::ISODate);
+ m_date = TQDate::fromString(node.attribute("date"), Qt::ISODate);
m_rate = MyMoneyMoney(node.attribute("price"));
m_source = node.attribute("source");
@@ -59,7 +59,7 @@ MyMoneyPrice::MyMoneyPrice(const QString& from, const QString& to, const QDomEle
qDebug("Price with zero value loaded");
}
-MyMoneyPrice::MyMoneyPrice(const QString& from, const QString& to, const QDate& date, const MyMoneyMoney& rate, const QString& source) :
+MyMoneyPrice::MyMoneyPrice(const TQString& from, const TQString& to, const TQDate& date, const MyMoneyMoney& rate, const TQString& source) :
m_fromSecurity(from),
m_toSecurity(to),
m_date(date),
@@ -76,7 +76,7 @@ MyMoneyPrice::~MyMoneyPrice()
{
}
-const MyMoneyMoney MyMoneyPrice::rate(const QString& id) const
+const MyMoneyMoney MyMoneyPrice::rate(const TQString& id) const
{
static MyMoneyMoney dummyPrice(1,1);
@@ -88,7 +88,7 @@ const MyMoneyMoney MyMoneyPrice::rate(const QString& id) const
if(id == m_fromSecurity)
return m_invRate;
- QString msg = QString("Unknown security id %1 for price info %2/%3.").arg(id).arg(m_fromSecurity).arg(m_toSecurity);
+ TQString msg = TQString("Unknown security id %1 for price info %2/%3.").tqarg(id).tqarg(m_fromSecurity).tqarg(m_toSecurity);
throw new MYMONEYEXCEPTION(msg);
}
@@ -107,7 +107,7 @@ bool MyMoneyPrice::operator == (const MyMoneyPrice &right) const
((m_source.length() == 0 && right.m_source.length() == 0) || (m_source == right.m_source)));
}
-bool MyMoneyPrice::hasReferenceTo(const QString& id) const
+bool MyMoneyPrice::hasReferenceTo(const TQString& id) const
{
return (id == m_fromSecurity) || (id == m_toSecurity);
}