diff options
Diffstat (limited to 'lib/kotext/KoTextView.cpp')
-rw-r--r-- | lib/kotext/KoTextView.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/kotext/KoTextView.cpp b/lib/kotext/KoTextView.cpp index cea0fae1..32e82b73 100644 --- a/lib/kotext/KoTextView.cpp +++ b/lib/kotext/KoTextView.cpp @@ -1095,7 +1095,7 @@ TQPtrList<KAction> KoTextView::dataToolActionList(KInstance * instance, const TQ if ( textObject()->hasSelection() ) { text = textObject()->selectedText(); - if ( text.tqfind(' ') == -1 && text.tqfind('\t') == -1 && text.tqfind(KoTextObject::customItemChar()) == -1 ) + if ( text.find(' ') == -1 && text.find('\t') == -1 && text.find(KoTextObject::customItemChar()) == -1 ) { m_singleWord = true; } @@ -1103,7 +1103,7 @@ TQPtrList<KAction> KoTextView::dataToolActionList(KInstance * instance, const TQ { m_singleWord = false; //laurent : don't try to search thesaurus when we have a customItemChar. - if( text.tqfind(KoTextObject::customItemChar())!=-1) + if( text.find(KoTextObject::customItemChar())!=-1) text = TQString(); } } @@ -1166,13 +1166,13 @@ void KoTextView::slotToolActivated( const KDataToolInfo & info, const TQString & TQString mimetype = "application/x-qrichtext"; TQString datatype = "KoTextString"; // If unsupported, try text/plain - if ( !info.mimeTypes().tqcontains( mimetype ) ) + if ( !info.mimeTypes().contains( mimetype ) ) { mimetype = "text/plain"; datatype = TQSTRING_OBJECT_NAME_STRING; } // If unsupported (and if we have a single word indeed), try application/x-singleword - if ( !info.mimeTypes().tqcontains( mimetype ) && m_singleWord ) + if ( !info.mimeTypes().contains( mimetype ) && m_singleWord ) mimetype = "application/x-singleword"; kdDebug(32500) << "Running tool with datatype=" << datatype << " mimetype=" << mimetype << endl; |