summaryrefslogtreecommitdiffstats
path: root/kmymoney2/kmymoneytest.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/kmymoneytest.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/kmymoneytest.cpp')
-rw-r--r--kmymoney2/kmymoneytest.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kmymoney2/kmymoneytest.cpp b/kmymoney2/kmymoneytest.cpp
index f3c7222..fd89b69 100644
--- a/kmymoney2/kmymoneytest.cpp
+++ b/kmymoney2/kmymoneytest.cpp
@@ -21,7 +21,7 @@
#include <stdexcept>
/* required for Q_UNUSED( ) */
-#include <qglobal.h>
+#include <tqglobal.h>
#ifdef HAVE_LIBCPPUNIT
@@ -63,7 +63,7 @@
#include "reports/pivottabletest.h"
#include "reports/pivotgridtest.h"
-#include "reports/querytabletest.h"
+#include "reports/tquerytabletest.h"
#include "converter/convertertest.h"
@@ -72,12 +72,12 @@
class MyProgressListener : public CppUnit::TextTestProgressListener
{
void startTest(CppUnit::Test *test) {
- QString name = test->getName().c_str();
- if(name.find('.') != -1) { // in CPPUNIT 1.8.0
+ TQString name = test->getName().c_str();
+ if(name.tqfind('.') != -1) { // in CPPUNIT 1.8.0
name = name.mid(2); // cut off first 2 chars
- name = name.left(name.find('.'));
- } else if(name.find("::") != -1) { // in CPPUNIT 1.9.14
- name = name.left(name.find("::"));
+ name = name.left(name.tqfind('.'));
+ } else if(name.tqfind("::") != -1) { // in CPPUNIT 1.9.14
+ name = name.left(name.tqfind("::"));
}
if(m_name != name) {
if(m_name != "")
@@ -87,7 +87,7 @@ class MyProgressListener : public CppUnit::TextTestProgressListener
}
}
private:
- QString m_name;
+ TQString m_name;
};
void unexpectedException(MyMoneyException *e)