diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 17:34:53 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 17:51:33 +0900 |
commit | 1329ec6abbcb7b79cd960e0ca138f16598d5f11f (patch) | |
tree | 8b64fab3a352aada6a046f69f1f7e8a6ad819594 /knewsticker/common | |
parent | 69c2eb8d5f2ed64c876b2a1081cc83ed9f4652d3 (diff) | |
download | tdenetwork-1329ec6abbcb7b79cd960e0ca138f16598d5f11f.tar.gz tdenetwork-1329ec6abbcb7b79cd960e0ca138f16598d5f11f.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'knewsticker/common')
-rw-r--r-- | knewsticker/common/newsengine.cpp | 20 | ||||
-rw-r--r-- | knewsticker/common/newsiconmgr.cpp | 6 | ||||
-rw-r--r-- | knewsticker/common/xmlnewsaccess.cpp | 6 |
3 files changed, 16 insertions, 16 deletions
diff --git a/knewsticker/common/newsengine.cpp b/knewsticker/common/newsengine.cpp index 6f341c46..c5c44f04 100644 --- a/knewsticker/common/newsengine.cpp +++ b/knewsticker/common/newsengine.cpp @@ -49,14 +49,14 @@ NewsSourceBase::NewsSourceBase(const Data &nsd, ConfigIface *config) m_cfg(dynamic_cast<ConfigAccess *>(config)), m_newsIconMgr(NewsIconMgr::self()) { - connect(this, TQT_SIGNAL(loadComplete(XMLNewsSource *, bool)), - TQT_SLOT(slotProcessArticles(XMLNewsSource *, bool))); + connect(this, TQ_SIGNAL(loadComplete(XMLNewsSource *, bool)), + TQ_SLOT(slotProcessArticles(XMLNewsSource *, bool))); } void NewsSourceBase::getIcon() { - connect(m_newsIconMgr, TQT_SIGNAL(gotIcon(const KURL &, const TQPixmap &)), - this, TQT_SLOT(slotGotIcon(const KURL &, const TQPixmap &))); + connect(m_newsIconMgr, TQ_SIGNAL(gotIcon(const KURL &, const TQPixmap &)), + this, TQ_SLOT(slotGotIcon(const KURL &, const TQPixmap &))); m_newsIconMgr->getIcon( KURL( m_data.icon ) ); } @@ -160,8 +160,8 @@ void NewsSourceBase::slotGotIcon(const KURL &url, const TQPixmap &pixmap) if (url.url() == m_data.icon) { m_icon = pixmap; - disconnect(m_newsIconMgr, TQT_SIGNAL(gotIcon(const KURL &, const TQPixmap &)), - this, TQT_SLOT(slotGotIcon(const KURL &, const TQPixmap &))); + disconnect(m_newsIconMgr, TQ_SIGNAL(gotIcon(const KURL &, const TQPixmap &)), + this, TQ_SLOT(slotGotIcon(const KURL &, const TQPixmap &))); } } @@ -181,10 +181,10 @@ ProgramNewsSource::ProgramNewsSource(const NewsSourceBase::Data &nsd, m_program(new TDEProcess()), m_programOutput(0) { - 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))); + connect(m_program, TQ_SIGNAL(processExited(TDEProcess *)), + TQ_SLOT(slotProgramExited(TDEProcess *))); + connect(m_program, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)), + TQ_SLOT(slotGotProgramOutput(TDEProcess *, char *, int))); m_data.sourceFile = KURL(m_data.sourceFile).encodedPathAndQuery(); } diff --git a/knewsticker/common/newsiconmgr.cpp b/knewsticker/common/newsiconmgr.cpp index 4a2cb8d6..22525bc3 100644 --- a/knewsticker/common/newsiconmgr.cpp +++ b/knewsticker/common/newsiconmgr.cpp @@ -89,9 +89,9 @@ void NewsIconMgr::getIcon(const KURL &url) } } else { TDEIO::Job *job = TDEIO::get(url, true, false); - connect(job, TQT_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), - TQT_SLOT(slotData(TDEIO::Job *, const TQByteArray &))); - connect(job, TQT_SIGNAL(result(TDEIO::Job *)), TQT_SLOT(slotResult(TDEIO::Job *))); + connect(job, TQ_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), + TQ_SLOT(slotData(TDEIO::Job *, const TQByteArray &))); + connect(job, TQ_SIGNAL(result(TDEIO::Job *)), TQ_SLOT(slotResult(TDEIO::Job *))); KIODownload download; download.url = url; diff --git a/knewsticker/common/xmlnewsaccess.cpp b/knewsticker/common/xmlnewsaccess.cpp index b9d2ef3a..a49b96fc 100644 --- a/knewsticker/common/xmlnewsaccess.cpp +++ b/knewsticker/common/xmlnewsaccess.cpp @@ -62,9 +62,9 @@ void XMLNewsSource::loadFrom(const KURL &url) TDEIO::Job *job = TDEIO::get(url, false, false); job->addMetaData(TQString::fromLatin1("UserAgent"), TQString::fromLatin1("KNewsTicker v0.2")); - connect(job, TQT_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), - TQT_SLOT(slotData(TDEIO::Job *, const TQByteArray &))); - connect(job, TQT_SIGNAL(result(TDEIO::Job *)), TQT_SLOT(slotResult(TDEIO::Job *))); + connect(job, TQ_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), + TQ_SLOT(slotData(TDEIO::Job *, const TQByteArray &))); + connect(job, TQ_SIGNAL(result(TDEIO::Job *)), TQ_SLOT(slotResult(TDEIO::Job *))); } void XMLNewsSource::slotData(TDEIO::Job *, const TQByteArray &data) |