diff options
Diffstat (limited to 'kmymoney2/kmymoneytest.cpp')
-rw-r--r-- | kmymoney2/kmymoneytest.cpp | 16 |
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) |