From 560378aaca1784ba19806a0414a32b20c744de39 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 3 Jan 2011 04:12:51 +0000 Subject: 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 --- kspell2/filter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kspell2/filter.cpp') 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( "%1" ).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; } -- cgit v1.2.3