From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kooka/ocrword.cpp | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'kooka/ocrword.cpp') 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 +#include #include "ocrword.h" -#include -#include +#include +#include #include -#include +#include /* -------------------- 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(), + :TQValueList(), 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 " -- cgit v1.2.1