summaryrefslogtreecommitdiffstats
path: root/knode/articlewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knode/articlewidget.cpp')
-rw-r--r--knode/articlewidget.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/knode/articlewidget.cpp b/knode/articlewidget.cpp
index b5586c33..dde18d69 100644
--- a/knode/articlewidget.cpp
+++ b/knode/articlewidget.cpp
@@ -473,7 +473,7 @@ void ArticleWidget::displayArticle()
text->decodedText( htmlTxt, true, cfgMgr->readNewsViewer()->removeTrailingNewlines() );
if ( mShowHtml ) {
// strip </html> & </body>
- int i = kMin( htmlTxt.tqfindRev( "</html>", -1, false ), htmlTxt.tqfindRev( "</body>", -1, false ) );
+ int i = kMin( htmlTxt.findRev( "</html>", -1, false ), htmlTxt.findRev( "</body>", -1, false ) );
if ( i >= 0 )
htmlTxt.truncate( i );
html += htmlTxt;
@@ -527,7 +527,7 @@ void ArticleWidget::displayErrorMessage( const TQString &msg )
mViewer->write( "<b><font size=\"+1\" color=\"red\">" );
mViewer->write( i18n("An error occurred.") );
mViewer->write( "</font></b><hr/><br/>" );
- mViewer->write( errMsg.tqreplace( "\n", "<br/>" ) );
+ mViewer->write( errMsg.replace( "\n", "<br/>" ) );
mViewer->write( "</body></html>");
mViewer->end();
@@ -535,7 +535,7 @@ void ArticleWidget::displayErrorMessage( const TQString &msg )
KNConfigManager *cfgMgr = knGlobals.configManager();
if ( cfgMgr->readNewsGeneral()->autoMark() &&
mArticle && mArticle->type() == KMime::Base::ATremote && !mArticle->isOrphant() &&
- ( msg.tqfind("430") != -1 || msg.tqfind("423") != -1 ) ) {
+ ( msg.find("430") != -1 || msg.find("423") != -1 ) ) {
KNRemoteArticle::List l;
l.append( static_cast<KNRemoteArticle*>( mArticle ) );
knGlobals.articleManager()->setRead( l, true );
@@ -610,7 +610,7 @@ void ArticleWidget::displayHeader()
headerHtml += toHtmlString( KGlobal::locale()->formatDateTime(date->qdt(), false, true), None );
} else if ( hb->is("Newsgroups") ) {
TQString groups = hb->asUnicodeString();
- groups.tqreplace( ',', ", " );
+ groups.replace( ',', ", " );
headerHtml += toHtmlString( groups, ParseURL );
} else
headerHtml += toHtmlString( hb->asUnicodeString(), ParseURL );
@@ -837,8 +837,8 @@ void ArticleWidget::displayAttachment( KMime::Content *att, int partNum )
if ( label.isEmpty() )
label = i18n("unnamed" );
// if label consists of only whitespace replace them by underscores
- if ( (uint)label.tqcontains( ' ' ) == label.length() )
- label.tqreplace( TQRegExp( " ", true, true ), "_" );
+ if ( (uint)label.contains( ' ' ) == label.length() )
+ label.replace( TQRegExp( " ", true, true ), "_" );
label = toHtmlString( label, None );
// attachment comment
@@ -928,7 +928,7 @@ int ArticleWidget::quotingDepth( const TQString &line, const TQString &quoteChar
// skip spaces
if ( line[i].isSpace() )
continue;
- if ( quoteChars.tqfind( line[i] ) != -1 )
+ if ( quoteChars.find( line[i] ) != -1 )
++level;
else
break;
@@ -989,7 +989,7 @@ TQString ArticleWidget::writeAttachmentToTempFile( KMime::Content *att, int part
// strip off a leading path
KMime::Headers::ContentType* ct = att->contentType();
TQString attName = ct->name();
- int slashPos = attName.tqfindRev( '/' );
+ int slashPos = attName.findRev( '/' );
if( -1 != slashPos )
attName = attName.mid( slashPos + 1 );
if( attName.isEmpty() )
@@ -1158,7 +1158,7 @@ void ArticleWidget::slotURLClicked( const KURL &url, bool forceOpen)
int partNum = 0;
if ( url.protocol() == "file" || url.protocol() == "part" ) {
if ( url.protocol() == "file" ) {
- if ( !mAttachementMap.tqcontains( url.path() ) )
+ if ( !mAttachementMap.contains( url.path() ) )
return;
partNum = mAttachementMap[url.path()];
}
@@ -1444,7 +1444,7 @@ void ArticleWidget::slotSaveAttachment()
return;
int partNum = 0;
if ( mCurrentURL.protocol() == "file" ) {
- if ( !mAttachementMap.tqcontains( mCurrentURL.path() ) )
+ if ( !mAttachementMap.contains( mCurrentURL.path() ) )
return;
partNum = mAttachementMap[mCurrentURL.path()];
}