summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoSpell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kotext/KoSpell.cpp')
-rw-r--r--lib/kotext/KoSpell.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/kotext/KoSpell.cpp b/lib/kotext/KoSpell.cpp
index 63f5a37b..87ef1803 100644
--- a/lib/kotext/KoSpell.cpp
+++ b/lib/kotext/KoSpell.cpp
@@ -33,7 +33,7 @@
#include <klocale.h>
#include <kdebug.h>
-#include <qtimer.h>
+#include <tqtimer.h>
//#define DEBUG_SPELL
@@ -49,9 +49,9 @@ public:
KoTextDocument *lastTxtDocument;
};
-KoSpell::KoSpell( const Broker::Ptr& broker, QObject *parent,
+KoSpell::KoSpell( const Broker::Ptr& broker, TQObject *tqparent,
const char *name )
- : BackgroundChecker( broker, parent, name )
+ : BackgroundChecker( broker, tqparent, name )
{
d = new Private;
d->parag = 0;
@@ -74,7 +74,7 @@ bool KoSpell::check( KoTextIterator *itr, bool dialog )
return ret;
d->itr = itr;
- connect( d->itr, SIGNAL( currentParagraphDeleted() ), SLOT( slotCurrentParagraphDeleted() ) );
+ connect( d->itr, TQT_SIGNAL( currentParagraphDeleted() ), TQT_SLOT( slotCurrentParagraphDeleted() ) );
d->lastTxtDocument = d->itr->currentTextObject()->textDocument();
d->needsIncrement = false;
ret = !d->itr->atEnd();
@@ -97,7 +97,7 @@ bool KoSpell::check( KoTextParag *parag )
}
bool KoSpell::checkWordInParagraph( KoTextParag *parag, int pos,
- QString& foundWord, int& start )
+ TQString& foundWord, int& start )
{
if ( !parag ) {
start = -1;
@@ -106,7 +106,7 @@ bool KoSpell::checkWordInParagraph( KoTextParag *parag, int pos,
d->parag = parag;
d->lastTxtDocument = d->parag->textDocument();
- QString str = parag->string()->stringToSpellCheck();
+ TQString str = parag->string()->stringToSpellCheck();
/// ##### do we really need to create a Filter every time?
Filter filter;
filter.setBuffer( str );
@@ -121,7 +121,7 @@ bool KoSpell::checkWordInParagraph( KoTextParag *parag, int pos,
return checkWord( w.word );
}
-QString KoSpell::getMoreText()
+TQString KoSpell::getMoreText()
{
#ifdef DEBUG_SPELL
kdDebug()<<"getMoreText: dialog = " << d->dialog << ", itr = "
@@ -138,10 +138,10 @@ QString KoSpell::getMoreText()
}
if ( d->itr && d->itr->atEnd() )
- return QString::null;
+ return TQString();
if ( !d->dialog && !d->itr ) {
- QString str = d->parag ? d->parag->string()->stringToSpellCheck() : QString::null;
+ TQString str = d->parag ? d->parag->string()->stringToSpellCheck() : TQString();
if ( !str.isEmpty() )
emit aboutToFeedText();
return str;
@@ -149,7 +149,7 @@ QString KoSpell::getMoreText()
d->needsIncrement = true;
- QString text = d->itr->currentText();
+ TQString text = d->itr->currentText();
d->parag = d->itr->currentParag();
emit aboutToFeedText();
@@ -161,7 +161,7 @@ QString KoSpell::getMoreText()
++(*d->itr);
if ( d->itr->atEnd() ) {
d->needsIncrement = false;
- return QString::null;
+ return TQString();
}
d->parag = d->itr->currentParag();
d->lastTxtDocument = d->parag->textDocument();