summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneypayeetest.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/mymoneypayeetest.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/mymoneypayeetest.cpp')
-rw-r--r--kmymoney2/mymoney/mymoneypayeetest.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kmymoney2/mymoney/mymoneypayeetest.cpp b/kmymoney2/mymoney/mymoneypayeetest.cpp
index 601679c..124cc65 100644
--- a/kmymoney2/mymoney/mymoneypayeetest.cpp
+++ b/kmymoney2/mymoney/mymoneypayeetest.cpp
@@ -26,21 +26,21 @@ void MyMoneyPayeeTest::tearDown () {
}
void MyMoneyPayeeTest::testXml(){
- QDomDocument doc;
- QDomElement parent = doc.createElement("Test");
- doc.appendChild(parent);
+ TQDomDocument doc;
+ TQDomElement tqparent = doc.createElement("Test");
+ doc.appendChild(tqparent);
MyMoneyPayee payee1;
payee1.m_id = "some random id";//if the ID isn't set, w ethrow an exception
- payee1.writeXML(doc,parent);
- QString temp1 = "Account1";
+ payee1.writeXML(doc,tqparent);
+ TQString temp1 = "Account1";
payee1.setDefaultAccountId(temp1);
- payee1.writeXML(doc,parent);
- QString temp2 = "Account2";
+ payee1.writeXML(doc,tqparent);
+ TQString temp2 = "Account2";
payee1.setDefaultAccountId(temp2);
- payee1.writeXML(doc,parent);
+ payee1.writeXML(doc,tqparent);
payee1.setDefaultAccountId();
- payee1.writeXML(doc,parent);
- QDomElement el = parent.firstChild().toElement();
+ payee1.writeXML(doc,tqparent);
+ TQDomElement el = tqparent.firstChild().toElement();
CPPUNIT_ASSERT(!el.isNull());
MyMoneyPayee payee2(el);
CPPUNIT_ASSERT(!payee2.defaultAccountEnabled());
@@ -66,7 +66,7 @@ void MyMoneyPayeeTest::testDefaultAccount(){
MyMoneyPayee payee;
CPPUNIT_ASSERT(!payee.defaultAccountEnabled());
CPPUNIT_ASSERT(payee.defaultAccountId().isEmpty());
- QString temp = "Account1";
+ TQString temp = "Account1";
payee.setDefaultAccountId(temp);
CPPUNIT_ASSERT(payee.defaultAccountEnabled());
CPPUNIT_ASSERT(payee.defaultAccountId()==temp);