summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneypricetest.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/mymoneypricetest.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/mymoneypricetest.cpp')
-rw-r--r--kmymoney2/mymoney/mymoneypricetest.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kmymoney2/mymoney/mymoneypricetest.cpp b/kmymoney2/mymoney/mymoneypricetest.cpp
index 203e9ca..444754a 100644
--- a/kmymoney2/mymoney/mymoneypricetest.cpp
+++ b/kmymoney2/mymoney/mymoneypricetest.cpp
@@ -39,23 +39,23 @@ void MyMoneyPriceTest::testDefaultConstructor()
void MyMoneyPriceTest::testConstructor()
{
- MyMoneyPrice n(QString("from"), QString("to"), QDate(2005,9,23), MyMoneyMoney(1,3), QString("MySource"));
+ MyMoneyPrice n(TQString("from"), TQString("to"), TQDate(2005,9,23), MyMoneyMoney(1,3), TQString("MySource"));
CPPUNIT_ASSERT(n.isValid() == true);
- CPPUNIT_ASSERT(n.from() == QString("from"));
- CPPUNIT_ASSERT(n.to() == QString("to"));
- CPPUNIT_ASSERT(n.date() == QDate(2005,9,23));
- CPPUNIT_ASSERT(n.source() == QString("MySource"));
+ CPPUNIT_ASSERT(n.from() == TQString("from"));
+ CPPUNIT_ASSERT(n.to() == TQString("to"));
+ CPPUNIT_ASSERT(n.date() == TQDate(2005,9,23));
+ CPPUNIT_ASSERT(n.source() == TQString("MySource"));
CPPUNIT_ASSERT(n.rate("to") == MyMoneyMoney(1,3));
}
void MyMoneyPriceTest::testValidity()
{
- QString emptyId;
- MyMoneyPrice n1(emptyId, QString("to"), QDate(2005,9,23), MyMoneyMoney(1,3), QString("MySource"));
- MyMoneyPrice n2(QString("from"), emptyId, QDate(2005,9,23), MyMoneyMoney(1,3), QString("MySource"));
- MyMoneyPrice n3(QString("from"), QString("to"), QDate(), MyMoneyMoney(1,3), QString("MySource"));
- MyMoneyPrice n4(QString("from"), QString("to"), QDate(2005,9,23), MyMoneyMoney(1,3), QString("MySource"));
+ TQString emptyId;
+ MyMoneyPrice n1(emptyId, TQString("to"), TQDate(2005,9,23), MyMoneyMoney(1,3), TQString("MySource"));
+ MyMoneyPrice n2(TQString("from"), emptyId, TQDate(2005,9,23), MyMoneyMoney(1,3), TQString("MySource"));
+ MyMoneyPrice n3(TQString("from"), TQString("to"), TQDate(), MyMoneyMoney(1,3), TQString("MySource"));
+ MyMoneyPrice n4(TQString("from"), TQString("to"), TQDate(2005,9,23), MyMoneyMoney(1,3), TQString("MySource"));
CPPUNIT_ASSERT(n1.isValid() == false);
CPPUNIT_ASSERT(n2.isValid() == false);
@@ -65,13 +65,13 @@ void MyMoneyPriceTest::testValidity()
void MyMoneyPriceTest::testRate()
{
- MyMoneyPrice n1(QString("from"), QString("to"), QDate(2005,9,23), MyMoneyMoney(1,3), QString("MySource"));
- MyMoneyPrice n2(QString("from"), QString("to"), QDate(), MyMoneyMoney(1,3), QString("MySource"));
+ MyMoneyPrice n1(TQString("from"), TQString("to"), TQDate(2005,9,23), MyMoneyMoney(1,3), TQString("MySource"));
+ MyMoneyPrice n2(TQString("from"), TQString("to"), TQDate(), MyMoneyMoney(1,3), TQString("MySource"));
try {
CPPUNIT_ASSERT(n1.rate("to") == MyMoneyMoney(1,3));
CPPUNIT_ASSERT(n1.rate("from") == MyMoneyMoney(3,1));
- CPPUNIT_ASSERT(n1.rate(QString()) == MyMoneyMoney(1,3));
+ CPPUNIT_ASSERT(n1.rate(TQString()) == MyMoneyMoney(1,3));
CPPUNIT_ASSERT(n2.isValid() == false);
CPPUNIT_ASSERT(n2.rate("to") == MyMoneyMoney(1,1));