summaryrefslogtreecommitdiffstats
path: root/knode/articlewidget.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:49:30 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:49:30 -0600
commita9bde819f2b421dcc44741156e75eca4bb5fb4f4 (patch)
treed087071b1e8fcf79698938efec19f8e48bab0799 /knode/articlewidget.cpp
parent5c4a80ead2b1fe57dc6a8c29d0368792344cd61e (diff)
downloadtdepim-a9bde819f2b421dcc44741156e75eca4bb5fb4f4.tar.gz
tdepim-a9bde819f2b421dcc44741156e75eca4bb5fb4f4.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'knode/articlewidget.cpp')
-rw-r--r--knode/articlewidget.cpp14
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() ) {