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.h | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'kooka/ocrword.h') diff --git a/kooka/ocrword.h b/kooka/ocrword.h index 606acb9f..fd906367 100644 --- a/kooka/ocrword.h +++ b/kooka/ocrword.h @@ -27,28 +27,28 @@ #ifndef _OCR_WORD_ #define _OCR_WORD_ -#include -#include -#include -#include +#include +#include +#include +#include -class QString; -class QRect; +class TQString; +class TQRect; /* ==== ocrWord ====================================== */ class ocrWord : public QString { public: - ocrWord(const QString& s); + ocrWord(const TQString& s); ocrWord(); - QStringList getAlternatives() + TQStringList getAlternatives() { return m_alternatives; } - void setAlternatives( const QString& s ) + void setAlternatives( const TQString& s ) { m_alternatives.append(s); } - // QRect boundingRect(); + // TQRect boundingRect(); void setKnode( int k ) { m_startKnode = k; } @@ -58,16 +58,16 @@ public: int getLine() const { return m_line; } int getKnode() const { return m_startKnode; } - void setRect( const QRect& r ) + void setRect( const TQRect& r ) { m_position = r; } - QRect rect() + TQRect rect() { return m_position; } private: - QStringList m_alternatives; + TQStringList m_alternatives; int m_startKnode; int m_line; - QRect m_position; + TQRect m_position; }; /* ==== ocrWordList ====================================== */ @@ -75,17 +75,17 @@ private: /** * This represents a line of words in an ocr'ed document */ -class ocrWordList : public QValueList +class ocrWordList : public TQValueList { public: ocrWordList(); - QStringList stringList(); + TQStringList stringList(); - bool updateOCRWord( const QString& from, const QString& to ); + bool updateOCRWord( const TQString& from, const TQString& to ); - bool findFuzzyIndex( const QString& word, ocrWord& resWord ); + bool findFuzzyIndex( const TQString& word, ocrWord& resWord ); - QRect wordListRect( ); + TQRect wordListRect( ); void setBlock( int b ); int block() const { return m_block; } @@ -98,14 +98,14 @@ private: * All lines of a block: A value vector containing as much as entries * as lines are available in a block. Needs to be resized acordingly. */ -typedef QValueVector ocrBlock; +typedef TQValueVector ocrBlock; /** * Blocks taken together form the page. * Attention: Needs to be resized to the amount of blocks !! */ -typedef QValueVector ocrBlockPage; +typedef TQValueVector ocrBlockPage; -typedef QValueVector rectList; +typedef TQValueVector rectList; #endif -- cgit v1.2.1