summaryrefslogtreecommitdiffstats
path: root/kspell2/tests
diff options
context:
space:
mode:
Diffstat (limited to 'kspell2/tests')
-rw-r--r--kspell2/tests/backgroundtest.cpp14
-rw-r--r--kspell2/tests/backgroundtest.h8
-rw-r--r--kspell2/tests/test.cpp10
-rw-r--r--kspell2/tests/test_dialog.cpp10
-rw-r--r--kspell2/tests/test_dialog.h6
-rw-r--r--kspell2/tests/test_filter.cpp2
-rw-r--r--kspell2/tests/test_highlighter.cpp4
7 files changed, 27 insertions, 27 deletions
diff --git a/kspell2/tests/backgroundtest.cpp b/kspell2/tests/backgroundtest.cpp
index a0fb7c69b..db9ad9a69 100644
--- a/kspell2/tests/backgroundtest.cpp
+++ b/kspell2/tests/backgroundtest.cpp
@@ -131,13 +131,13 @@ Discussion\
If you want to talk about this code feel free to mail us.";
BackgroundTest::BackgroundTest()
- : QObject( 0 )
+ : TQObject( 0 )
{
m_checker = new BackgroundChecker( Broker::openBroker(), this );
- connect( m_checker, SIGNAL(done()),
- SLOT(slotDone()) );
- connect( m_checker, SIGNAL(misspelling(const QString&, int)),
- SLOT(slotMisspelling(const QString&, int)) );
+ connect( m_checker, TQT_SIGNAL(done()),
+ TQT_SLOT(slotDone()) );
+ connect( m_checker, TQT_SIGNAL(misspelling(const TQString&, int)),
+ TQT_SLOT(slotMisspelling(const TQString&, int)) );
m_len = strlen( text );
m_checker->checkText( text );
m_timer.start();
@@ -147,10 +147,10 @@ void BackgroundTest::slotDone()
{
kdDebug()<<"Text of length "<<m_len<<" checked in "
<< m_timer.elapsed() << " msec."<<endl;
- QApplication::exit();
+ TQApplication::exit();
}
-void BackgroundTest::slotMisspelling( const QString& word, int start )
+void BackgroundTest::slotMisspelling( const TQString& word, int start )
{
kdDebug()<<"Misspelling \""<< word << "\" at " << start << endl;
m_checker->continueChecking();
diff --git a/kspell2/tests/backgroundtest.h b/kspell2/tests/backgroundtest.h
index 6dac80af7..fcdf9db55 100644
--- a/kspell2/tests/backgroundtest.h
+++ b/kspell2/tests/backgroundtest.h
@@ -21,8 +21,8 @@
#ifndef BACKGROUNDTEST_H
#define BACKGROUNDTEST_H
-#include <qobject.h>
-#include <qdatetime.h>
+#include <tqobject.h>
+#include <tqdatetime.h>
#include "backgroundchecker.h"
@@ -34,11 +34,11 @@ public:
protected slots:
void slotDone();
- void slotMisspelling( const QString& word, int start );
+ void slotMisspelling( const TQString& word, int start );
private:
KSpell2::BackgroundChecker *m_checker;
- QTime m_timer;
+ TQTime m_timer;
int m_len;
};
diff --git a/kspell2/tests/test.cpp b/kspell2/tests/test.cpp
index 15425527d..e9b72a794 100644
--- a/kspell2/tests/test.cpp
+++ b/kspell2/tests/test.cpp
@@ -24,7 +24,7 @@
#include <kapplication.h>
#include <kdebug.h>
-#include <qdatetime.h>
+#include <tqdatetime.h>
using namespace KSpell2;
@@ -39,7 +39,7 @@ int main( int argc, char** argv )
Dictionary *dict = broker->dictionary( "en_US" );
- QStringList words;
+ TQStringList words;
words << "hello" << "helo" << "enviroment" << "guvernment" << "farted"
<< "hello" << "helo" << "enviroment" << "guvernment" << "farted"
@@ -82,12 +82,12 @@ int main( int argc, char** argv )
<< "hello" << "helo" << "enviroment" << "guvernment" << "farted"
<< "hello" << "helo" << "enviroment" << "guvernment" << "farted";
- QTime mtime;
+ TQTime mtime;
mtime.start();
- for ( QStringList::Iterator itr = words.begin(); itr != words.end(); ++itr ) {
+ for ( TQStringList::Iterator itr = words.begin(); itr != words.end(); ++itr ) {
if ( dict && !dict->check( *itr ) ) {
//kdDebug()<<"Word " << *itr <<" is misspelled"<<endl;
- QStringList sug = dict->suggest( *itr );
+ TQStringList sug = dict->suggest( *itr );
//kdDebug()<<"Suggestions : "<<sug<<endl;
}
}
diff --git a/kspell2/tests/test_dialog.cpp b/kspell2/tests/test_dialog.cpp
index d481de00d..f0ee1ab3b 100644
--- a/kspell2/tests/test_dialog.cpp
+++ b/kspell2/tests/test_dialog.cpp
@@ -30,23 +30,23 @@
using namespace KSpell2;
TestDialog::TestDialog()
- : QObject( 0, "testdialog" )
+ : TQObject( 0, "testdialog" )
{
}
-void TestDialog::check( const QString& buffer )
+void TestDialog::check( const TQString& buffer )
{
KSpell2::Dialog *dlg = new KSpell2::Dialog(
new BackgroundChecker( Broker::openBroker(), this, "checker" ),
0, "my dialog" );
- connect( dlg, SIGNAL(done(const QString&)),
- SLOT(doneChecking(const QString&)) );
+ connect( dlg, TQT_SIGNAL(done(const TQString&)),
+ TQT_SLOT(doneChecking(const TQString&)) );
dlg->setBuffer( buffer );
dlg->show();
}
-void TestDialog::doneChecking( const QString& buf )
+void TestDialog::doneChecking( const TQString& buf )
{
kdDebug()<<"Done with :"<<buf<<endl;
qApp->quit();
diff --git a/kspell2/tests/test_dialog.h b/kspell2/tests/test_dialog.h
index 2ce70aaeb..5ef2dd189 100644
--- a/kspell2/tests/test_dialog.h
+++ b/kspell2/tests/test_dialog.h
@@ -24,7 +24,7 @@
#include "dialog.h"
#include "broker.h"
-#include <qobject.h>
+#include <tqobject.h>
class TestDialog : public QObject
{
@@ -33,8 +33,8 @@ public:
TestDialog();
public slots:
- void check( const QString& buffer );
- void doneChecking( const QString& );
+ void check( const TQString& buffer );
+ void doneChecking( const TQString& );
private:
KSpell2::Broker *m_broker;
};
diff --git a/kspell2/tests/test_filter.cpp b/kspell2/tests/test_filter.cpp
index d55b3801f..eafaf622f 100644
--- a/kspell2/tests/test_filter.cpp
+++ b/kspell2/tests/test_filter.cpp
@@ -30,7 +30,7 @@ int main( int argc, char** argv )
{
KApplication app(argc, argv, "Filter");
- QString buffer = QString( "This is a sample buffer. Please test me." );
+ TQString buffer = TQString( "This is a sample buffer. Please test me." );
Filter filter;
filter.setBuffer( buffer );
diff --git a/kspell2/tests/test_highlighter.cpp b/kspell2/tests/test_highlighter.cpp
index faeab0d27..ce5c64501 100644
--- a/kspell2/tests/test_highlighter.cpp
+++ b/kspell2/tests/test_highlighter.cpp
@@ -25,13 +25,13 @@
#include <kapplication.h>
#include <kdebug.h>
-#include <qtextedit.h>
+#include <tqtextedit.h>
int main( int argc, char** argv )
{
KApplication app(argc, argv, "KSpell2Test");
- QTextEdit *test = new QTextEdit();
+ TQTextEdit *test = new TQTextEdit();
KSpell2::Highlighter *hl = new KSpell2::Highlighter( test );
Q_UNUSED( hl );
app.setMainWidget( test );