diff options
Diffstat (limited to 'knode/articlewidget.cpp')
-rw-r--r-- | knode/articlewidget.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/knode/articlewidget.cpp b/knode/articlewidget.cpp index 0f8291cf9..b8b58fd6f 100644 --- a/knode/articlewidget.cpp +++ b/knode/articlewidget.cpp @@ -192,7 +192,7 @@ void ArticleWidget::initActions() mCharsetSelect = new KSelectAction( i18n("Chars&et"), 0, mActionCollection, "set_charset" ); mCharsetSelect->setShortcutConfigurable( false ); - TQStringList cs = KGlobal::charsets()->descriptiveEncodingNames(); + TQStringList cs = TDEGlobal::charsets()->descriptiveEncodingNames(); cs.prepend( i18n("Automatic") ); mCharsetSelect->setItems( cs ); mCharsetSelect->setCurrentItem( 0 ); @@ -420,9 +420,9 @@ void ArticleWidget::displayArticle() TQStrListIterator npbit( nonPgpBlocks ); TQTextCodec *codec; if ( text ) - codec = KGlobal::charsets()->codecForName( text->contentType()->charset() ); + codec = TDEGlobal::charsets()->codecForName( text->contentType()->charset() ); else - codec = KGlobal::locale()->codecForEncoding(); + codec = TDEGlobal::locale()->codecForEncoding(); for( ; *pbit != 0; ++pbit, ++npbit ) { // handle non-pgp block @@ -607,7 +607,7 @@ void ArticleWidget::displayHeader() } } else if ( hb->is("Date") ) { KMime::Headers::Date *date=static_cast<KMime::Headers::Date*>(hb); - headerHtml += toHtmlString( KGlobal::locale()->formatDateTime(date->qdt(), false, true), None ); + headerHtml += toHtmlString( TDEGlobal::locale()->formatDateTime(date->qdt(), false, true), None ); } else if ( hb->is("Newsgroups") ) { TQString groups = hb->asUnicodeString(); groups.replace( ',', ", " ); @@ -883,7 +883,7 @@ void ArticleWidget::displayAttachment( KMime::Content *att, int partNum ) TQCString mimetype = ct->mimeType(); KPIM::kAsciiToLower( mimetype.data() ); TQString iconName = KMimeType::mimeType( mimetype )->icon( TQString(), false ); - TQString iconFile = KGlobal::instance()->iconLoader()->iconPath( iconName, KIcon::Desktop ); + TQString iconFile = TDEGlobal::instance()->iconLoader()->iconPath( iconName, KIcon::Desktop ); html += "<div><a href=\"" + href + "\"><img src=\"" + iconFile + "\" border=\"0\">" + label + "</a></div><div>" + comment + "</div><br>"; @@ -949,7 +949,7 @@ bool ArticleWidget::canDecodeText( const TQCString &charset ) const if ( charset.isEmpty() ) return false; bool ok = true; - KGlobal::charsets()->codecForName( charset,ok ); + TDEGlobal::charsets()->codecForName( charset,ok ); return ok; } @@ -1373,7 +1373,7 @@ void ArticleWidget::slotSetCharset( const TQString &charset ) mOverrideCharset = KMime::Headers::Latin1; } else { mForceCharset = true; - mOverrideCharset = KGlobal::charsets()->encodingForName( charset ).latin1(); + mOverrideCharset = TDEGlobal::charsets()->encodingForName( charset ).latin1(); } if ( mArticle && mArticle->hasContent() ) { |