diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
commit | 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch) | |
tree | 073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /knewsticker/common/newsengine.cpp | |
parent | 3467e6464beac3a162839bf7078e22e3a74d73e7 (diff) | |
download | tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip |
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knewsticker/common/newsengine.cpp')
-rw-r--r-- | knewsticker/common/newsengine.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/knewsticker/common/newsengine.cpp b/knewsticker/common/newsengine.cpp index 911095d9..ef1e5f81 100644 --- a/knewsticker/common/newsengine.cpp +++ b/knewsticker/common/newsengine.cpp @@ -23,10 +23,10 @@ #include <tqbuffer.h> -Article::Article(NewsSourceBase *parent, const TQString &headline, +Article::Article(NewsSourceBase *tqparent, const TQString &headline, const KURL &address) : XMLNewsArticle(headline, address), - m_parent(parent), + m_parent(tqparent), m_read(false) { } @@ -222,7 +222,7 @@ void ProgramNewsSource::slotProgramExited(KProcess *proc) } else { ErrorCode error = static_cast<ErrorCode>(proc->exitStatus()); if (error != NOERR) { - errorMsg = errorMessage(error).arg(m_data.sourceFile); + errorMsg = errorMessage(error).tqarg(m_data.sourceFile); okSoFar = false; } } @@ -230,11 +230,11 @@ void ProgramNewsSource::slotProgramExited(KProcess *proc) if (!okSoFar) { TQString output = TQString(m_programOutput->buffer()); if (!output.isEmpty()) { - output = TQString::fromLatin1("\"") + output + TQString::fromLatin1("\""); - errorMsg += i18n("<p>Program output:<br>%1<br>").arg(output); + output = TQString::tqfromLatin1("\"") + output + TQString::tqfromLatin1("\""); + errorMsg += i18n("<p>Program output:<br>%1<br>").tqarg(output); } KMessageBox::detailedError(0, i18n("An error occurred while updating the" - " news source '%1'.").arg(newsSourceName()), errorMsg, + " news source '%1'.").tqarg(newsSourceName()), errorMsg, i18n("KNewsTicker Error")); } |