summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneyfiletest.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:56:17 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:56:17 -0600
commit1f9d00360b9018301630ce062d7dda0c6583edfb (patch)
tree1013b917f9a8ad41ed928d62250e9bfe1ed91414 /kmymoney2/mymoney/mymoneyfiletest.cpp
parent252fce5a2a5384702fbcc1c9987284d7bd2e6943 (diff)
downloadkmymoney-1f9d00360b9018301630ce062d7dda0c6583edfb.tar.gz
kmymoney-1f9d00360b9018301630ce062d7dda0c6583edfb.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 252fce5a2a5384702fbcc1c9987284d7bd2e6943.
Diffstat (limited to 'kmymoney2/mymoney/mymoneyfiletest.cpp')
-rw-r--r--kmymoney2/mymoney/mymoneyfiletest.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kmymoney2/mymoney/mymoneyfiletest.cpp b/kmymoney2/mymoney/mymoneyfiletest.cpp
index 1c25abd..431debb 100644
--- a/kmymoney2/mymoney/mymoneyfiletest.cpp
+++ b/kmymoney2/mymoney/mymoneyfiletest.cpp
@@ -646,7 +646,7 @@ void MyMoneyFileTest::testRemoveAccountTree() {
delete e;
}
- // make sure that children are re-parented to parent account
+ // make sure that tqchildren are re-parented to parent account
try {
a = m->account("A000001");
CPPUNIT_ASSERT(a.parentAccountId() == m->asset().id());
@@ -761,16 +761,16 @@ void MyMoneyFileTest::testAddTransaction () {
CPPUNIT_ASSERT(t.id() == "T000000000000000001");
CPPUNIT_ASSERT(t.postDate() == TQDate(2002,2,1));
- CPPUNIT_ASSERT(t.entryDate() == TQDate::currentDate());
+ CPPUNIT_ASSERT(t.entryDate() == TQDate::tqcurrentDate());
CPPUNIT_ASSERT(m->dirty() == true);
// check the balance of the accounts
a = m->account("A000001");
- CPPUNIT_ASSERT(a.lastModified() == TQDate::currentDate());
+ CPPUNIT_ASSERT(a.lastModified() == TQDate::tqcurrentDate());
CPPUNIT_ASSERT(a.balance() == MyMoneyMoney(-1000));
MyMoneyAccount b = m->account("A000003");
- CPPUNIT_ASSERT(b.lastModified() == TQDate::currentDate());
+ CPPUNIT_ASSERT(b.lastModified() == TQDate::tqcurrentDate());
CPPUNIT_ASSERT(b.balance() == MyMoneyMoney(1000));
storage->m_dirty = false;
@@ -1290,7 +1290,7 @@ void MyMoneyFileTest::testAddEquityAccount() {
// keep a copy for later use
m_inv = i;
- // make sure, that only equity accounts can be children to it
+ // make sure, that only equity accounts can be tqchildren to it
MyMoneyAccount a;
a.setName("Testaccount");
TQValueList<MyMoneyAccount::accountTypeE> list;
@@ -1389,7 +1389,7 @@ void MyMoneyFileTest::testReparentEquity(TQValueList<MyMoneyAccount::accountType
TQValueList<MyMoneyAccount::accountTypeE>::Iterator it;
MyMoneyFileTransaction ft;
for(it = list.begin(); it != list.end(); ++it) {
- a.setName(TQString("Testaccount %1").arg(*it));
+ a.setName(TQString("Testaccount %1").tqarg(*it));
a.setAccountType(*it);
try {
m->addAccount(a, parent);
@@ -1490,7 +1490,7 @@ void MyMoneyFileTest::testOpeningBalance(void)
openingAcc = m->openingBalanceAccount(m->baseCurrency());
CPPUNIT_ASSERT(openingAcc.parentAccountId() == m->equity().id());
CPPUNIT_ASSERT(openingAcc.name() == MyMoneyFile::OpeningBalancesPrefix);
- CPPUNIT_ASSERT(openingAcc.openingDate() == TQDate::currentDate());
+ CPPUNIT_ASSERT(openingAcc.openingDate() == TQDate::tqcurrentDate());
} catch(MyMoneyException *e) {
unexpectedException(e);
}
@@ -1504,12 +1504,12 @@ void MyMoneyFileTest::testOpeningBalance(void)
unexpectedException(e);
}
- TQString refName = TQString("%1 (%2)").arg(MyMoneyFile::OpeningBalancesPrefix).arg("USD");
+ TQString refName = TQString("%1 (%2)").tqarg(MyMoneyFile::OpeningBalancesPrefix).tqarg("USD");
try {
openingAcc = m->openingBalanceAccount(second);
CPPUNIT_ASSERT(openingAcc.parentAccountId() == m->equity().id());
CPPUNIT_ASSERT(openingAcc.name() == refName);
- CPPUNIT_ASSERT(openingAcc.openingDate() == TQDate::currentDate());
+ CPPUNIT_ASSERT(openingAcc.openingDate() == TQDate::tqcurrentDate());
} catch(MyMoneyException *e) {
unexpectedException(e);
}