summaryrefslogtreecommitdiffstats
path: root/kooka/ocrword.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kooka/ocrword.cpp')
-rw-r--r--kooka/ocrword.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kooka/ocrword.cpp b/kooka/ocrword.cpp
index 1bd29f3e..4b04ea6e 100644
--- a/kooka/ocrword.cpp
+++ b/kooka/ocrword.cpp
@@ -24,29 +24,29 @@
* *
***************************************************************************/
-#include <qstring.h>
+#include <tqstring.h>
#include "ocrword.h"
-#include <qrect.h>
-#include <qptrlist.h>
+#include <tqrect.h>
+#include <tqptrlist.h>
#include <kdebug.h>
-#include <qregexp.h>
+#include <tqregexp.h>
/* -------------------- ocrWord -------------------- */
-ocrWord::ocrWord( const QString& s )
- : QString(s)
+ocrWord::ocrWord( const TQString& s )
+ : TQString(s)
{
}
-ocrWord::ocrWord() : QString()
+ocrWord::ocrWord() : TQString()
{
}
#if 0
-QRect ocrWord::boundingRect()
+TQRect ocrWord::boundingRect()
{
- QRect r;
+ TQRect r;
return r;
}
@@ -54,16 +54,16 @@ QRect ocrWord::boundingRect()
/* -------------------- CocrWordList ------------------ */
ocrWordList::ocrWordList()
- :QValueList<ocrWord>(),
+ :TQValueList<ocrWord>(),
m_block(0)
{
// setAutoDelete( true );
}
-QStringList ocrWordList::stringList()
+TQStringList ocrWordList::stringList()
{
- QStringList res;
- QRegExp rx("[,\\.-]");
+ TQStringList res;
+ TQRegExp rx("[,\\.-]");
ocrWordList::iterator it;
for ( it = begin(); it != end(); ++it )
@@ -77,7 +77,7 @@ QStringList ocrWordList::stringList()
* We live with the problem here that dashes bring confusion ;-)
*/
if( (*it).contains( rx ) )
- res += QStringList::split( rx, (*it) );
+ res += TQStringList::split( rx, (*it) );
else
#endif
res << *it;
@@ -86,14 +86,14 @@ QStringList ocrWordList::stringList()
}
-bool ocrWordList::updateOCRWord( const QString& from, const QString& to )
+bool ocrWordList::updateOCRWord( const TQString& from, const TQString& to )
{
ocrWordList::iterator it;
bool res = false;
for( it = begin(); it != end(); ++it )
{
- QString word = (*it);
+ TQString word = (*it);
kdDebug(28000) << "updateOCRWord in list: Comparing word " << word << endl;
if( word.contains( from, true ) ) // case sensitive search
{
@@ -106,9 +106,9 @@ bool ocrWordList::updateOCRWord( const QString& from, const QString& to )
return res;
}
-QRect ocrWordList::wordListRect()
+TQRect ocrWordList::wordListRect()
{
- QRect rect;
+ TQRect rect;
ocrWordList::iterator it;
@@ -126,15 +126,15 @@ QRect ocrWordList::wordListRect()
* This search goes through the wordlist and tries to find the words without caring
* for special chars. It simply removes all chars from the words that are not alphanumeric.
*/
-bool ocrWordList::findFuzzyIndex( const QString& word, ocrWord& resWord )
+bool ocrWordList::findFuzzyIndex( const TQString& word, ocrWord& resWord )
{
ocrWordList::iterator it;
bool res = false;
for( it = begin(); it != end() && !res; ++it )
{
- QString fuzzyword = (*it);
- fuzzyword.remove( QRegExp( "\\W" )); // Remove all non-word characters.
+ TQString fuzzyword = (*it);
+ fuzzyword.remove( TQRegExp( "\\W" )); // Remove all non-word characters.
fuzzyword.remove( '_' );
// kdDebug(28000) << "findFuzzy: Comparing word " << fuzzyword << " which was "