summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneysplittest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/mymoney/mymoneysplittest.cpp')
-rw-r--r--kmymoney2/mymoney/mymoneysplittest.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kmymoney2/mymoney/mymoneysplittest.cpp b/kmymoney2/mymoney/mymoneysplittest.cpp
index a592e1a..806b556 100644
--- a/kmymoney2/mymoney/mymoneysplittest.cpp
+++ b/kmymoney2/mymoney/mymoneysplittest.cpp
@@ -38,14 +38,14 @@ void MyMoneySplitTest::testEmptyConstructor() {
CPPUNIT_ASSERT(m->shares().isZero());
CPPUNIT_ASSERT(m->value().isZero());
CPPUNIT_ASSERT(m->reconcileFlag() == MyMoneySplit::NotReconciled);
- CPPUNIT_ASSERT(m->reconcileDate() == QDate());
+ CPPUNIT_ASSERT(m->reconcileDate() == TQDate());
CPPUNIT_ASSERT(m->transactionId().isEmpty());
}
void MyMoneySplitTest::testSetFunctions() {
m->setAccountId("Account");
m->setMemo("Memo");
- m->setReconcileDate(QDate(1,2,3));
+ m->setReconcileDate(TQDate(1,2,3));
m->setReconcileFlag(MyMoneySplit::Cleared);
m->setShares(1234);
m->setValue(3456);
@@ -57,7 +57,7 @@ void MyMoneySplitTest::testSetFunctions() {
CPPUNIT_ASSERT(m->accountId() == "Account");
CPPUNIT_ASSERT(m->memo() == "Memo");
- CPPUNIT_ASSERT(m->reconcileDate() == QDate(1,2,3));
+ CPPUNIT_ASSERT(m->reconcileDate() == TQDate(1,2,3));
CPPUNIT_ASSERT(m->reconcileFlag() == MyMoneySplit::Cleared);
CPPUNIT_ASSERT(m->shares() == MyMoneyMoney(1234));
CPPUNIT_ASSERT(m->value() == MyMoneyMoney(3456));
@@ -76,7 +76,7 @@ void MyMoneySplitTest::testCopyConstructor() {
CPPUNIT_ASSERT(n.accountId() == "Account");
CPPUNIT_ASSERT(n.memo() == "Memo");
- CPPUNIT_ASSERT(n.reconcileDate() == QDate(1,2,3));
+ CPPUNIT_ASSERT(n.reconcileDate() == TQDate(1,2,3));
CPPUNIT_ASSERT(n.reconcileFlag() == MyMoneySplit::Cleared);
CPPUNIT_ASSERT(n.shares() == MyMoneyMoney(1234));
CPPUNIT_ASSERT(n.value() == MyMoneyMoney(3456));
@@ -96,7 +96,7 @@ void MyMoneySplitTest::testAssignmentConstructor() {
CPPUNIT_ASSERT(n.accountId() == "Account");
CPPUNIT_ASSERT(n.memo() == "Memo");
- CPPUNIT_ASSERT(n.reconcileDate() == QDate(1,2,3));
+ CPPUNIT_ASSERT(n.reconcileDate() == TQDate(1,2,3));
CPPUNIT_ASSERT(n.reconcileFlag() == MyMoneySplit::Cleared);
CPPUNIT_ASSERT(n.shares() == MyMoneyMoney(1234));
CPPUNIT_ASSERT(n.value() == MyMoneyMoney(3456));
@@ -148,7 +148,7 @@ void MyMoneySplitTest::testInequality() {
CPPUNIT_ASSERT(!(n == *m));
n = *m;
- n.setReconcileDate(QDate(3,4,5));
+ n.setReconcileDate(TQDate(3,4,5));
CPPUNIT_ASSERT(!(n == *m));
n = *m;
@@ -200,7 +200,7 @@ void MyMoneySplitTest::testSetValue() {
}
void MyMoneySplitTest::testSetAction() {
- CPPUNIT_ASSERT(m->action() == QString());
+ CPPUNIT_ASSERT(m->action() == TQString());
m->setAction(MyMoneySplit::BuyShares);
CPPUNIT_ASSERT(m->action() == MyMoneySplit::ActionBuyShares);
m->setAction(MyMoneySplit::SellShares);
@@ -243,12 +243,12 @@ void MyMoneySplitTest::testWriteXML() {
s.setAction(MyMoneySplit::ActionDeposit);
s.setReconcileFlag(MyMoneySplit::Reconciled);
- QDomDocument doc("TEST");
- QDomElement el = doc.createElement("SPLIT-CONTAINER");
+ TQDomDocument doc("TEST");
+ TQDomElement el = doc.createElement("SPLIT-CONTAINER");
doc.appendChild(el);
s.writeXML(doc, el);
- QString ref = QString(
+ TQString ref = TQString(
"<!DOCTYPE TEST>\n"
"<SPLIT-CONTAINER>\n"
" <SPLIT payee=\"P000001\" reconciledate=\"\" shares=\"96379/100\" action=\"Deposit\" bankid=\"SPID\" number=\"124\" reconcileflag=\"2\" memo=\"\" value=\"96379/1000\" id=\"\" account=\"A000076\" />\n"
@@ -259,20 +259,20 @@ void MyMoneySplitTest::testWriteXML() {
void MyMoneySplitTest::testReadXML() {
MyMoneySplit s;
- QString ref_ok = QString(
+ TQString ref_ok = TQString(
"<!DOCTYPE TEST>\n"
"<SPLIT-CONTAINER>\n"
" <SPLIT payee=\"P000001\" reconciledate=\"\" shares=\"96379/100\" action=\"Deposit\" bankid=\"SPID\" number=\"124\" reconcileflag=\"2\" memo=\"MyMemo\" value=\"96379/1000\" account=\"A000076\" />\n"
"</SPLIT-CONTAINER>\n");
- QString ref_false = QString(
+ TQString ref_false = TQString(
"<!DOCTYPE TEST>\n"
"<SPLIT-CONTAINER>\n"
" <SPLITS payee=\"P000001\" reconciledate=\"\" shares=\"96379/100\" action=\"Deposit\" bankid=\"SPID\" number=\"124\" reconcileflag=\"2\" memo=\"\" value=\"96379/1000\" account=\"A000076\" />\n"
"</SPLIT-CONTAINER>\n");
- QDomDocument doc;
- QDomElement node;
+ TQDomDocument doc;
+ TQDomElement node;
doc.setContent(ref_false);
node = doc.documentElement().firstChild().toElement();
@@ -290,7 +290,7 @@ void MyMoneySplitTest::testReadXML() {
s = MyMoneySplit(node);
CPPUNIT_ASSERT(s.id().isEmpty());
CPPUNIT_ASSERT(s.payeeId() == "P000001");
- CPPUNIT_ASSERT(s.reconcileDate() == QDate());
+ CPPUNIT_ASSERT(s.reconcileDate() == TQDate());
CPPUNIT_ASSERT(s.shares() == MyMoneyMoney(96379, 100));
CPPUNIT_ASSERT(s.value() == MyMoneyMoney(96379, 1000));
CPPUNIT_ASSERT(s.number() == "124");