diff options
Diffstat (limited to 'lib/kotext/KoTextIterator.cpp')
-rw-r--r-- | lib/kotext/KoTextIterator.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/kotext/KoTextIterator.cpp b/lib/kotext/KoTextIterator.cpp index 73468f7e..8ac76173 100644 --- a/lib/kotext/KoTextIterator.cpp +++ b/lib/kotext/KoTextIterator.cpp @@ -306,19 +306,19 @@ TQPair<int, TQString> KoTextIterator::currentTextAndIndex() const if ( m_currentParag == m_firstParag ) { if ( m_firstParag == m_lastParag ) // special case, needs truncating at both ends - return forw ? tqMakePair( m_firstIndex, str.mid( m_firstIndex, m_lastIndex - m_firstIndex ) ) - : tqMakePair( m_lastIndex, str.mid( m_lastIndex, m_firstIndex - m_lastIndex ) ); + return forw ? qMakePair( m_firstIndex, str.mid( m_firstIndex, m_lastIndex - m_firstIndex ) ) + : qMakePair( m_lastIndex, str.mid( m_lastIndex, m_firstIndex - m_lastIndex ) ); else - return forw ? tqMakePair( m_firstIndex, str.mid( m_firstIndex ) ) - : tqMakePair( 0, str.left( m_firstIndex ) ); + return forw ? qMakePair( m_firstIndex, str.mid( m_firstIndex ) ) + : qMakePair( 0, str.left( m_firstIndex ) ); } if ( m_currentParag == m_lastParag ) { - return forw ? tqMakePair( 0, str.left( m_lastIndex ) ) - : tqMakePair( m_lastIndex, str.mid( m_lastIndex ) ); + return forw ? qMakePair( 0, str.left( m_lastIndex ) ) + : qMakePair( m_lastIndex, str.mid( m_lastIndex ) ); } // Not the first parag, nor the last, so we return it all - return tqMakePair( 0, str ); + return qMakePair( 0, str ); } bool KoTextIterator::hasText() const |