summaryrefslogtreecommitdiffstats
path: root/kspell2/filter.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kspell2/filter.cpp
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kspell2/filter.cpp')
-rw-r--r--kspell2/filter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kspell2/filter.cpp b/kspell2/filter.cpp
index 1604bcae1..6b62481ad 100644
--- a/kspell2/filter.cpp
+++ b/kspell2/filter.cpp
@@ -202,7 +202,7 @@ int Filter::currentPosition() const
return m_currentPosition;
}
-void Filter::replace( const Word& w, const TQString& newWord)
+void Filter::tqreplace( const Word& w, const TQString& newWord)
{
int oldLen = w.word.length();
int newLen = newWord.length();
@@ -213,7 +213,7 @@ void Filter::replace( const Word& w, const TQString& newWord)
m_currentPosition += len;
}
}
- m_buffer = m_buffer.replace( w.start, oldLen, newWord );
+ m_buffer = m_buffer.tqreplace( w.start, oldLen, newWord );
}
TQString Filter::context() const
@@ -227,7 +227,7 @@ TQString Filter::context() const
TQString buffer = m_buffer;
Word word = wordAtPosition( m_currentPosition );
- buffer = buffer.replace( word.start, word.word.length(),
+ buffer = buffer.tqreplace( word.start, word.word.length(),
TQString( "<b>%1</b>" ).arg( word.word ) );
TQString context;
@@ -238,7 +238,7 @@ TQString Filter::context() const
context = TQString( "...%1..." )
.arg( buffer.mid( m_currentPosition - 20, len ) );
- context = context.replace( '\n', ' ' );
+ context = context.tqreplace( '\n', ' ' );
return context;
}