summaryrefslogtreecommitdiffstats
path: root/libkdepim/komposer/core/tests
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /libkdepim/komposer/core/tests
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdepim/komposer/core/tests')
-rw-r--r--libkdepim/komposer/core/tests/managertest.cpp4
-rw-r--r--libkdepim/komposer/core/tests/managertest.h6
-rw-r--r--libkdepim/komposer/core/tests/tester.cpp4
-rw-r--r--libkdepim/komposer/core/tests/tester.h10
-rw-r--r--libkdepim/komposer/core/tests/testfactory.h10
-rw-r--r--libkdepim/komposer/core/tests/testmanager.cpp16
-rw-r--r--libkdepim/komposer/core/tests/testmanager.h4
7 files changed, 27 insertions, 27 deletions
diff --git a/libkdepim/komposer/core/tests/managertest.cpp b/libkdepim/komposer/core/tests/managertest.cpp
index feec64599..487a84c59 100644
--- a/libkdepim/komposer/core/tests/managertest.cpp
+++ b/libkdepim/komposer/core/tests/managertest.cpp
@@ -23,8 +23,8 @@
#include "pluginmanager.h"
using namespace Komposer;
-ManagerTest::ManagerTest( QObject* parent )
- : QObject( parent )
+ManagerTest::ManagerTest( TQObject* parent )
+ : TQObject( parent )
{
m_manager = new PluginManager( this );
}
diff --git a/libkdepim/komposer/core/tests/managertest.h b/libkdepim/komposer/core/tests/managertest.h
index 0148b29a8..397bfaf01 100644
--- a/libkdepim/komposer/core/tests/managertest.h
+++ b/libkdepim/komposer/core/tests/managertest.h
@@ -21,19 +21,19 @@
#ifndef MANAGERTEST_H
#define MANAGERTEST_H
-#include <qobject.h>
+#include <tqobject.h>
#include "tester.h"
namespace Komposer {
class PluginManager;
}
-class ManagerTest : public QObject,
+class ManagerTest : public TQObject,
public Tester
{
Q_OBJECT
public:
- ManagerTest( QObject* parent = 0 );
+ ManagerTest( TQObject* parent = 0 );
public slots:
void allTests();
diff --git a/libkdepim/komposer/core/tests/tester.cpp b/libkdepim/komposer/core/tests/tester.cpp
index 7fe8a90b2..b32c89644 100644
--- a/libkdepim/komposer/core/tests/tester.cpp
+++ b/libkdepim/komposer/core/tests/tester.cpp
@@ -21,8 +21,8 @@
#include "tester.h"
-Tester::Tester( QObject* parent )
- : QObject( parent )
+Tester::Tester( TQObject* parent )
+ : TQObject( parent )
{
}
diff --git a/libkdepim/komposer/core/tests/tester.h b/libkdepim/komposer/core/tests/tester.h
index 74ebd80d0..5981d681d 100644
--- a/libkdepim/komposer/core/tests/tester.h
+++ b/libkdepim/komposer/core/tests/tester.h
@@ -22,7 +22,7 @@
#define TESTER_H
#include <kdebug.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
#define CHECK( x, y ) check( __FILE__, __LINE__, #x, x, y )
@@ -42,7 +42,7 @@ public:
int testsFailed() const {
return m_errorList.count();
}
- QStringList errorList() const {
+ TQStringList errorList() const {
return m_errorList;
}
@@ -52,8 +52,8 @@ protected:
const T& result, const T& expectedResult )
{
if ( result != expectedResult ) {
- QString error;
- QTextStream ts( &error, IO_WriteOnly );
+ TQString error;
+ TQTextStream ts( &error, IO_WriteOnly );
ts << file << "["<< line <<"]:"
<<" failed on \""<< str <<"\""
<< "\ntests:\t\t result = "
@@ -64,7 +64,7 @@ protected:
++m_tests;
}
private:
- QStringList m_errorList;
+ TQStringList m_errorList;
int m_tests;
};
diff --git a/libkdepim/komposer/core/tests/testfactory.h b/libkdepim/komposer/core/tests/testfactory.h
index 588941d8e..9354e52ad 100644
--- a/libkdepim/komposer/core/tests/testfactory.h
+++ b/libkdepim/komposer/core/tests/testfactory.h
@@ -23,7 +23,7 @@
#include "managertest.h"
-#include <qasciidict.h>
+#include <tqasciidict.h>
#define ADD_TEST(x) addTest( #x, new x )
@@ -40,15 +40,15 @@ public:
{
int result = 0;
kdDebug()<<"Running tests..."<<endl;
- QAsciiDictIterator<Tester> it( m_tests );
+ TQAsciiDictIterator<Tester> it( m_tests );
for( ; it.current(); ++it ) {
Tester* test = it.current();
test->allTests();
- QStringList errorList = test->errorList();
+ TQStringList errorList = test->errorList();
if ( !errorList.empty() ) {
++result;
kdDebug()<< it.currentKey() <<" errors:" << endl;
- for ( QStringList::Iterator itr = errorList.begin();
+ for ( TQStringList::Iterator itr = errorList.begin();
itr != errorList.end(); ++itr ) {
kdDebug()<< "\t" << (*itr).latin1() <<endl;;
}
@@ -65,7 +65,7 @@ public:
m_tests.insert( name, test );
}
private:
- QAsciiDict<Tester> m_tests;
+ TQAsciiDict<Tester> m_tests;
};
#endif
diff --git a/libkdepim/komposer/core/tests/testmanager.cpp b/libkdepim/komposer/core/tests/testmanager.cpp
index d73fb6e8c..8895cfe9e 100644
--- a/libkdepim/komposer/core/tests/testmanager.cpp
+++ b/libkdepim/komposer/core/tests/testmanager.cpp
@@ -11,19 +11,19 @@
using namespace Komposer;
-TestManager::TestManager( QObject *parent )
- : QObject( parent )
+TestManager::TestManager( TQObject *parent )
+ : TQObject( parent )
{
m_manager = new PluginManager( this );
- connect( m_manager, SIGNAL(pluginLoaded(Plugin*)),
- SLOT(slotPluginLoaded(Plugin*)) );
- connect( m_manager, SIGNAL(allPluginsLoaded()),
- SLOT(slotAllPluginsLoaded()) );
+ connect( m_manager, TQT_SIGNAL(pluginLoaded(Plugin*)),
+ TQT_SLOT(slotPluginLoaded(Plugin*)) );
+ connect( m_manager, TQT_SIGNAL(allPluginsLoaded()),
+ TQT_SLOT(slotAllPluginsLoaded()) );
m_manager->loadAllPlugins();
- QValueList<KPluginInfo*> plugins = m_manager->availablePlugins();
+ TQValueList<KPluginInfo*> plugins = m_manager->availablePlugins();
kdDebug()<<"Number of available plugins is "<< plugins.count() <<endl;
- for ( QValueList<KPluginInfo*>::iterator it = plugins.begin(); it != plugins.end(); ++it ) {
+ for ( TQValueList<KPluginInfo*>::iterator it = plugins.begin(); it != plugins.end(); ++it ) {
KPluginInfo *i = ( *it );
kdDebug()<<"\tAvailable plugin "<< i->name()
<<", comment = "<< i->comment() <<endl;
diff --git a/libkdepim/komposer/core/tests/testmanager.h b/libkdepim/komposer/core/tests/testmanager.h
index 3bb805966..c5ff8517d 100644
--- a/libkdepim/komposer/core/tests/testmanager.h
+++ b/libkdepim/komposer/core/tests/testmanager.h
@@ -1,7 +1,7 @@
#ifndef TESTMANAGER_H
#define TESTMANAGER_H
-#include <qobject.h>
+#include <tqobject.h>
namespace Komposer {
class Plugin;
@@ -13,7 +13,7 @@ class TestManager : public QObject
{
Q_OBJECT
public:
- TestManager( QObject *parent );
+ TestManager( TQObject *parent );
public slots:
void slotPluginLoaded( Plugin *plugin );