summaryrefslogtreecommitdiffstats
path: root/kooka/ocrresedit.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kooka/ocrresedit.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kooka/ocrresedit.cpp')
-rw-r--r--kooka/ocrresedit.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kooka/ocrresedit.cpp b/kooka/ocrresedit.cpp
index a8d842a1..8465d09c 100644
--- a/kooka/ocrresedit.cpp
+++ b/kooka/ocrresedit.cpp
@@ -19,8 +19,8 @@
* including the source code for KADMOS in the source distribution. *
*
* As a special exception, permission is given to link this program *
- * with any edition of Qt, and distribute the resulting executable, *
- * without including the source code for Qt in the source distribution. *
+ * with any edition of TQt, and distribute the resulting executable, *
+ * without including the source code for TQt in the source distribution. *
* *
***************************************************************************/
#include <tqcolor.h>
@@ -36,8 +36,8 @@
/* -------------------- ocrResEdit -------------------- */
-ocrResEdit::ocrResEdit( TQWidget *parent )
- : TQTextEdit(parent)
+ocrResEdit::ocrResEdit( TQWidget *tqparent )
+ : TQTextEdit(tqparent)
{
m_updateColor.setNamedColor( "SeaGreen");
m_ignoreColor.setNamedColor( "CadetBlue4" );
@@ -75,11 +75,11 @@ void ocrResEdit::slSelectWord( int line, const ocrWord& word )
if( line < paragraphs() )
{
TQString editLine = text(line);
- int cnt = editLine.contains( word);
+ int cnt = editLine.tqcontains( word);
if( cnt > 0 )
{
- int pos = editLine.find(word);
+ int pos = editLine.tqfind(word);
setCursorPosition( line, pos );
setSelection( line, pos, line, pos + word.length());
}
@@ -96,11 +96,11 @@ void ocrResEdit::slReplaceWord( int line, const TQString& wordFrom,
if( line < paragraphs() )
{
TQString editLine = text(line);
- int cnt = editLine.contains( wordFrom );
+ int cnt = editLine.tqcontains( wordFrom );
if( cnt > 0 )
{
- int pos = editLine.find(wordFrom);
+ int pos = editLine.tqfind(wordFrom);
setSelection( line, pos, line, pos+wordFrom.length());
TQColor saveCol = this->color();