summaryrefslogtreecommitdiffstats
path: root/kunittest/tester.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kunittest/tester.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kunittest/tester.cpp')
-rw-r--r--kunittest/tester.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kunittest/tester.cpp b/kunittest/tester.cpp
index 93509716d..3faf3997e 100644
--- a/kunittest/tester.cpp
+++ b/kunittest/tester.cpp
@@ -26,7 +26,7 @@
#include <iostream>
using namespace std;
-#include <qmetaobject.h>
+#include <tqmetaobject.h>
#include "tester.h"
@@ -38,23 +38,23 @@ namespace KUnitTest
m_total = m_results;
}
- void SlotTester::invokeMember(const QString &str)
+ void SlotTester::invokeMember(const TQString &str)
{
- QString slotname = QString::number(QSLOT_CODE) + str;
- connect(this, SIGNAL(invoke()), this, slotname.ascii());
+ TQString slotname = TQString::number(QSLOT_CODE) + str;
+ connect(this, TQT_SIGNAL(invoke()), this, slotname.ascii());
emit invoke();
- disconnect(this, SIGNAL(invoke()), this, slotname.ascii());
+ disconnect(this, TQT_SIGNAL(invoke()), this, slotname.ascii());
}
void SlotTester::allTests()
{
- QStrList allSlots = metaObject()->slotNames();
+ TQStrList allSlots = metaObject()->slotNames();
if ( allSlots.contains("setUp()") > 0 ) invokeMember("setUp()");
for ( char *sl = allSlots.first(); sl; sl = allSlots.next() )
{
- QString str = sl;
+ TQString str = sl;
if ( str.startsWith("test") )
{
@@ -80,17 +80,17 @@ namespace KUnitTest
}
}
-QTextStream& operator<<( QTextStream& str, const QRect& r ) {
+TQTextStream& operator<<( TQTextStream& str, const TQRect& r ) {
str << "[" << r.x() << "," << r.y() << " - " << r.width() << "x" << r.height() << "]";
return str;
}
-QTextStream& operator<<( QTextStream& str, const QPoint& r ) {
+TQTextStream& operator<<( TQTextStream& str, const TQPoint& r ) {
str << "(" << r.x() << "," << r.y() << ")";
return str;
}
-QTextStream& operator<<( QTextStream& str, const QSize& r ) {
+TQTextStream& operator<<( TQTextStream& str, const TQSize& r ) {
str << "[" << r.width() << "x" << r.height() << "]";
return str;
}