From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kspell2/tests/backgroundtest.cpp | 14 +++++++------- kspell2/tests/backgroundtest.h | 8 ++++---- kspell2/tests/test.cpp | 10 +++++----- kspell2/tests/test_dialog.cpp | 10 +++++----- kspell2/tests/test_dialog.h | 6 +++--- kspell2/tests/test_filter.cpp | 2 +- kspell2/tests/test_highlighter.cpp | 4 ++-- 7 files changed, 27 insertions(+), 27 deletions(-) (limited to 'kspell2/tests') 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 "<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 -#include +#include +#include #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 #include -#include +#include 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"<suggest( *itr ); + TQStringList sug = dict->suggest( *itr ); //kdDebug()<<"Suggestions : "<setBuffer( buffer ); dlg->show(); } -void TestDialog::doneChecking( const QString& buf ) +void TestDialog::doneChecking( const TQString& buf ) { kdDebug()<<"Done with :"<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 +#include 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 #include -#include +#include 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 ); -- cgit v1.2.1