summaryrefslogtreecommitdiffstats
path: root/knewsticker/common
diff options
context:
space:
mode:
Diffstat (limited to 'knewsticker/common')
-rw-r--r--knewsticker/common/configaccess.cpp4
-rw-r--r--knewsticker/common/newsengine.cpp16
-rw-r--r--knewsticker/common/newsengine.h8
-rw-r--r--knewsticker/common/newsiconmgr.cpp4
4 files changed, 16 insertions, 16 deletions
diff --git a/knewsticker/common/configaccess.cpp b/knewsticker/common/configaccess.cpp
index aba34266..d0b8480e 100644
--- a/knewsticker/common/configaccess.cpp
+++ b/knewsticker/common/configaccess.cpp
@@ -438,7 +438,7 @@ void ConfigAccess::setMouseWheelSpeed(const unsigned int mouseWheelSpeed)
TQFont ConfigAccess::font() const
{
- TQFont font = KGlobalSettings::fixedFont();
+ TQFont font = TDEGlobalSettings::fixedFont();
return m_cfg->readFontEntry("Font", &font);
}
@@ -594,7 +594,7 @@ NewsSourceBase *ConfigAccess::newsSource(const TQString &newsSource)
nsd = NewsSourceDefault[i];
if (nsd.enabled)
nsd.enabled = (nsd.language == TQString::fromLatin1("C") ||
- KGlobal::locale()->languageList().contains(nsd.language));
+ TDEGlobal::locale()->languageList().contains(nsd.language));
break;
}
diff --git a/knewsticker/common/newsengine.cpp b/knewsticker/common/newsengine.cpp
index 911095d9..e503c7b1 100644
--- a/knewsticker/common/newsengine.cpp
+++ b/knewsticker/common/newsengine.cpp
@@ -178,13 +178,13 @@ void SourceFileNewsSource::retrieveNews()
ProgramNewsSource::ProgramNewsSource(const NewsSourceBase::Data &nsd,
ConfigIface *config) : NewsSourceBase(nsd, config),
- m_program(new KProcess()),
+ m_program(new TDEProcess()),
m_programOutput(0)
{
- connect(m_program, TQT_SIGNAL(processExited(KProcess *)),
- TQT_SLOT(slotProgramExited(KProcess *)));
- connect(m_program, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)),
- TQT_SLOT(slotGotProgramOutput(KProcess *, char *, int)));
+ connect(m_program, TQT_SIGNAL(processExited(TDEProcess *)),
+ TQT_SLOT(slotProgramExited(TDEProcess *)));
+ connect(m_program, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
+ TQT_SLOT(slotGotProgramOutput(TDEProcess *, char *, int)));
m_data.sourceFile = KURL(m_data.sourceFile).encodedPathAndQuery();
}
@@ -201,15 +201,15 @@ void ProgramNewsSource::retrieveNews()
m_programOutput->open(IO_WriteOnly);
*m_program << m_data.sourceFile;
- m_program->start(KProcess::NotifyOnExit, KProcess::Stdout);
+ m_program->start(TDEProcess::NotifyOnExit, TDEProcess::Stdout);
}
-void ProgramNewsSource::slotGotProgramOutput(KProcess *, char *data, int length)
+void ProgramNewsSource::slotGotProgramOutput(TDEProcess *, char *data, int length)
{
m_programOutput->writeBlock(data, length);
}
-void ProgramNewsSource::slotProgramExited(KProcess *proc)
+void ProgramNewsSource::slotProgramExited(TDEProcess *proc)
{
bool okSoFar = true;
diff --git a/knewsticker/common/newsengine.h b/knewsticker/common/newsengine.h
index b5576543..e9175317 100644
--- a/knewsticker/common/newsengine.h
+++ b/knewsticker/common/newsengine.h
@@ -33,7 +33,7 @@ class NewsSourceBase;
class TQBuffer;
class TQDomDocument;
-class KProcess;
+class TDEProcess;
class KURL;
class KDE_EXPORT Article : public XMLNewsArticle, public KShared
@@ -193,13 +193,13 @@ class KDE_EXPORT ProgramNewsSource : public NewsSourceBase
virtual void retrieveNews();
protected slots:
- void slotGotProgramOutput(KProcess *, char *, int);
- void slotProgramExited(KProcess *);
+ void slotGotProgramOutput(TDEProcess *, char *, int);
+ void slotProgramExited(TDEProcess *);
private:
static TQString errorMessage(const ErrorCode);
- KProcess *m_program;
+ TDEProcess *m_program;
TQBuffer *m_programOutput;
};
diff --git a/knewsticker/common/newsiconmgr.cpp b/knewsticker/common/newsiconmgr.cpp
index 6e8e88d7..d37a9227 100644
--- a/knewsticker/common/newsiconmgr.cpp
+++ b/knewsticker/common/newsiconmgr.cpp
@@ -84,7 +84,7 @@ void NewsIconMgr::getIcon(const KURL &url)
ds << url;
kapp->dcopClient()->send("kded", "favicons", "downloadHostIcon(KURL)", data);
} else {
- emit gotIcon(url, TQPixmap(KGlobal::dirs()->findResource("cache",
+ emit gotIcon(url, TQPixmap(TDEGlobal::dirs()->findResource("cache",
TQString::fromLatin1("favicons/%1.png").arg(url.host()))));
}
} else {
@@ -132,7 +132,7 @@ void NewsIconMgr::slotGotIcon(bool isHost, TQString hostOrURL, TQString iconName
if (iconName.isNull())
emit gotIcon(url, m_stdIcon);
else
- emit gotIcon(url, TQPixmap(KGlobal::dirs()->findResource("cache",
+ emit gotIcon(url, TQPixmap(TDEGlobal::dirs()->findResource("cache",
TQString::fromLatin1("favicons/%1.png").arg(url.host()))));
}