summaryrefslogtreecommitdiffstats
path: root/kspell2/backgroundthread.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 /kspell2/backgroundthread.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 'kspell2/backgroundthread.cpp')
-rw-r--r--kspell2/backgroundthread.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kspell2/backgroundthread.cpp b/kspell2/backgroundthread.cpp
index ffa5d0d8a..0f3471537 100644
--- a/kspell2/backgroundthread.cpp
+++ b/kspell2/backgroundthread.cpp
@@ -26,19 +26,19 @@
#include "dictionary.h"
#include <kdebug.h>
-#include <qapplication.h>
+#include <tqapplication.h>
using namespace KSpell2;
BackgroundThread::BackgroundThread()
- : QThread(), m_broker( 0 ), m_dict( 0 )
+ : TQThread(), m_broker( 0 ), m_dict( 0 )
{
m_recv = 0;
m_filter = Filter::defaultFilter();
m_done = false;
}
-void BackgroundThread::setReceiver( QObject *recv )
+void BackgroundThread::setReceiver( TQObject *recv )
{
m_recv = recv;
}
@@ -52,7 +52,7 @@ void BackgroundThread::setBroker( const Broker::Ptr& broker )
m_filter->restart();
}
-QStringList BackgroundThread::suggest( const QString& word ) const
+TQStringList BackgroundThread::suggest( const TQString& word ) const
{
return m_dict->suggest( word );
}
@@ -65,15 +65,15 @@ void BackgroundThread::run()
w = m_filter->nextWord() ) {
if ( !m_dict->check( w.word ) && !m_done ) {
MisspellingEvent *event = new MisspellingEvent( w.word, w.start );
- QApplication::postEvent( m_recv, event );
+ TQApplication::postEvent( m_recv, event );
}
}
m_mutex.unlock();
FinishedCheckingEvent *event = new FinishedCheckingEvent();
- QApplication::postEvent( m_recv, event );
+ TQApplication::postEvent( m_recv, event );
}
-void BackgroundThread::setText( const QString& buff )
+void BackgroundThread::setText( const TQString& buff )
{
stop();
m_mutex.lock();
@@ -90,13 +90,13 @@ void BackgroundThread::setFilter( Filter *filter )
m_filter = filter;
if ( oldFilter ) {
m_filter->setBuffer( oldFilter->buffer() );
- oldFilter->setBuffer( QString::null );
+ oldFilter->setBuffer( TQString::null );
}
m_mutex.unlock();
start();
}
-void BackgroundThread::changeLanguage( const QString& lang )
+void BackgroundThread::changeLanguage( const TQString& lang )
{
stop();
m_mutex.lock();